???????????? no permissions解决方法

当出现????????????no permissions时,正确的做法。
#lsusb
Bus 001 Device 011: ID 0bb4:0cca High Tech Computer Corp.
#vi /etc/udev/rules.d/51-android.rules
添加

SUBSYSTEM=="usb", ATTR{idVendor}=="0ff9",MODE="0666",GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="0cca",MODE="0666",GROUP="plugdev"
#/etc/init.d/udev restart
如果还是找不到设备,继续:

【???????????? no permissions解决方法】#which adb
#cd adb_path//进入adb的路径下
#sudo su
#./adb kill-server
#./adb start-server
#./adb devices





adb 重启脚本

#!/bin/bashif [ $# -lt 1 ]; then echo "please input adb command as arguments" exit 1 fisource /etc/profileecho "restart udev" #/etc/init.d/udev restart service udev restartstr=$(which $1) > /dev/null#找到adb命令路径,注意bash等号两边不能有空格,否则会 找不到命令 echo $str > /dev/null$1 kill-server $1 start-server




下面更简单,直接明了。

#!/bin/bash#if [ $# -lt 1 ]; then #echo "please input adb command as arguments" #exit 1 #fisource /etc/profileecho "restart udev" #/etc/init.d/udev restart service udev restartstr=$(which $1) > /dev/null#找到adb命令路径,注意bash等号两边不能有空格,否则会 找不到命令 echo $str > /dev/nulladb kill-server adb start-server


    推荐阅读