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
rotate to landscape
rotate portrait
upside-down portrait and reverse landscape respectively
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 3for
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 相关文章推荐
- Python实现的基于ADB的Android远程工具
- 深入android中The connection to adb is down的问题以及解决方法
- Window下adb shell中文乱码问题解决方法
- 一些比较实用的 Android adb 命令分享
- android开发教程之ubuntu使用adb连接小米2的步骤和adb调试方法
- Android 用adb pull或push 拷贝手机文件到到电脑上,拷贝手机数据库到电脑上,拷贝电脑数据库到手机上
- Android adb 出错解决方法
- 导致adb无法启动的5种情况和解决方法
- Ubuntu下android adb环境变量配置方法
- adb 启动报错
- android 命令
- 使用bat文件快速解决adb找不到设备的问题
- 使用PC的adb工具通过wifi(TCP方式)调试安卓设备
- Android的ps命令介绍和技巧
- adb基本命令
- Android Shell命令之dumpsys部分功能简介
- adb shell dumpsys 命令
- android关于adb的一点小知识
- Android开发常用命令整理
- Android开发常用命令整理