[RESOLVED][IDEA/REQUEST] Backlight button light up notification - HTC One X

See first post, page 3 for an solution
-------------------------------
Dear XDA,
I've searched for this kinda app but couldn't find it so i decided to make a thread about it.
Anyway, i was wondering if it's possible to make the backlight of the buttons light up when there is some kind of notification as the led in the One X is kinda useless imo.(dirt gets into the tiny holes)
If it IS possible, does someone want to take the effort to try and make such an application/mod?
I'll be eager and happy to test it and my thanks will be beyond eternity
Thanks in advance,
Joran

+1
Good idea, but I do think there could be any hardware limitations to make this work....
anyways, sounds great if it could be possible! :good:

I wrote an app called "Capacitive Button Brightness" which lets you control the brightness of the capacitive buttons backlight on the HTC One X: http://forum.xda-developers.com/showthread.php?t=2033973. Someone pointed this thread out to me so I thought I'd chime in with an idea.
I have not tested this (in fact I don't have a device to test it on!) but you might be able to flash the backlight of the capacitive buttons by running the following command from a root terminal:
Code:
echo 1 > /sys/class/leds/button-backlight/blink
If that doesn't work, take a look at the list of files in /sys/class/leds/button-backlight and see if perhaps I got the name of the file wrong. There should be one in there with "blink" in its name.
If this does indeed flash the capacitive button backlight then you could write a simple script in "Tasker" to blink the capacitive button backlight every time that a message is received.
User Vcek reported doing something very similar with Tasker, and I'd recommend to contact him if you have further questions. See http://forum.xda-developers.com/showthread.php?p=35266420#post35266420 and http://forum.xda-developers.com/showthread.php?p=35276999#post35276999

denversc said:
I wrote an app called "Capacitive Button Brightness" which lets you control the brightness of the capacitive buttons backlight on the HTC One X: http://forum.xda-developers.com/showthread.php?t=2033973. Someone pointed this thread out to me so I thought I'd chime in with an idea.
I have not tested this (in fact I don't have a device to test it on!) but you might be able to flash the backlight of the capacitive buttons by running the following command from a root terminal:
Code:
echo 1 > /sys/class/leds/button-backlight/blink
If that doesn't work, take a look at the list of files in /sys/class/leds/button-backlight and see if perhaps I got the name of the file wrong. There should be one in there with "blink" in its name.
If this does indeed flash the capacitive button backlight then you could write a simple script in "Tasker" to blink the capacitive button backlight every time that a message is received.
User Vcek reported doing something very similar with Tasker, and I'd recommend to contact him if you have further questions. See http://forum.xda-developers.com/showthread.php?p=35266420#post35266420 and http://forum.xda-developers.com/showthread.php?p=35276999#post35276999
Click to expand...
Click to collapse
i tried your app but all it does is either off or it's on.
Thanks for the input for this idea:good:, but i'm kinda low skilled (read no skill) in the technical side of the phone.
so i hope someone can try this?
edit: nvm, don't got terminal on this rom yet.

jorank said:
i tried your app but all it does is either off or it's on.
Thanks for the input for this idea:good:, but i'm kinda low skilled (read no skill) in the technical side of the phone.
so i hope someone can try this?
edit: nvm, don't got terminal on this rom yet.
Click to expand...
Click to collapse
You're right, my app won't address the feature you are looking for.
If you want a terminal, you can install "Android Terminal Emulator" from the Play store: https://play.google.com/store/apps/details?id=jackpal.androidterm. You will need to be rooted though.
If you want to test out the "echo" command in the previous post, you will need to run "su" in the terminal before running the "echo" command.

denversc said:
You're right, my app won't address the feature you are looking for.
If you want a terminal, you can install "Android Terminal Emulator" from the Play store: https://play.google.com/store/apps/details?id=jackpal.androidterm. You will need to be rooted though.
If you want to test out the "echo" command in the previous post, you will need to run "su" in the terminal before running the "echo" command.
Click to expand...
Click to collapse
tried the command and i confirm it works

jorank said:
tried the command and i confirm it works
Click to expand...
Click to collapse
Sweet. Now you can use an app like tasker to run that command every time you receive a message. Can anyone help with this?

denversc said:
Sweet. Now you can use an app like tasker to run that command every time you receive a message. Can anyone help with this?
Click to expand...
Click to collapse
I try to create a tasker profile with this. Does someone know a command to stop the blinking?

staffordniko said:
I try to create a tasker profile with this. Does someone know a command to stop the blinking?
Click to expand...
Click to collapse
Same command that is used to enable exept with echo 0.
Sent from my HTC One X

Got it done, how can i post a tasker script here?

Omg guys stop discussing aokp has this feature called button back light notification
Thread can be closes and don't forget to hit the thanks button
Gesendet von meinem HTC One X mit Tapatalk 2

howdid said:
Omg guys stop discussing aokp has this feature called button back light notification
Thread can be closes and don't forget to hit the thanks button
Gesendet von meinem HTC One X mit Tapatalk 2
Click to expand...
Click to collapse
and what if i don't want aokp but sense?
think twice please.

Okay so i've installed tasker but i can't find out how to set the appropriate settings for this event.
Anyone did it already?

Did anyone find a solution?

not really, tried tasker but that didn't get me any luck.
so i hope anyone else does

Profile: blink (2)
Event: Notification [ Owner Application:WhatsApp Title:* ]
Enter: blink (3)
A1: Run Shell [ Command:echo 1 > /sys/class/leds/button-backlight/blink Timeout (Seconds):0 Use Rootn Store Result In: ]
A2: Wait [ MS:0 Seconds:4 Minutes:0 Hours:0 Days:0 ]
A3: Run Shell [ Command:echo 0 > /sys/class/leds/button-backlight/blink Timeout (Seconds):0 Use Rootn Store Result In: ]

Did anyone test the battery usage for this?
@staffordniko: You could use a trigger for "screen on" to stop the blinking.

I can confirm that it works. It should be cool to blink one button at a time!
Sent from my EndeavorU using xda app-developers app

A mod like this would be nice!
I'll follow this thread!

I'm trying to export a app with this settings with "Tasker app factory", but no luck so far. Maybe someone know how to do this right? Getting a "package installer stopped" error.
Sent from my HTC One X using xda premium

Related

Turn off buttons' backlight on HTC Desire

I find it annoying when reading ebooks so I decided to turn it off. The setting is located at: sys/class/leds/button-backlight/brightness. Unfortunately the program I'm using, root explorer, won't let me access this value although I have rooted my phone. Is there any editor program for android like regedit for windows or is there any other way to do this?
Thank you!
I managed to "open as text" (cannot be edited) and the value is 255. I want to change it to 0. Anybody????
I would like this aswell for when im reading.
Thanks
here is a way to do:
load the program called "Gscript Lite" from the market
create a new script called
"keybacklight_off"
type in
echo 0 > sys/devices/platform/leds-microp/leds/button-backlight/brightness
create a new script called
"keybacklight_onn"
type in
echo 1 > sys/devices/platform/leds-microp/leds/button-backlight/brightness
klick on you homescreen klick on "links" (i have a german Phone dont know how it's called on your Phone)
click on Gscript Lite and select you script
kingchris said:
klick on you homescreen klick on "links" (i have a german Phone dont know how it's called on your Phone)
Click to expand...
Click to collapse
"program" on my phone
and.....
it works!!!!!!!!!!!!!!!!!!!!!!!
danken kingchris
sky|ined said:
"program" on my phone
and.....
it works!!!!!!!!!!!!!!!!!!!!!!!
danken kingchris
Click to expand...
Click to collapse
no not Programm.
the next point (the 3rd)
Widgets
Program
shortcut
folder
I have a problem. The script definitely works, but as soon as I open an ebook with aldiko reader the backlight turns on again and the same thing happens when I power the screen off and then back on. Is there a way to permanently turn off the backlight?
Thanks for your idea! Why not post it in dev forum, so they can build it in new roms
-------------------------------------
Sent via the XDA Tapatalk App
brianius said:
Thanks for your idea! Why not post it in dev forum, so they can build it in new roms
Click to expand...
Click to collapse
Thank you. You have my "permission" to do so if you want.
matter to me that when I'm going to watch a video again I turn back, there is some way to turn them off permanently?
thanks
Hi, is there a permanent fix now?
Every time my screen turns off the backlight comes back on
bemymonkey said:
Hi, is there a permanent fix now?
Every time my screen turns off the backlight comes back on
Click to expand...
Click to collapse
That's not how it should be unless something is keeping it awake.
-----------------------------------
- Sent via my HTC Desire -
th3 said:
That's not how it should be unless something is keeping it awake.
-----------------------------------
- Sent via my HTC Desire -
Click to expand...
Click to collapse
I think you've misunderstood me (or rather, I just said it wrong ): The lights turn back on when the display has been off... they're not on while the display is off, but if I turn the display off and back on again, they're back on.
Maybe it's because the Desire doesn't have read/write access to the system files?
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
Yes, install "LEDs hack" from the market. Will turn off button lights but needs root.
Sent from my HTC Desire using XDA App
Tried this app
It's doing its job but keeps annoying me with a warning "... has been granted superuser ..." every 10 seconds or so.
Uninstalled immediately !
Works great for me running Leedroid 2.2e. Check your superuser is up to date as per the initial screen.
Sent from my HTC Desire using XDA App
Got it working without notifications now. Great app. I'll just keep an eye on the battery usage when the phone is on standby.
Sent from my HTC Desire using XDA App
Awesome! Thank you for mentioning LEDs Hack. Works like a charm.
Great App!! Thx for mention it!!!!

How to switch off your softkey backlight

I see a few people asking about this and I found this app that works on my HTC One X.
Screen Filter:
https://play.google.com/store/apps/details?id=com.haxor&hl=en
If you just want to switch the lights off, set the filter to 100% then un-tick the enable softkey back light. It works great when watching videos or using it as a nightstand clock.
Hope their wasn't a thread about his. I did a few searches and couldn't find anything, hope this helps a few people.
Does it save the preference after reboot? I use Adjbrightness and after rebooting I have to load the app up again.
Sent from my HTC One X using xda app-developers app
I will have a look but I think you have to reopen it.
Sent from my HTC One X using xda app-developers app
I had a test now and it doesn't start on boot. But when you start the app after a boot it then knows what your last settings were. Hope that helps.
Sent from my HTC One X using xda app-developers app
K, when I have the time I was thinking of writing my own app that does this.
Sent from my HTC One X using xda app-developers app
If u put the app (screenfilter) in some autostart program it will work fine, if u dont wanna enable it manually.
This text was generated by a HoX device, in symbiosis with thoughts from someone else
ououououo said:
If u put the app (screenfilter) in some autostart program it will work fine, if u dont wanna enable it manually.
This text was generated by a HoX device, in symbiosis with thoughts from someone else
Click to expand...
Click to collapse
That is a great idea, I was wondering if there was an app like that I will have a look and see how well that works. But it's really nice to disable those lights, gives the phone a really neat appearance.
Roars21 said:
That is a great idea, I was wondering if there was an app like that I will have a look and see how well that works. But it's really nice to disable those lights, gives the phone a really neat appearance.
Click to expand...
Click to collapse
I did this on my previous device (xperia u, to get rid of the annoying LED-bar )
NOTE:
*** If you accidentally make your screen go BLACK ***
1. Pull your battery
2. Uninstall the app to reset your bad brightness setting
3. Reinstall the app and use it normally again"
Click to expand...
Click to collapse
I am kinda worried about this happening on my HOX...the fist step is already too much trouble to go through.
jimmy2027 said:
I am kinda worried about this happening on my HOX...the fist step is already too much trouble to go through.
Click to expand...
Click to collapse
Don't worry if you hold down the power button for a couple seconds it simulates a battery pull. Then when you start up, provided you don't have it on a autostart app you can then go in and change the settings. Also if you do set the brightness too low it gives you 10 seconds to approve it or it will just revert your settings. If that makes sense.
Make a new file, call it 99KeyOff.sh and put this in it:
#!/system/bin/sh
# ========================================
# init.d script for key light off. ONE X.
#BACKFROMTHE[/QUOTE]STORM
# ========================================
#disable Key Backlight
echo begin set Key Backlight - KB
echo KB - set permissions rw
chmod 0666 /sys/class/leds/button-backlight/brightness
echo KB - set Key Backlight 0
echo "0" > /sys/class/leds/button-backlight/brightness
echo KB - set permissions ro
chmod 0444 /sys/class/leds/button-backlight/brightness
echo KB - done!
Put it in the init.d folder or run it manually in a terminal emulator or script manager.
Unfortunately that doesn't work on the Maximus ROM. I think it's because the rootfs mounts read only. I tried adding a remount line to the top but nothing happened.
Sent from my HTC One X using xda app-developers app

[Q] Tester for Capacitive Button Brightness App

Hi One X community! I'm from the AT&T One X world, so I don't really belong here However, I wrote a little app for the evita/snapdragon One X that changes the brightness of the capacitive buttons (back, home, recent tasks) and I'm curious to see if it also works on your endeavoru/tegra3 One X. Would anyone be willing to test it out and report back in this thread? Although the app requires root permissions, I cannot imagine it doing any damage to your device should it not work. That being said... anything is possible... you have been warned
If you don't mind testing it out, there are 2 ways to do it:
Load the APK file for the application and run it
Run a command as root
Load the APK file for the application
If you are willing to load the app, the APK is available here: http://forum.xda-developers.com/showthread.php?t=1912216. After loading the APK, just launch the app "Capacitive Buttons Brightness" from the launcher and press one of the 3 buttons in the UI. If the capacitive button brightness changes, then the app works.
Run a command as root
Run the following command from a root shell:
echo 0 > /sys/devices/platform/msm_ssbi.0/pm8921-core/pm8xxx-led/leds/button-backlight/currents
This should shut off the button backlight. Using 1 and 2 instead of 0 should make the button backlight dim and full, respectively. These are the commands ultimately issued by the app.
Other Ideas
If this method of setting the button brightness doesn't work, would you happen to know the command to issue that does work? If you do, I could incorporate that command into my app, and have it choose the right command based on the current device.
Thanks in advance for your help!
denversc said:
Hi One X community! I'm from the AT&T One X world, so I don't really belong here However, I wrote a little app for the evita/snapdragon One X that changes the brightness of the capacitive buttons (back, home, recent tasks) and I'm curious to see if it also works on your endeavoru/tegra3 One X. Would anyone be willing to test it out and report back in this thread? Although the app requires root permissions, I cannot imagine it doing any damage to your device should it not work. That being said... anything is possible... you have been warned
If you don't mind testing it out, there are 2 ways to do it:
Load the APK file for the application and run it
Run a command as root
Load the APK file for the application
If you are willing to load the app, the APK is available here: http://forum.xda-developers.com/showthread.php?t=1912216. After loading the APK, just launch the app "Capacitive Buttons Brightness" from the launcher and press one of the 3 buttons in the UI. If the capacitive button brightness changes, then the app works.
Run a command as root
Run the following command from a root shell:
echo 0 > /sys/devices/platform/msm_ssbi.0/pm8921-core/pm8xxx-led/leds/button-backlight/currents
This should shut off the button backlight. Using 1 and 2 instead of 0 should make the button backlight dim and full, respectively. These are the commands ultimately issued by the app.
Other Ideas
If this method of setting the button brightness doesn't work, would you happen to know the command to issue that does work? If you do, I could incorporate that command into my app, and have it choose the right command based on the current device.
Thanks in advance for your help!
Click to expand...
Click to collapse
Hi there, didnt try your app.
But here at endevour we do stuff differently
either with some kernel hacks - never tried them
apps like screenfilter or adjbrightness and its child.
or :
SENSE: editing framework-res
CM10(not sure this would work on sense):
echo 0 > /sys/class/leds/button-backlight/brightness
chmod 444 /sys/class/leds/button-backlight/brightness
chmod 444 because as soon as you go screenoff it changes to default value, same as reboot.
that path you posted I couldn't find it in my installation.
echo 0 > /sys/devices/platform/msm_ssbi.0/pm8921-core/pm8xxx-led/leds/button-backlight/currents
PAGOT said:
Hi there, didnt try your app.
But here at endevour we do stuff differently
either with some kernel hacks - never tried them
apps like screenfilter or adjbrightness and its child.
or :
SENSE: editing framework-res
CM10(not sure this would work on sense):
echo 0 > /sys/class/leds/button-backlight/brightness
chmod 444 /sys/class/leds/button-backlight/brightness
chmod 444 because as soon as you go screenoff it changes to default value, same as reboot.
that path you posted I couldn't find it in my installation.
echo 0 > /sys/devices/platform/msm_ssbi.0/pm8921-core/pm8xxx-led/leds/button-backlight/currents
Click to expand...
Click to collapse
Thanks PAGOT for the information. So if I understand you correctly, running these 2 commands will turn off the capacitive buttons backlight:
echo 0 > /sys/class/leds/button-backlight/brightness
chmod 444 /sys/class/leds/button-backlight/brightness
But you're saying these two command only work on CM, and not Sense-based ROMs?
denversc said:
Thanks PAGOT for the information. So if I understand you correctly, running these 2 commands will turn off the capacitive buttons backlight:
echo 0 > /sys/class/leds/button-backlight/brightness
chmod 444 /sys/class/leds/button-backlight/brightness
But you're saying these two command only work on CM, and not Sense-based ROMs?
Click to expand...
Click to collapse
I do not know if they work on Sense roms, I didn't try it there. On sense I edited framework-res which doesn't work for sure on CM.
Dont know the other way around . Someone with a sense rom and rooted would have to test it. Right now I am not near a device like that to test.
In an attempt to get this app working on the HTC One X+ (evitareul) I believe I also got it to work on the international One X (endeavoru). Since they both use the Tegra3 chipset the changes that made it work on the One X+ should make it also work on the International One X.
Could someone load the attached app and let me know if it sets the capacitive button brightness? If it does, then I will post an "official" version into the Play Store asap. Thanks!
denversc said:
In an attempt to get this app working on the HTC One X+ (evitareul) I believe I also got it to work on the international One X (endeavoru). Since they both use the Tegra3 chipset the changes that made it work on the One X+ should make it also work on the International One X.
Could someone load the attached app and let me know if it sets the capacitive button brightness? If it does, then I will post an "official" version into the Play Store asap. Thanks!
Click to expand...
Click to collapse
Confirmed working on international one x running cm10.
The half brightness doesn't work though. When enabled brightness goes down for a split second and then back to full brightness. Nice little app.
Sent from my HTC One X using xda app-developers app
hahhahhaaa said:
Confirmed working on international one x running cm10.
The half brightness doesn't work though. When enabled brightness goes down for a split second and then back to full brightness. Nice little app.
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Awesome. Thanks for your response! It was the same thing on the One X+ where "dim" and "bright" were exactly the same. On the North American One X (Evita) the "dim" setting is actually slightly dimmer than "bright". I will get this app fixed up and published as soon as possible. I will also start a thread in the apps/themes aection once that is done.
A widget would be a nice addition.
Sent from my HTC One X using xda app-developers app
hahhahhaaa said:
A widget would be a nice addition.
Click to expand...
Click to collapse
Indeed it would. I actually started to look into it a few weeks ago so next time I have a few free hours (probably in the new year) I'll see if I can hammer out a widget for it.
hahhahhaaa said:
Confirmed working on international one x running cm10.
The half brightness doesn't work though. When enabled brightness goes down for a split second and then back to full brightness.
Click to expand...
Click to collapse
I've created one (hopefully) last test version of the app. This one only shows buttons for "bright" and "off"; the button for "dim" is not shown on the International One X since "bright" and "dim" have the same effective brightness.
Could someone do a quick test with the attached app? Just press the "bright" and "off" buttons each a few times and ensure that the capacitive button backlight turns on or off, as expected. Also, double-check that the correct device name ("HTC One X (endeavoru)") is displayed at the bottom of the "About" screen. Thanks!
Version 5 of the test app is attached.
An official version of the app that supports the International One X (endeavoru) has now been published. See http://forum.xda-developers.com/showthread.php?t=2033973
Works ok and the name is displayed correctly too.
Sent from my HTC One X using xda app-developers app

[PRO]Toggle script help

My keyboard backlight trigger stopped working so i have no backlight when the keyboard is opened.
I was hoping to write a script to toggle the backlight using a spare hardware key on the keyboard (368, that silly search/browser key below the enter key).
I have written 2 scripts to turn it on and off which were really simple (and work :victory but a toggle script looks a lot harder.
OFF
Code:
#!/system/bin/sh
echo "0">/sys/class/leds/keyboard-backlight/brightness
ON
Code:
#!/system/bin/sh
echo "255">/sys/class/leds/keyboard-backlight/brightness
Can anyone help me with this, i suspect it would be pretty simple for someone familiar with scripts.
DId i mention i know nothing about writing scripts...
Code:
#!/system/bin/sh
state=`cat /sys/class/leds/keyboard-backlight/brightness`
if [ "$state" == 0 ]; then
echo "255" > /sys/class/leds/keyboard-backlight/brightness
else
echo "0" > /sys/class/leds/keyboard-backlight/brightness
fi
Thanks ameer but it doesn't seem to work, it will turn the backlight on but will not turn it off again.
Tironsteel said:
Thanks ameer but it doesn't seem to work, it will turn the backlight on but will not turn it off again.
Click to expand...
Click to collapse
Did your previous script turn it off?
ameer1234567890 said:
Did your previous script turn it off?
Click to expand...
Click to collapse
Yes it did.
I tried running the Toggle script after the backlight was already on as well and it still didnt turn it off. Only way to turn it off is to run the OFF script.
Tironsteel said:
Yes it did.
I tried running the Toggle script after the backlight was already on as well and it still didnt turn it off. Only way to turn it off is to run the OFF script.
Click to expand...
Click to collapse
How did you run the scripts?
ameer1234567890 said:
How did you run the scripts?
Click to expand...
Click to collapse
Script Manager - SManager app
Also tried it in terminal to no avail.
Surprisingly, it works perfectly on my Xperia Pro.
ameer1234567890 said:
Surprisingly, it works perfectly on my Xperia Pro.
Click to expand...
Click to collapse
Well I suppose that's good news...
Ill try a different rom and see if that makes a difference
Thanks for your help ameer
Tironsteel said:
My keyboard backlight trigger stopped working so i have no backlight when the keyboard is opened.
I was hoping to write a script to toggle the backlight using a spare hardware key on the keyboard (368, that silly search/browser key below the enter key).
I have written 2 scripts to turn it on and off which were really simple (and work :victory but a toggle script looks a lot harder.
OFF
Code:
#!/system/bin/sh
echo "0">/sys/class/leds/keyboard-backlight/brightness
ON
Code:
#!/system/bin/sh
echo "255">/sys/class/leds/keyboard-backlight/brightness
Can anyone help me with this, i suspect it would be pretty simple for someone familiar with scripts.
DId i mention i know nothing about writing scripts...
Click to expand...
Click to collapse
Hi,
How can I execute that script with the hardware key (search/browser)?
Thanks in advance
Any news about that ?
Yyyeeeah...
I wish there was more news, but I guess not...
How hard could it really be (for you awesome people who know how to do everything)?
I mean, I run the same (almost) ROM on both my xmp and xp, yet on xp there's no HW-keyboard backlight when clearly on xmp it's no problem.
I know the phone is outdated now to say the least, but seeing as how there's such a dedicated group of users who prefer to have a hardware keyboard, shouldn't there be at least one programmer willing to put a few hrs in?
Please, please, pretty please, please with ice cream and cherries ontop-- uuuh AND WHIPPED CREAM TOO! yum... -what was I talking about...?

Control your AOD (LED alternative - Automate flow)

Hi all,
I am also missing a notification LED for incoming messages et al.
Well, the following might be of interest for some of you. Let me explain: I took a closer look at Automate and the flows provided by the user community there. Unfortunately all the flows for controlling the AOD there do support Samsung and LG devices only. By chance I stumbled across the correct name for the Huawei-specific variable that needs to be triggered. So, I took a working flow for LG, simply replaced the variable's name and voila, a working flow, without the need for root or something.
And it works like this: each time an incomming message (or something similar) triggers a notification, the stock AOD gets switched on, showing you the usual clock and notification icon. As soon as you are disabling the notification (by reading the message etc. pp.) the AOD gets switched off again. This works quite well, saves some battery (compared to having AOD constantly on), and you can clearly see when a new message arrives. I also didn't need to put Automate in the battery white list, it simply works as intended.
The necessary steps to get this working are as follows:
Install Automate from play store
Install the Automate extensions "network permissions", "settings permissions" and "superuser permissions" (the latter does not need root for granting the permissions indeed)
Enable "superuser permissions" via adb:
Code:
adb shell pm grant com.llamalab.automate.ext.superuser android.permission.WRITE_SECURE_SETTINGS
Switch off the AOD functionality in your devices settings
Download the (zipped) flow I have attached to this post and install it
Start the flow and grant the permissions you are asked for
If you use flow v01 switch off the logging of that flow, there are tons of data generated while the device is plugged in via USB, flow v02 works fine with loggin enabled
Enable "Automate" in Settings -> Accessibility features -> Accessibility -> Downloaded Services
I have been running this solution since late November. For me it runs smoothly, stable and battery friendly. Maybe it's also helpful for some of you. Just let me know when you have questions.
Disclaimer: I have published the flow on 25th November at android-hilfe.de and in the Automate community only recently.
Cheers.
Update:
@RoteDose has been so kind and had a closer look at the old flow and completely reworked the power charging check, so there's no log flooding anymore. So he created a v02, that I have attached here now. Thanks a bunch for your support, mate!
To do: research for AOD icons to be refreshed after disabling the notification
- Found a list of Huawei specific settings here.
- And you can list the settings by
Code:
adb shell settings list system|global|secure
Hi. I tried this for the Mate 20 X and got the following error when trying to enable superuser permissions using Terminal Emulator:
adb: inaccessible or not found
I am not rooted - any idea what the issue might be?
praveen6585 said:
Hi. I tried this for the Mate 20 X and got the following error when trying to enable superuser permissions using Terminal Emulator:
adb: inaccessible or not found
I am not rooted - any idea what the issue might be?
Click to expand...
Click to collapse
Hi. I would recommend to use adb from your PC. Here's a XDA how-to: https://www.xda-developers.com/install-adb-windows-macos-linux :good:
beggar23 said:
Hi. I would recommend to use adb from your PC. Here's a XDA how-to: https://www.xda-developers.com/install-adb-windows-macos-linux :good:
Click to expand...
Click to collapse
Thanks.. I'll try this and revert
Hi can you please give more details on no. 5, 6 and 7?
galaxy16 said:
Hi can you please give more details on no. 5, 6 and 7?
Click to expand...
Click to collapse
You can download to your phone the file "Huawei AOD switch.zip" I attached and unpack it to a path of your choice. In the Automate app you can import the unpacked "*.flo" file through the dots menu on the top right. You are then able to give permissions, switch logging and start/stop the flow.
Hope this helps. Just let me know. Cheers.
Is there anything else to do after the upload? Unfortunately, it doesn't work for me. I get a notification and nothing happens. But when I turn on the screen and lock the AOD shows. But that's not how it's supposed to work.
beginner user said:
Is there anything else to do after the upload? Unfortunately, it doesn't work for me. I get a notification and nothing happens. But when I turn on the screen and lock the AOD shows. But that's not how it's supposed to work.
Click to expand...
Click to collapse
Have you switched off AOD before starting the flow?
beggar23 said:
Have you switched off AOD before starting the flow?
Click to expand...
Click to collapse
Yes, it's still off.
beginner user said:
Unfortunately, it doesn't work for me. I get a notification and nothing happens. But when I turn on the screen and lock the AOD shows. But that's not how it's supposed to work.
Click to expand...
Click to collapse
Alright. Let's check some things. First question: How do you know, that you got a notification, when the screen or AOD doesn't light up?
beggar23 said:
Alright. Let's check some things. First question: How do you know, that you got a notification, when the screen or AOD doesn't light up?
Click to expand...
Click to collapse
I was writing a message from my wife... Generally speaking, now it's working. I don't know what was wrong before. That's great
beginner user said:
I was writing a message from my wife... Generally speaking, now it's working. I don't know what was wrong before. That's great
Click to expand...
Click to collapse
Glad to hear that! :good:
Its not working o my P30, Emui 10. I followed instruction everything allowed, AOD stock deactivated, but nothing......Automate works fine, flow is active, but...… What could be wrong......
First of all, thank you for this solution.
But I have a little problem. I don't know why, but for me doesn't work :/
AOD switched off -> started the flow (granted all the permissions) -> lock the screen -> i got a message (the phone vibrated), but the AOD doesn't switch on -> unlock the phone, just to the home screen (doesn't read the message) and lock again -> and now the AOD is switched on
The problem is solved.
Just need to enable this:
Settings -> Accessibility features -> Accessibility -> scroll down and enable Automate
razer91 said:
The problem is solved.
Just need to enable this:
Settings -> Accessibility features -> Accessibility -> scroll down and enable Automate
Click to expand...
Click to collapse
Thank you for that. I will add it to the OP.
Alexxxx1 said:
Its not working o my P30, Emui 10. I followed instruction everything allowed, AOD stock deactivated, but nothing......Automate works fine, flow is active, but...… What could be wrong......
Click to expand...
Click to collapse
Let's stop, switch on logging and restart the flow. Try enabling Automate in "Downloaded Services" as @razer91 described below your post. Maybe the log info will then help you finding out what goes wrong. Just let me know.
beggar23 said:
Let's stop, switch on logging and restart the flow. Try enabling Automate in "Downloaded Services" as @razer91 described below your post. Maybe the log info will then help you finding out what goes wrong. Just let me know.
Click to expand...
Click to collapse
Thank You very much! It works, great!
I hope that Automata will not affect on battery life.
Alexxxx1 said:
Thank You very much! It works, great!
I hope that Automata will not affect on battery life.
Click to expand...
Click to collapse
I don't think so. At least here it's all fine. Automate is not even in the battery saver white list, and going to sleep perfectly. Also, I detected no CPU wakelocks.
Yes, I checked too. The consumption of battery by Automata is minor.
Excellent work man [emoji106][emoji108]
Sent from my ELE-L29 using Tapatalk

Categories

Resources