Skip to content

Instantly share code, notes, and snippets.

@cvzi
Last active March 14, 2024 11:15
Show Gist options
  • Save cvzi/4c7bf3cea544774dd94b8276272d5e55 to your computer and use it in GitHub Desktop.
Save cvzi/4c7bf3cea544774dd94b8276272d5e55 to your computer and use it in GitHub Desktop.
Disable fingerprint vibration, torch "chop chop" vibration, (and possibly other vibrations) on Android 10 Motorola Moto G7 Power
# Enable USB debugging in the Developer settings and
# then connect phone via USB
# Open a terminal and connect to the phone via:
adb shell
# Lock your phone and then unlock with fingerprint to trigger the vibration.
# List the recent vibrations:
for pkg in $(pm list packages | sed 's/package://');
do
echo "$pkg $(appops get $pkg VIBRATE)" | grep 'time=+[0-9]*s';
done;
# On Moto G7 Power this should yield something like:
# android VIBRATE: allow; time=+8s708ms ago; duration=+87ms
# Meaning the package "android" caused the vibration.
# On other phones the package could have a different name than "android" e.g. "com.android.systemui"
# Block the "android" package from further vibrations with:
cmd appops set android VIBRATE ignore
# If you ever want to allow vibrations again, you can reverse the previous command like this:
cmd appops set android VIBRATE allow
# The torch/flash light vibration if you do the "chop chop"/shake motion, is from the package "com.motorola.actions"
# To disable it do:
cmd appops set com.motorola.actions VIBRATE ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment