lundi 24 février 2014

[APP][ROOT] zTorch Adjustable and extremely bright Flashlight topic




I've built an adjustable flashlight with 16 brightness settings. Reason why I built it was to get some experience, have a brighter LED than pretty much anyone else, and to have the features that I wanted with no extra bloat. There are no ads or unnecessary permissions.

Screenshots:
Notification that lets you adjust values.
Ability to limit the maximum value so you don't accidentally burn the torch.
Two widgets. A 3x1 that lets you adjust the Torch. And a 1x1 widget on the right lights up when clicking on it.
On the main screen, "Set widget default brightness to current brightness" allows you to set the brightness the Torch lights up at when tapping the 1x1 widget and when pressing the "ON" toggle in the Main Activity.



Quick Increments is what the Torch will increment by when pressing the + or - sign in the widgets, notification, or the double -- and ++ in the app. I haven't implemented other torch methods yet, but this is where that will be if I ever do.



Performance:

The stock flashlight app, "Assistive Light" is equal to the brightness number setting 1 on zTorch.
TeslaLed is equal to the brightness number setting 6 on zTorch.
TeslaLed has a delay when activating the Torch, zTorch does not.
TeslaLed shuts off for about a second when the screen is turned off, zTorch does not.
Brightness value 15 is ridiculously brighter than anything I've seen.

Permissions:

Code:


   
    <uses-permission android:name="android.permission.ACCESS_SUPERUSER" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />



Download:
Filesize is 418KB.

https://www.dropbox.com/sh/1tti990xun38fv6/rZA0nwwbqX

I was gonna put it on the market, but didn't realize there was a registration fee.

Compatibility:

Only tested on the Verizon S4. But it should work on all phones that use these system files for manipulating the flash:

Code:


"/sys/class/camera/flash/rear_flash",
"/sys/class/camera/rear/rear_flash",
"/sys/class/leds/flashlight/brightness"


If these files are unavailable the app is supposed to uninstall itself to prevent bad Google play reviews, because the app won't work on that phone. However, I left debugging mode on since I won't be uploading to Google Play, so if you don't have those files, it won't uninstall itself, the flash just won't ever come on.


Known Issues:

When you do a fresh install, the 1x1 widget won't respond to touch. Only way around it is you have to restart the phone or reinstall the app over top of the first install. After it works fine. If anyone has any input on this, let me know.





Aucun commentaire:

Enregistrer un commentaire