Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,296 Members 53,177 Now Online
XDA Developers Android and Mobile Development Forum

[APP][ROOT][4.0+] Adjustable Torch

Tip us?
 
MohammadAG
Old
(Last edited by MohammadAG; 12th November 2013 at 11:49 AM.)
#1  
Recognized Developer - OP
Thanks Meter 4692
Posts: 1,060
Join Date: Sep 2009
Location: Jerusalem

 
DONATE TO ME
Default [APP][ROOT][4.0+] Adjustable Torch

Adjustable Torch is an application that allows you to use the torch at different brightness levels.

Screenshots:


Compatibility:
Tested on the Galaxy S4 (GT-I9500), will work on all devices with either of these files /sys/class/camera/flash/rear_flash or /sys/class/camera/rear/rear_flash
Installing and running the app will tell you if the app is compatible.

Reported working on:
  • Samsung Galaxy S4 (GT-I9500, GT-I9505, SGH-l337, SCH-I545)
  • Samsung Galaxy Note 2 (GT-N7100, SGH-I317)
  • Samsung Galaxy SIII (GT-I9300)

Source:
The app is open source, and licensed under GPLv3: https://github.com/MohammadAG/android-AdjustableTorch

WARNING:
Using the flash at maximum brightness may cause damage to the flash. The developer of this application is not responsible for any damage caused to your device due to prolonged usage of the flash at a high brightness.

Permissions:
I request and use the following permissions:
  • Internet: used for ads, ads can be disabled in Action Menu.
  • Superuser: obviously needed to write to sysfs.
  • Receive boot complete: needed to reset app settings at startup. A reboot would turn off the flashlight so this is needed.
If your privacy app is picking up location as a used permission, please report a bug against it, again, I DO NOT use location.

Download:
Get it from the Play Store!
If you can't access the Play Store, here's an exact copy of the APK on the store, please use the store if possible, thanks! http://mohammadag.xceleo.org/public/...eTorch_1.6.apk

Changelog:
[1.6]
  • Added homescreen/lockscreen widget.
  • Fixed wrong values on devices with inverted values when using notification buttons.

[1.5]
  • Fixed regression due to changes in code.

[1.4]
  • Added "Invert values" option to fix the weird values on the Galaxy SIII.

[1.3]
  • Fix possible crash at startup for unrooted users.
  • Fixed notification read incorrect value when adjusting using +/- buttons

[1.2]
  • Added notification actions.
  • Moved notification handling to Service, which is faster.
  • Added uses-feature android.hardware.camera.flash to reduce Play Store supported devices.

[1.1]
  • Support more devices (/sys/class/camera/rear/rear_flash)
  • Turning off flash from notification would cause the app to close when launched from recents list, fixed.

Support development:
If you found this app useful, consider donating with PayPal.
Follow me on Twitter: @MohammadAG
Google+: https://plus.google.com/103508952817353883168/posts

Check out my Xposed modules.
Send files with Android Beam™ on Android 4.1+: File Beam (Touch to Send)
Enable USB Mass Storage Mode on Samsung devices with SG USB Mass Storage Enabler.
Use your flashlight at different brightness levels with Adjustable Torch.
Enable Music Controls on your S-View screen with S-View Music Controls
The Following 42 Users Say Thank You to MohammadAG For This Useful Post: [ Click to Expand ]
 
sxi200
Old
#2  
Senior Member
Thanks Meter 449
Posts: 1,497
Join Date: Oct 2010
Location: Melbourne
Great app! Very bright if needed and not so bright when less light is required.

Sent from my GT-I9505 using xda premium
 
pimjai
Old
#3  
Senior Member
Thanks Meter 32
Posts: 165
Join Date: Mar 2011
Location: Purmerend
Works fine on an i9505 with the latest Google edition software. Thanks for this app

Sent from my GT-I9505G using Tapatalk 4 Beta
 
