1. Install a Terminal Emulator from Playstore
2. Disabling/enabling hardwarekeys
To DISABLE it typTo ENABLE it typCode:su echo 1 > /proc/s1302/virtual_key
3. DoneCode:su echo 0 > /proc/s1302/virtual_key
PS: You can do it from TWRP terminal too
PS2: No offense @BillGoss, but I think it is necessary, according to the user's previous comments
Hi everyone,
I would add:
Code:
echo 0 > /sys/class/leds/button-backlight/max_brightness
This "disables" the button light, we can't write a new value to ./button-backlight/brightness as it gets easly reset to ./button-backlight/max_brightness on subsequent user/system intercation (power/user events etc.).
Writing 0 to ./button-backlight/max_brightness prevents buttons' light to be reset to a value higher then 0 (previously 40).
To restore default max brightness just write "40":
Code:
echo 40 > /sys/class/leds/button-backlight/max_brightness
Rebooting should reset it, so you need to write it on each reboot. Ideally add those lines to custom init.d/ or any post boot script trigger you have setup.
Can easly be done with Kernel Adiutor or any kernel management app with custom controls, or even with Magisk magical ways.
@PlayFriik I sense a new build in the air :cyclops:
Just a heads up, I have noticed some errors about Google's turbo in the bugreports captured:
HTML:
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: Process: com.google.android.apps.turbo:ssb, PID: 9599
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: java.lang.RuntimeException: An error occurred while executing doInBackground()
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: at android.os.AsyncTask$4.done(AsyncTask.java:399)
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:271)
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: at java.lang.Thread.run(Thread.java:919)
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Invalid device curve returned, null
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: at bgv.a(PG:10)
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: at bgv.b(PG:44)
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: at bha.<init>(PG:6)
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: at com.google.android.libraries.smartbattery.brightness.library.UpdateOfflineModelJob.a(PG:254)
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: at bgk.doInBackground(PG:25)
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: at android.os.AsyncTask$3.call(AsyncTask.java:378)
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
01-15 17:35:01.341 10091 9599 9647 E AndroidRuntime: ... 4 more
Might need patching the brightness curve(s), so I suggest disabling it until it gets figured out.
Keep up the good work :good:
K.