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

Publiuss

Senior Member
Jun 29, 2012
948
170
43
Hi
in my phone (SGS2plus 4.2.2 stock) the app just turns flash on or off (no adjusting).
Using last version on play store.

My system has /sys/class/camera/flash/rear_flash or /sys/class/camera/rear/rear_flash .
 

DerekZ10

Senior Member
Aug 18, 2011
72
39
0
This is why your version 1.7 widget doesn't work:



The line commented out is what you had. Remove the final keyword.
 
Last edited:

asim.sidz

Senior Member
Hey

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/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.
Assalamu Alaikum,

i've tried your app and it works fine. Does exactly what it is meant to do. What i'm looking for is to adjust my flash's intensity while i'm capturing photos/videos with the camera. I know that it is very much possible but i've no idea about how to go around that myself. I'm okay even if i could permanantly change the value of the maximum ( Or maximum threshold value) brightness to some other lower value.

Any kind of help or guidance regarding this will be highly appreciated.

P.S. You can make another app out of this and put it on the Play Store. :)
 

freakingprime

Senior Member
Jul 2, 2012
272
43
58
Hey man this app is great. You modify system file /sys/class/camera/flash/rear_flash to change brightness level, right? Is there anyway similar to this to change Notification LED brightneess?
 
  • Like
Reactions: marius5147

nikulbhatiya

Member
Sep 6, 2016
37
6
0
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/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.
Bro,
A BIG THANKS TO YOU.
working like a charm.

Can you plz tell us what is safe limit for flash?
I have 15 sliding point level available.
I guess 10 is safe limit right?