enigma1981
Old
#4  
enigma1981's Avatar
Senior Member
Thanks Meter 736
Posts: 2,287
Join Date: Oct 2010
Location: Port Talbot

 
DONATE TO ME
Half works on my I9300 but the brightness doesn't coincide with the slider.

For example if I tap it to "full" it's off again and no matter where I tap along the line it goes brighter or dimmer as it pleases

Otherwise, brilliant app! Been liking for exactly this for months!!

Looking forward to updated versions

Swyped from my Galaxy S3 using Tapatalk 4
 
Porobu
Old
#5  
Porobu's Avatar
Senior Member
Thanks Meter 386
Posts: 772
Join Date: Oct 2011
Tried on my galaxy Ace II I8160. The led brightness goes from 0 to five and then continues from 1 to 5 while moving the slider from left to right and right to left

Sent from my GT-I8160 using xda app-developers app
My YouTube channel:https://www.youtube.com/user/Porobu
Register DropBox account from this link and earn more free space: http://db.tt/Q8AGaQld
The Following User Says Thank You to Porobu For This Useful Post: [ Click to Expand ]
 
MohammadAG
Old
#6  
Recognized Developer - OP
Thanks Meter 4692
Posts: 1,060
Join Date: Sep 2009
Location: Jerusalem

 
DONATE TO ME
I guess I'll have to add a settings option to set the maximum brightness, for the S4 it was 15, anything more than that and it the brightness stays the same.
Follow me on Twitter: @MohammadAG
Google+: https://plus.google.com/103508952817353883168/posts

Check out my Xposed modules.
Send files with Android Beam™ on Android 4.1+: File Beam (Touch to Send)
Enable USB Mass Storage Mode on Samsung devices with SG USB Mass Storage Enabler.
Use your flashlight at different brightness levels with Adjustable Torch.
Enable Music Controls on your S-View screen with S-View Music Controls
The Following User Says Thank You to MohammadAG For This Useful Post: [ Click to Expand ]
 
defiant_nx74205
Old
#7  
Junior Member
Thanks Meter 0
Posts: 21
Join Date: Feb 2010
Question Permissions question

Thanks for the app.
Can you please explain the need for some of the permissions?

Using Xprivacy, I can see that it requires Location, Network, Phone, Storage and other permissions I would normally not associate with an app like this.

Thank you.
 
MohammadAG
Old
#8  
Recognized Developer - OP
Thanks Meter 4692
Posts: 1,060
Join Date: Sep 2009
Location: Jerusalem

 
DONATE TO ME
Quote:
Originally Posted by defiant_nx74205 View Post
Thanks for the app.
Can you please explain the need for some of the permissions?

Using Xprivacy, I can see that it requires Location, Network, Phone, Storage and other permissions I would normally not associate with an app like this.

Thank you.
I explain the permissions used in the Play Store description.
I don't request permissions for Location or Storage, it might be AdMob or writing to my own app's preferences.
If you still don't trust that, it's open source

Sent from my GT-I9500 using xda app-developers app
Follow me on Twitter: @MohammadAG
Google+: https://plus.google.com/103508952817353883168/posts

Check out my Xposed modules.
Send files with Android Beam™ on Android 4.1+: File Beam (Touch to Send)
Enable USB Mass Storage Mode on Samsung devices with SG USB Mass Storage Enabler.
Use your flashlight at different brightness levels with Adjustable Torch.
Enable Music Controls on your S-View screen with S-View Music Controls
 
GiulioPasini
Old
#9  
Senior Member
Thanks Meter 17
Posts: 145
Join Date: Mar 2012
Location: Brasilia
Amazing app. It works on my international S3.

Enviado de meu GT-I9300 usando Tapatalk 4
 
Moz007
Old
#10  
Moz007's Avatar
Senior Member
Thanks Meter 34
Posts: 361
Join Date: Feb 2011
Location: France
Can you add a small widget with vibrations when we put on/off the light ?

The Following User Says Thank You to Moz007 For This Useful Post: [ Click to Expand ]
Tags
brightness, camera, flash, flashlight, torch
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes