更新源
sudo apt-get update
安装ADB
sudo apt-get install android-tools-adb
检查
adb version
类似错误需要给权限
($ adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
)
sudo chmod a+s /usr/bin/adb
打开adb shell
adb shell
netstat -ap|grep "5037" | 查看是什么进程占用了5037端口 |
adb nodaemon server | 检查5037端口 |
adb devices | 检测连接到电脑的安卓设备 |
adb version | 查看adb版本 |
adb shell | 进入adb shell环境 |
exit | 退出adb shell环境 |