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

Search This thread

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
30
Jerusalem
mohammadag.xceleo.org
Adjustable Torch is an application that allows you to use the torch at different brightness levels.

Screenshots:
ki1y7U7l.png
lbr9mRZl.png


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/Android/AdjustableTorch_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.
 
Last edited:

sxi200

Senior Member
Oct 18, 2010
1,510
449
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

Senior Member
Mar 28, 2011
175
33
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

Senior Member
Oct 21, 2010
2,471
797
Port Talbot
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

Senior Member
Oct 3, 2011
799
409
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
 
  • Like
Reactions: robotphood
Feb 26, 2010
21
0
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

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
30
Jerusalem
mohammadag.xceleo.org
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
 

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
30
Jerusalem
mohammadag.xceleo.org
Feb 26, 2010
21
0
I'll see about it, haven't worked with widgets before so it'll take time.



One more thing, I use XPrivacy too, and it didn't pick the app up as using location, not sure where you got that from.
In any case, added permissions to OP.

Here's your app next to Google Authenticator.
Hope this helps.
 

Attachments

  • Screenshot_2013-08-13-22-55-06.jpg
    Screenshot_2013-08-13-22-55-06.jpg
    29 KB · Views: 361
  • Screenshot_2013-08-13-22-56-01.jpg
    Screenshot_2013-08-13-22-56-01.jpg
    26.8 KB · Views: 346

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
30
Jerusalem
mohammadag.xceleo.org
Here's your app next to Google Authenticator.
Hope this helps.

Which XPrivacy version is this? As you can see, the green key icon is missing, which means I don't have permissions for location.

Can you tap the arrow on location? I want to see the methods used.

Edit: here's a screenshot of XPrivacy on my device.
9ahypeme.jpg


Sent from my GT-I9500 using Tapatalk 4
 
Last edited:

SaschaHa

Senior Member
Oct 3, 2008
1,490
1,772
Be careful!
When using this app AND in addition turning the light on with another app, the maximus light will be increased! It seems to me that the values of light will be summed up! So when using only 20 percent of full light, it will be increased up to 120 percent when turning the light on with another app. That is very dangerous!

Another problem for me: The flashlight seems not to be off @0 percent. In an absolute dark room I can see a little glow. Seems to me that the flashlight is not fully turned off at 0 percent.

I hope, someone can confirm my experience and that this little bugs can be solved :)
 

drraptor

Senior Member
Mar 9, 2012
1,353
293
This developer needs a double thanks.

EDIT:That file doesn't exist on my phone :mad:

Sent from my GT-I9100 using Tapatalk 4 Beta
 

rmanaka

Senior Member
Jul 15, 2005
705
54
Working on my Verizon SCH-I545 Developers Edition (S4)! Thanks!

Sent from my SCH-I545 using Tapatalk 4
 
  • Like
Reactions: Bait-Fish

Top Liked Posts

  • There are no posts matching your filters.
  • 43
    Adjustable Torch is an application that allows you to use the torch at different brightness levels.

    Screenshots:
    ki1y7U7l.png
    lbr9mRZl.png


    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/Android/AdjustableTorch_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.
    1
    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
    1
    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.
    1
    Can you add a small widget with vibrations when we put on/off the light ?
    1
    Working on my Verizon SCH-I545 Developers Edition (S4)! Thanks!

    Sent from my SCH-I545 using Tapatalk 4