adb常用命令

注意:需要先配置adb环境变量

db devices 列出所有的设备
adb start-server 开启adb服务
adb kill-server 关闭adb服务
adb logcat 查看Log
adb shell 挂载到Linux的空间
adb install <应用程序(加扩展名)> 安装应用程序
adb –s <模拟器名称> install <应用程序(加扩展名)> 安装应用到指定模拟器
adb uninstall <程序包名> 卸载程序
adb pull <remote> <local> 上传
adb push <local> <remote> 下载

ctrl + F11 横竖屏的切换

emulator –avd <模拟器名称> AVD存储位置 (了解,需要配置emulator环境)

adb shell screencap -p /sdcard/screen.png 截屏

adb shell screenrecord /sdcard/s1.mp4       |     adb shell screenrecord --size 1080x1920 /sdcard/s1.mp4

录制视频  按ctrl+c结束

原文地址:https://www.cnblogs.com/zzw1994/p/4884580.html