您的位置:首页 > 移动开发 > Android开发

Changing Android Device orientation with ADB

2016-07-13 13:49 447 查看
http://stackoverflow.com/questions/25864385/changing-android-device-orientation-with-adb

You may first need to turn off the automatic rotation
adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0


rotate to landscape
adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1


rotate portrait

adb
shell content insert --uri content://settings/system
--bind name:s:user_rotation --bind value:i:0


You
can also use 2
 and 
3
 for
upside-down portrait and reverse landscape respectively


First
you have to run adb
shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0
 to turn off the automatic rotation 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  adb