[Script-How to]Single Tap to Toggle On / Off the Button Leds - EVO 4G Themes and Apps

I got tired of having to unplug and plug the charger to turn on the button leds, so I did this script. Mentioned it to a couple of friends, they thought I should share. So here it is.
This script, used with GScripts Lite from market, will allow the creation of a short cut, to toggle the button leds on and off with one tap. I have tested it on friends' evos as well as mine.
I attached a zip file which contains the "led toggle.sh" file. Place the extracted "led toggle.sh" file in the gscripts folder on the root of the sdcard.
Open GScripts > tap menu > add a new script > needs su > load file > "led toggle.sh" .
BTW if you manually enter this code, be sure to check requires root, in the GScripts checkbox.
You can now create a shortcut from the desktop:
Long press > shortcut > GScript Lite > "led toggle"
Each time you tap the shortcut the leds will toggle from on to off, or from off to on.
It makes my night time use easier. Have fun.
I want to thank the entire g1 GScripts thread for the possibilities, and especially GScripts creator.

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
A shot of the GScripts icon to turn on and off the button leds.
Sent with Super-Sonic Vision using XDA app.

Hey! Great script!
Damn platform LEDS turn on too early, being able to shut them off really saves juice!
Many thanks!

I'm glad you found it useful.

Thanks for this. I stream movies via hdmi all the time and the leds are always lit.
Now if there was a way to 1)have the leds stay off UNTIL the toggle is hit again and 2)use the sense widget icon for the toggles this thing would look tits.
Yes, I have gone back to sense. I like the widgets too much.
Thanks.

Glad you like it. I use a shortcut icon. Sense supports that.
+ > shortcut > gscript > toggle
Sent with Super-Sonic Vision using XDA app.

Is there a way to turn off the HOME, MENU, BACK, SEARCH button light permenatly? I just want the screen on and the buttons to remain off.
thanks

Related

[MOD][MIUI] Recovery option on power menu (11-30 MIUI build)

