本文介绍常用adb命令
重启手机
adb reboot
WiFi调试程序
- 连接手机
adb connect 192.168.1.114:5555 - 断开连接
adb disconnect 192.168.1.114:5555 - 手机终端 注:手机需root 不想写命令 可以用 WiFi ADB
su
setprop service.adb.tcp.port 5555
stop adbd
start adbd
shell 进入命令行模式
adb shell
su 获取root权限
su
cd+路径 定位到目录下
- cd
- cd .. 返回上一级目录
ls 列出目录下的文件
- image
cat 打开文件 文本
cat 文件名
- image
exit 退出
- image
安装 install
adb install
- image
卸载 uninstall
adb uninstall 包名
![image](https://cloud.githubusercontent.com/assets/1846054/8743105/cac87824-2c9e-11e5-8411-3468694c747b.png)
image