1.下载platform-tools-linux.tar.gz工具,
#root$:tar -zxvf platform-tools-linux.tar.gz
解压到当前位置。
2.在/etc/profile配置环境变量
#root$ :vim /etc/profile
加入如下:
ADB_HOME=/home/tim/software/platform-tools
PATH=$PATH:$ADB_HOME
export ADB_HOME PATH
3.没设置前直接adb devices则会出现以下情况
* daemon not running. starting it now *
* daemon started successfully *
List of devices attached
???????????? no permissions
4.配置
关闭adb服务,切换到root,重启adb服务,离开root
adb kill-server
sudo $ADB_HOME/adb start-server
阅读(2912) | 评论(0) | 转发(0) |