adb
远程连接
port:5555
adb tcpip 5555
magisk更改build.prop service.adb.tcp=5555
adb connect 192.168.1.xx:5555
adb disconnect
wm
WM(window Manager) 基本都有reset
[wm size [reset | 1920x1080 ](x小写)修改屏幕分辨率
wm density [reset|360] 160,240,320,480为标准特定数值
vm scaling auto/off //auto设置缩放为自动 off为关闭
wm overscan [reset|LEFT,TOP,RIGHT,BOTTOM]
wm screen-capture [userId] [true|false] //屏幕捕获
wm screen-capture //开启或者关闭屏幕捕获
wm dismiss-keyguard //取消键盘锁,可能需要对用户的身份进行验证
adb shell pm disable-user 禁用某个APP
adb shell pm enable 启用某个APP
adb shell pm uninstall --user 0 包名,卸载某个APP(想保留APP数据在包名前面加参数 -k)
adb install -r 包名,安装某个APP
截屏 录屏
screencap /sdcard/xxx.png
screenrecord –verbose /sdcard/boot.mp4 verbose显示日志信息
多个设备
adb devices -l
-s
$ANDROID_SERIAL