Skip to content

Instantly share code, notes, and snippets.

@mugifly
Last active December 8, 2022 22:40
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mugifly/71fe92b769412ef2739a14d28c37043f to your computer and use it in GitHub Desktop.
Save mugifly/71fe92b769412ef2739a14d28c37043f to your computer and use it in GitHub Desktop.
Disable the animation of Android Virtual Device using adb command
# For Android JellyBean and newer device
adb shell content update --uri content://settings/system --bind value:s:0.0 --where 'name="window_animation_scale"'
adb shell content update --uri content://settings/system --bind value:s:0.0 --where 'name="transition_animation_scale"'
adb shell content update --uri content://settings/system --bind value:s:0.0 --where 'name="animator_duration_scale"'
# For Android ICS and older device
adb shell "echo \"update system set value=0.0 where name='window_animation_scale';\" | sqlite3 /data/data/com.android.providers.settings/databases/settings.db"
adb shell "echo \"update system set value=0.0 where name='transition_animation_scale';\" | sqlite3 /data/data/com.android.providers.settings/databases/settings.db"
@jaredsburrows
Copy link

Are you seeing the following?

$ adb shell content update --uri content://settings/system --bind value:s:0.0 --where 'name="window_animation_scale"'
Error while accessing provider:settings
android.database.sqlite.SQLiteException: no such column: window_animation_scale (code 1): , while compiling: UPDATE system SET value=? WHERE name=window_animation_scale
	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:181)
	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:137)
	at android.content.ContentProviderProxy.update(ContentProviderNative.java:560)
	at com.android.commands.content.Content$UpdateCommand.onExecute(Content.java:536)
	at com.android.commands.content.Content$Command.execute(Content.java:381)
	at com.android.commands.content.Content.main(Content.java:544)
	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:243)
	at dalvik.system.NativeStart.main(Native Method)

@netimen
Copy link

netimen commented Dec 14, 2017

I see the same thing

@lifuzu
Copy link

lifuzu commented Jan 13, 2018

Same here

@omritoptix
Copy link

You can run this commands instead:

adb shell settings put global window_animation_scale 0.0

adb shell settings put global transition_animation_scale 0.0
adb shell settings put global animator_duration_scale 0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment