记录一些adb

140 阅读1分钟

旋转屏幕:

adb shell settings put system user_rotation 3

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

# 纵向(正常状态:顺时针旋转0°):SureaceOrientation 的值为 0

# 横向(顺时针旋转90°): SureaceOrientation 的值为 1

# 纵向(顺时针旋转180度): SureaceOrientation 的值为 2

# 横向(顺时针旋转270度): SureaceOrientation 的值为 3

重启 

adb shell reboot

关机 

adb shell reboot -p

在输入框中输入

 adb shell input text 1111

模拟按键

返回键 input keyevent 4

adb root 

获取系统读写权限 adb remount