Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@jaredsburrows jaredsburrows commented Nov 29, 2017

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

This comment has been minimized.

Copy link

@netimen netimen commented Dec 14, 2017

I see the same thing

@lifuzu

This comment has been minimized.

Copy link

@lifuzu lifuzu commented Jan 13, 2018

Same here

@omritoptix

This comment has been minimized.

Copy link

@omritoptix omritoptix commented Feb 21, 2018

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
You can’t perform that action at this time.