用于wear os 手表的adb 常用命令

2019-11-26  本文已影响0人  Yao_Fairytale

查看adb连接

adb device

安装软件

adb install 文件名.pkg

查看安装包名字

adb shell pm list packages

卸载软件

adb uninstall 安装包名字

传输文件

adb push

调整分辨率

adb shell wm density 数值

通过Wi-Fi调试

adb connect IP:5555

显示成功连接后,如果你没有其他adb设备,直接输入命令就好,和usb连接一样,如果还有其他设备,指定设备的IP和接口号。

屏幕旋转

关闭屏幕旋转

adb shell content insert — uri content://settings/system — bind name:s:accelerometer_rotation — bind value:i:0

横屏

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

竖屏

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

或者

adb shell

后输入

settings put system accelerometer_rotation 0 

关闭屏幕自动旋转

横屏

settings put system user_rotation 1
settings put system user_rotation 3

竖屏

settings put system user_rotation 0
settings put system user_rotation 2
上一篇 下一篇

猜你喜欢

热点阅读