So I got tired of having to manually holding the power+volume keys to go into recovery every time so I added the Recovery menu option to the power menu. Sharing here in case anyone else would like to have it as well. I also took a look at the 4-way boot mod and I personally just prefer having the option directly on the main Power menu instead of a submenu.
Firstly, thanks to Isaacj87 for putting together the MIUI port!
Secondly, thanks to untermensch on xda for the guide.
I REPLACED the Guard option on the power menu so if you like that option, DO NOT use this mod. Basically, you can't change the array size from 5 options to 6 options without the phone crashing when creating the dialog--there's a bunch of verifications on the dialog size in a bunch of different places that is a real pain to try and follow. I didn't want to mess with that so, since I never used the Guard option anyways, I just replaced it--and I don't know how to make a popup window in smali like the Recovery option on CM7 so I don't have any plans on doing that as well at this time.
I also changed the carrier name to MIUI.
In order to see the power menu Phone Options dialog, you need to change your Toggle Settings to Compact view, otherwise, it will just show you your notification bar toggles when you hold down your Power button. To do that:
Settings --> Personal Tab --> Toggle Settings --> Compact
Or as bing7625 mentioned, you can lock your phone and then hold down the power button on the lockscreen.
This has only been tested with Isaac's current 11-30 MIUI builds. Instructions to install:
1. Download Zip file and flash in ClockworkMod recovery.
Download link (tinyurl'ed):
miui_reboot_recovery-1.11.25-11-30-11.zip
http://tinyurl.com/c7tapo5
Undo in case you bootloop:
miui_reboot_recovery-undo-1.11.25-11-30-11.zip
http://tinyurl.com/7nt4lvt
Screenshot of the power menu:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Old versions:
Download link (tinyurl'ed):
miui_reboot_recovery-1.11.4-11-09-11.zip
http://tinyurl.com/787u66x
updated for MIUI 11-9 build.
Updated for 11-30 MIUI build.

[APP][2.2+][UPDATE] Toggle flashlight

So i could not find an app that would do exactly what this one does...
Turn on the flashlight LED immediately upon execution of the app... Instead, every app on the market has the user open it up, then press a button to toggle the flashlight.
My app will IMMEDIATELY turn on your flash light LED then shut off the screen.
Its main purpose is to have as a lockscreen shortcut.
Install instructions:
1. Download APK
2. Place apk onto your SD card
3. Using ANY file explorer app
4. Locate downloaded apk and tap on it to initialize the install process.
5. Install and run the app once to set it up.
Permissions:
Hardware Controls [Allow app to access camera LED]
Also need to enable device administrator to allow device lock
Dont forget to hit thanks it really makes me feel good about myself knowing people are benefiting from this other than myself
Check my Signature for other work/projects by me
THANKS XDA FOR PROVIDING US WITH SUCH A GREAT WEBSITE AND RESOURCE!!
UPDATE 12/10/12 10:36 EST
-Fixed force close issue due to me being retarded....
I've searched a lot for an app like this, the past days and I've also developed one myself, which just today I've managed to finish it(have some problems though).
I will try your app, maybe is better than mine(I'm new in programming).
EDIT:
Just tried, flashlight turns itself off about 10-20 seconds after screen is off(sometimes less), at least on my device.
I'd have this problem with my app too. Do you run it as service?
This is a very useful app my friend. It's so annoying on aosp rom's hitting the power button, pulling down the notification bar, engaging the torch, and cycling all over again. This saves steps and works quite well so far.
I'll report back as I use it more over the next few days.
Using it on a sgs3 running Eclipse rom.
Just so you people know, theres actually a widget you can place on your homescreen, just long press on the screen, go to widgets...then look for Assistive Light....put in on one of your homescreens...press it, walla...LED light on back of phone lights up!!! No need to download any apk.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
That's not what this is for. This is instant lockscreen on/off. This is a smart app. Obviously there are home screen options other than this.....
choyt2011 said:
Just so you people know, theres actually a widget you can place on your homescreen, just long press on the screen, go to widgets...then look for Assistive Light....put in on one of your homescreens...press it, walla...LED light on back of phone lights up!!! No need to download any apk.
Click to expand...
Click to collapse
OK now do that on your lockscreen
Sent from my SGH-T999 using Tapatalk 2
Here you go. Instant on / off. No fumbling around with with pull downs, opening apps, etc. Just boom.... It works
annoyingduck said:
Here you go. Instant on / off. No fumbling around with with pull downs, opening apps, etc. Just boom.... It works
Click to expand...
Click to collapse
Ok thats creepy.. thats EXACTLY where i have my shortcut located at..
nice job keep working on it
thanks for the useful app!

[APP] Standby Touch Advanced

I have developed this app a while ago when I was owning a Nexus device. I find it even more useful on my Note3 since having small hands its not comfortable to get to the Power button to put the phone to sleep. You may find it useless but at least it saves the Power button or helps when using a case.
HERE IS HOW TO USE IT
1. When the app is installed, for the first time the Settings screen will be shown. Simply press the Enable Admin Permission button and then drag the Stand by Icon from App's drawer where you want to have it. Each time you press the icon, the phone will go to standby.
2. If you want to use the Sleep Mode, go to Settings and press on the Zzzzz mode button. You can select which options to be disabled (Sound to Silent, Data Off, Wifi Off), on which interval of hours and how long the options will be displayed. If you check any of the options, next time you press the Standby icon, for a short period of time you will see 2 icons:
- the Sleep icon (with the moon) on it, if you press it, it will disable the options you have selected
- the Wake icon (with the sun) on it, if you press it, it will enable the options you have selected.
The icons are only displayed for the amount of time set by you. If you don't press any of them, the phone will go to standby as normal.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Google Play link
LE: There are no hidden permissions, no internet access, no ads, no user tracking... nothing. Is just a plain free app.
Badassss
Sent from my SAMSUNG-SM-N900A using Tapatalk
Sound useful, I'm gonna give it a try.
Thank you
Seems very usefull! There is no Bluetooth toggle is there? Cause I want to disable my gear when I am sleeping.. I do this by turning off bluetooth, and in the morning I turn it on again.. Any way you could add that?
Thank you guys for your words.
@Armazia: very good suggestion!. I have uploaded version 2.3 on Google Play which has Bluetooth toggle support So you can now easily switch Bluetooth off in the evening and back on in the morning. It should be available in a few hours.
Very nice
Thanks, new version 2.3 is live on Google Play.
alinescoo said:
Thank you guys for your words.
@Armazia: very good suggestion!. I have uploaded version 2.3 on Google Play which has Bluetooth toggle support So you can now easily switch Bluetooth off in the evening and back on in the morning. It should be available in a few hours.
Click to expand...
Click to collapse
Superb! Thanks for listening. I am definitely going to use this app!
You're welcome. I have been using it on all my devices without any problems.

How To Guide Discover powerful Quick Toggles for cover screen - powered by Bixby Routines!

Hi community! Now that CoverScreen OS has support for a ton load of Quick Toggles powered by Bixby Routines, Tasker, IFTTT and more, this thread shall help you setup, discover and share your favorite Bixby Routine with everyone.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
​
( Quick Toggles powered by Bixby Routines, photo taken while phone is in CoverScreen OS's Flex Mode )​
ADDING BIXBY ROUTINE POWERED QUICK TOGGLE:
You can open CoverScreen OS, navigate to Toggles screen (3rd Icon at Bottom Navigation Bar)
Click on + button
Choose Bixby Routines as your Quick Toggle provider
Select your existing Bixby Routine or create a new one
Once done, go back and enable the newly created Quick Toggle powered by Bixby routine in CoverScreen OS
Fold your phone to cover screen, swipe down to Quick Toggles screen
SHARING (EXPORT) YOUR BIXBY ROUTINES:
Install Good Lock
Install Routines + unit
Open Good Lock > Routines + unit > Scroll bottom to Share > Export Routines (this shares a <routine_name>.json file for each routine you have selected. This can be directly opened in Routines + unit of Good Lock.
DOWNLOAD (IMPORT) BIXBY ROUTINES SHARED BY OTHERS:
Install Good Lock
Install Routines + unit
Import options:
Click the downloaded <routine name>.json file and select Routines + from the system Open with dialog > save the routine
Alternatively, you can open Routines + unit inside Good Lock App > Scroll bottom to Share > Import saved routines > locate your downloaded <routine name>.json file > save
I will start with my Quick Toggles, essentials collection attached to this thread, share yours in a reply to this thread.

Themes / Apps / Mods DoubleTapWidget (screen lock app) Pixel 7 / 7 Pro

DoubleTapWidget​
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Description:
There are 5 widgets in the application, there is no application interface itself.
2 widgets - transparent widgets, for locking the screen by double-clicking and single-clicking, respectively. (arbitrary size).
3 widgets - widgets in the form of a lock of different colors, for locking the screen by pressing. (1x1).
Tap on the application icon also blocks the screen, this was done for the general style under "Thematic icons", android 13 (Pixel)
Instruction:
1. Install the application.
2. Open system settings /Accessibility/DoubleTapWidget
warning will be issued,
press "OK".
3. Open system settings / applications / find in the list DoubleTapWidget / Click on the 3 dots in the upper right corner - "Allow settings changes", will ask for a password.
4. Again we go to point 2, but now you can activate the toggle switch
5. Go to the home screen, open the list of widgets, and select the desired widget.
Advantages:
1. The application does not consume battery as it uses a simple widget.
2. Without Root
3. Without any advertising.
Version: 1.2
Download: https://forum.xda-developers.com/attachments/doubletapwidget-zip.5818929/
Download
Version: 1.2:
It skips the screen off animation. Is it possible to add it back? Maybe power off with root to achieve this?
I use this widget "Screen off - Widget & tile".
https://play.google.com/store/apps/details?id=com.jordigordillo.dtswidget
What's the reason for this app if we already have Double to Sleep on stock?
schmeggy929 said:
What's the reason for this app if we already have Double to Sleep on stock?
Click to expand...
Click to collapse
We don't have double tap to sleep on stock.
I always use double tap to sleep features that come with Nova Launcher. Great works, regardless
schmeggy929 said:
What's the reason for this app if we already have Double to Sleep on stock?
Click to expand...
Click to collapse
As mentioned yes unfortunately there is no double tap to sleep on stock unless you use a custom launcher.
schmeggy929 said:
What's the reason for this app if we already have Double to Sleep on stock?
Click to expand...
Click to collapse
You mean on Nova?
Is granting accessibility access to an app a safety concern?

Categories

Resources