I was reading on a thread that on Wear 2.0 you can disable animations in developer settings. Unfortunately these settings aren't visible on wear 1.5 so I thought I would try via ADB and it has made my watches (LG G Watch and Sony Smartwatch 3) really snappy and responsive.
With the watch connected and using ADB type
adb shell
settings put global window_animation_scale 0
settings put global transition_animation_scale 0
settings put global animator_duration_scale 0
reboot
I use the values 0 to completely disable animations but you can adjust the speed using values between 0 and 1.
Related
I recently flashed Axium and man is this thing nice. Def a must have. Anyways I noticed that like many roms the back light of the soft keys stay on. I ended up downloading an app called
Adjbrightness
It works perfectly. Make sure to go to the menu settings and lock it on disable soft key back light.
Enjoy!!!
on Arc S
while button-backlights are off value of
/sys/class/leds/button-backlight/brightness is 0
while its 0 change permissions to read only
they are disabled
I can also limit current to 150 in max_current which limits current and lights are dimmed if you want it running but not at max brightness...
added
echo 0 > /sys/devices/i2c-0/0-0040/leds/button-backlight/brightness
chmod 444 /sys/devices/i2c-0/0-0040/leds/button-backlight/brightness
Click to expand...
Click to collapse
to /system/etc/hw_config.sh
now they are set off on boot
Way back in my EVO OG days, someone had discovered how to directly access the LEDs, and I had put together some Tasker scripts to put them to good use. I know that there are apps like LightFlow that allow you to do a bunch of stuff to the LEDs, but I found them very cumbersome to use, and there were all kinds of settings that don't work on the Note 2. There was no easy way to know what settings to choose and what were appropriate for the Note 2. Also, Light Flow only works when the display is off, and interferes with the Phones own notification system. This mod works whether the display is on or off (if you want) and is independent of the built in charging notifications.
Also, it's way more awesome to learn to do stuff yourself!
I've used Tasker for years, and although it takes some getting used to, it does a great job at executing tasks based on events.
--------------------------------------------------------------------------------------
Anyway, here's what you can do using Terminal Emulator (which can then be scripted in Tasker). YOU WILL NEED ROOT ACCESS.
Background
1. There are 3 LEDs used for notifications, leg_r (red), led_g (green) led_b (blue).
2. Each LED can be set to a specific brightness from 0 to 255 (where 0 is off and 255 is full brightness), by writing to the "brightness" file.
3. Each LED can be set to blink by writing a value of 0 (off) or 1 (on) to the "blink" file.
4. You can set the time the LED illuminates and the time it is dark when blinking by writing to the "delay_on" and "delay_off" files (values are in milliseconds).
5. These files are located in /sys/class/leds
It appears that "blink" must be executed again after changing the delay for it to have an effect, and turning the LED off requires you to revert the last change - if you set brightness and then blink, you must set blink to 0 to turn it off. If you turned it on with brightness last, then you must set brightness to 0 to turn off. (still investigating this part).
All you need to do is enter the following commands:
echo 500 > /sys/ckass/leds/led_b/delay_on <- sets the ON time to 1/2 second
echo 500 > /sys/ckass/leds/led_b/delay_off <- sets the OFF time to 1/2 second
echo 128 > /sys/ckass/leds/led_b/brightness <- sets LED brightness (blue) to about 1/2 of max (note that this turns on the steady LED)
echo 1 > /sys/ckass/leds/led_b/blink <- Blinks the Blue LED at the above intervals
Now in Tasker you can:
a. Create a profile for the "Missed Call" State (or event).
b. Add a Task and in that task add 4 "Scripts" of type "Shell" for each of the above.
c. Make sure you check "Use Root" for each script
I've done this to have my phone flash red for missed calls, blue for missed texts and green for missed calendar events (each as its own Tasker profile)
You need to create one (or two) additional profiles to disable the flashing. All it needs is the following 3 commands to turn all the LEDs off.
echo 0 > /sys/ckass/leds/led_b/blink
echo 0 > /sys/ckass/leds/led_r/blink
echo 0 > /sys/ckass/leds/led_g/blink
I set one for the "Screen Unlock" event and one for the "Notification Bar". This way, the flashing stops in intuitive ways.
There's way more stuff you can do and trigger alerts on using Tasker.
You can also access the 2 Flashes and 2 Task Lights on the back of the phone (although I suspect it is really just two LEDs that run in 2 different modes). They are located at:
/sys/class/leds/leds-sec1
/sys/class/leds/leds-sec2
/sys/class/leds/torch-sec1
/sys/class/leds/torch-sec2
These only have a brightness setting to turn them on, and are limited to what ever value is stored in max_brightness.
I've attached a couple of Tasker pictures, but feel free to post any questions.
Is there a way to turn off Peeking or Heads up notifications? I always found those annoying. I can't find a global setting for it in Oreo. I can't even find a setting for it on an app by app basis.
Thanks in advance
this app adds a quicksetting toggle for it. gotta use adb though to grant secure setting permission
https://play.google.com/store/apps/details?id=it.simonesestito.ntiles&hl=en
Thanks for that.... so there is no way to do it without an app and ADB?
I plug my phone to my computer, run adb, type in:
adb shell settings put global heads_up_notifications_enabled 0
And no more heads up, ever.
j3oomerang said:
Thanks for that.... so there is no way to do it without an app and ADB?
Click to expand...
Click to collapse
ADB is required
Sent from my Pixel 2 XL using Tapatalk
buru898 said:
I plug my phone to my computer, run adb, type in:
adb shell settings put global heads_up_notifications_enabled 0
And no more heads up, ever.
Click to expand...
Click to collapse
damn! that's awesome
thanks man
buru898 said:
I plug my phone to my computer, run adb, type in:
adb shell settings put global heads_up_notifications_enabled 0
And no more heads up, ever.
Click to expand...
Click to collapse
I'm getting "global: 0: is not an identifier". Any idea why???
Edit: nevermind was doing it wrong. This worked perfectly, you are the best!!! Thanks!
buru898 said:
I plug my phone to my computer, run adb, type in:
adb shell settings put global heads_up_notifications_enabled 0
And no more heads up, ever.
Click to expand...
Click to collapse
Thanks a ton.... this made my day..
I just hate the Headsup/Peek notifications on Android... Google should allow Power Notifications control on Oreo like Nougat..
Maybe it is =0
What is heads up notifications?
I'm using the Oneplus 3T device, and I turn on and off peeking notifications for messages app.
Open Setting → Notifications → Messages → Tap Default → Importance → Set “High” instead of urgent and medium
You can use this feature on Facebook, Twitter, Whatsapp and Gmail apps as per your preference. But make sure every app has a different setting.
buru898 said:
I plug my phone to my computer, run adb, type in:
adb shell settings put global heads_up_notifications_enabled 0
And no more heads up, ever.
Click to expand...
Click to collapse
Thanks!!! It worked on my One Plus 3! You are my hero! I hate peeking notifications.
buru898 said:
I plug my phone to my computer, run adb, type in:
adb shell settings put global heads_up_notifications_enabled 0
And no more heads up, ever.
Click to expand...
Click to collapse
Thanks for that but i can't get it to work on my S7 with 8.0.0
The phone is connected to adb but when i type the command and restart the phone, it's just the same.
Basically i'm just trying to get rid of the heads up for incoming calls. If a call comes in i want it show on the whole screen.
Anything i might be doing wrong??
I use the left swipe for menus a lot and was really hating the back gesture messing that up. Found https://android.gadgethacks.com/how-to/disable-androids-back-gesture-left-side-make-hamburger-menus-easier-open-0338679/ and worked perfectly. The below ADB code is what I used and assumes you have the Android SDK and ADB set up.
Code:
adb shell settings put secure back_gesture_inset_scale_left 0
You can adjust the sensitivity for each side in settings. This just turns it completely off?
letrain02 said:
You can adjust the sensitivity for each side in settings. This just turns it completely off?
Click to expand...
Click to collapse
Yes and it works perfectly on Pixel 5 too.
Setting lower sensitivity won't disable back gesture.
letrain02 said:
You can adjust the sensitivity for each side in settings. This just turns it completely off?
Click to expand...
Click to collapse
I don't think it turns out all the way, I've had it trigger in apps with no left menu. It's much less sensitive though and the menu will pop out first. I'm thinking of doing it in the right too because it's way too sensitive for the browser I use, which has a ton of gesture controls.
The sensitivity in settings did nothing for me so found this.
brandontowey said:
I use the left swipe for menus a lot and was really hating the back gesture messing that up. Found https://android.gadgethacks.com/how...ide-make-hamburger-menus-easier-open-0338679/ and worked perfectly. The below ADB code is what I used and assumes you have the Android SDK and ADB set up.
Code:
adb shell settings put secure back_gesture_inset_scale_left 0
Click to expand...
Click to collapse
you should mention that others should try -1 or -2 if 0 does not work, 0 did not work for me but -2 seems to have disabled it
bramble with proton rom and kernel
I put -20 on both sides (to make sure it doesn't trigger in the cutout area in landscape mode) and use FNG instead. Works like a charm.
old thread, but this worked for disabling the right-back-gesture on Android 13/Pixel 6
adb shell settings put secure back_gesture_inset_scale_right 0
I use this command to use gesture from 3rd party application, but the original back gesture still working on my vivo x60 pro. Any thoughts please?
Redmi Note 8 Pro
Global Indonesia 12.0.3
Default MIUI system without additional apps.
I have no passwords, locks, graphical keys or fingerprints.
Lockscreen is off from developer menu. Double tap to wake.
"Lift to wake" is off in menu.
I set and via ADB
"wake_gesture_enabled=0"
"pick_up_gesture_wakeup_mode=0"
I CHECKED this parameters after set, everything is ok.
But phone still waking up after shaking. It's very annoying.
How to fix it?
SOLVED
"wake_gesture_enabled=0"
"pick_up_gesture_wakeup_mode=0"
means nothing without
adb shell settings put system lift_to_wake 0
If i request
adb shell settings get system lift_to_wake the reply is "null".
As far as MIUI - based on Android, i think Xiaomi engineers not connected first two (Xiaomi) variables with more global (Android) variable.
If somebody has possibility "report bug to developers", it must be done for future releases.