Skip to content

Instantly share code, notes, and snippets.

@alekseichuk
alekseichuk / adb_rotation.sh
Created July 13, 2022 10:17 — forked from whunter/adb_rotation.sh
android device display rotation via adb
# disable auto rotation
adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0
# force landscape
adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1
# back to portrait
adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:0
# upside down