FORUMS
Remove All Ads from XDA

[APP][Android 4.0+][Xposed Torch] Through Home or Volume UP Button

6,114 posts
Thanks Meter: 29,414
 
Post Reply Email Thread
This is a Handy Torch through Volume UP button, it lets you turn ON the Flashlight by a Long Press on the Volume UP Button while screen if OFF, and turn it OFF by Volume down or Home button or a Screen ON action (Power).

Features:
- Customize Long press delay to run the Flashlight
- Customize Flashlight timeout
- Run the Flashlight even while Music is ON

How to install:
1- Install Xposed Installer (http://dl.xposed.info/latest.apk)
2- Install Xposed Framework through Xposed Installer App
3- Download Xposed Torch (Link bellow)
4- Enable Xposed Torch module on the Xposed Installer modules
5- Reboot your device

Download.


Required permissions:
- Camera and Flashlight for the Torch

Thanks to @rovo89 and @Tungstwenty for their awesome work on Xposed framework.
Attached Thumbnails
Click image for larger version

Name:	ic_launcher-web.jpg
Views:	8385
Size:	25.0 KB
ID:	2560316   Click image for larger version

Name:	Screenshot_2014-02-05-11-04-07.png
Views:	10954
Size:	160.3 KB
ID:	2560317   Click image for larger version

Name:	Screenshot_2014-02-06-13-11-03.png
Views:	9756
Size:	149.1 KB
ID:	2562501   Click image for larger version

Name:	Screenshot_2014-03-20-12-09-38.jpg
Views:	7869
Size:	179.4 KB
ID:	2640367  
The Following 100 Users Say Thank You to wanam For This Useful Post: [ View ]
 
 
5th February 2014, 11:43 AM |#2  
wanam's Avatar
OP Recognized Contributor / Developer
Flag Temara
Thanks Meter: 29,414
 
Donate to Me
More
Change-log:
1.7.7:
- Acquire a wake-lock for 3 seconds to make sure the Torch is turned Off properly
- Ability to open the application from the modules list even if you hide it from the launcher (Thanks to Jclehner)
- Minor bug fixes

1.7.4:
- Add back Home button option with a few improvements (it may still cause a few delay on Touchwiz Lock screens)
- Make Volume UP button optional
- Fix Pair Volume UP/Down triggering the Torch
- Make the vibration optional (i recommend to use it for intentional Buttons long press)
- Removed some debug code
- Few other fixes

1.7.2:
- Disable Torch triggers while making Calls
- Transparent Torch activities
- Improved Torch response
- Vibrate while launching the Torch

1.7.0:
- Removed Torch helper, not needed anymore.
- Ability to run the Torch even on deep sleep.
- Removed Home button option, this feature causes some wake-lag on Touchwiz Roms.
- Many other stability fixes

1.5.0:
- Turn On Torch through Home button (if available) long press
- Turn Off Torch through Home button press without turning On the screen
- Remove Torch App for recent Apps history
- Few other fixes and improvements

1.4.2:
- Improve Flashlight releasing
- Fixed some options dependancies

1.4.1:
- Fixed 5 seconds long press delay
- Add an option to remove my App Ads
- Acquire a Wake-lock for 3 seconds to properly release the Camera Flashlight
- Added Korean translation (Thanks to Splendid)
- Few other fixes

1.4.0:
- Add Russian translation (Thanks to Termit901)
- Add a Torch helper option to prevent the device from going into a deep sleep

1.3.2:
- Arabic and French translations
- Few improvements.

1.3.1:
- Fixed a Wakelock leak (a Wakelock is acquired for 1 second only to wake up the device from deep sleep)
- Add a delay option for the Long button press before launching the Flashlight
- Add an option to run the Flashlight even if the Music is ON (this feature supports the default Player only!)
- Few other improvements

1.1:
- Add option to Automatically turn off the Torch
- Turn Off Flashlight through Volume Down Press
- Add option to Hide App from App drawer

1.0: Initial release.
The Following 9 Users Say Thank You to wanam For This Useful Post: [ View ]
5th February 2014, 11:58 AM |#3  
ktetreault14's Avatar
Senior Member
Flag Largo
Thanks Meter: 1,811
 
Donate to Me
More
Nice. Running now

Sent from my SM-N900T using Tapatalk
5th February 2014, 12:49 PM |#4  
Senior Member
Flag São Paulo
Thanks Meter: 30
 
More
Works fine in I9505 with KK, great job Wanam, thank you
5th February 2014, 12:54 PM |#5  
HaPe1968's Avatar
Member
Thanks Meter: 9
 
More
works perfectly on S4 KK
5th February 2014, 01:08 PM |#6  
Ripolin2's Avatar
Member
Thanks Meter: 36
 
More
Hi...works perfect in sgs4 kit kat..
Thanks...
Best Regards

Enviado desde mi GT-I9505 mediante Tapatalk
5th February 2014, 02:19 PM |#7  
Senior Member
Thanks Meter: 269
 
More
Very nice, works on my Xperia Z. Do you think you could maybe make it so holding the volume button again, turns it off? and perhaps a safety thing so if it accidentally somehow turns on in your pocket, you can set a time to it auto turns off after 1-5 mins or something.
The Following 2 Users Say Thank You to Kocane For This Useful Post: [ View ] Gift Kocane Ad-Free
5th February 2014, 04:05 PM |#8  
_jis_'s Avatar
Senior Member
Thanks Meter: 261
 
More
Works perfectly on Note II 4.1.2. I support Kocayine ideas in previous post.

Sent from SGNII using Tapatalk 4.4.4
5th February 2014, 05:46 PM |#9  
sumit227's Avatar
Senior Member
Flag New Delhi
Thanks Meter: 56
 
More
Thanks man Works perfectly on galaxy grand 4.2.2. It would be better if it turn off by volume down instead of home buton.
5th February 2014, 08:23 PM |#10  
Senior Member
Thanks Meter: 1,020
 
Donate to Me
More
Quote:
Originally Posted by sumit227

Thanks man Works perfectly on galaxy grand 4.2.2. It would be better if it turn off by volume down instead of home buton.

+1

Vol down short press (or vol up short press) to switch off torch would be perfect!

Also, could there be an option to automatically limit the duration of torch ON? With choices like 10sec, 30sec, 1min, 2min and infinite?

Thanks for consideration!
The Following User Says Thank You to Looki75 For This Useful Post: [ View ] Gift Looki75 Ad-Free
5th February 2014, 08:31 PM |#11  
Senior Member
Thanks Meter: 409
 
More
Would it be possible to add an interface that let's you choose how long it takes for the torch to come on? I listen to music on my phone all the time, and it's comes on occasionally when long pressing to increase volume.
Post Reply Subscribe to Thread

Tags
button, flashlight, torch, volume, xposed

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes