感谢支持
我们一直在努力

Ubuntu下adb驱动问题

Ubuntu下adb默认无法识别,得到error: insufficient permissions for device,使用adb devices得到no permissions.解决办法有两种:


1. 使用root账户(su到root账户)


su
cd Android-tools-dir
./adb kill-server
./adb start-server
./adb devices


2. 修改udev的权限,猛击这里,添加/etc/udev/rules.d/50-android.rules


SUBSYSTEM==”usb”, SYSFS(idVendor)==”18d1“, MODE=”0666″


然后修改执行权限


chmod a+rx /etc/udev/rules.d/50-android.rules


重启udev


sudo restart udev


经测试,第一种方法成功,第二种方法失败

On Ubuntu Linux


1.
Plug-in your device then exec command ‘lsusb’ then you will see the list of current usb devices


Bus 003 Device 023: ID 18d1:d00d


We will see a device is appeared when it plug-in and disappeared when it plug-out. That device is we wanted and take my environment as an example it is located at line 1, “Bus 003 Device 023: ID 18d1:d00d”, without device provider.


2. Login as root and create this file: /etc/udev/rules.d/50-Android.rules


For Gusty/Hardy, edit the file to read:


SUBSYSTEM==”usb”, SYSFS(idVendor)==”18d1“, MODE=”0666″


For Dapper, edit the file to read:


SUBSYSTEM==”usb_device”, SYSFS(idVendor)==”18d1“, MODE=”0666″


P.S. the “18d1” is hard coded in android/kernel/drivers/usb/gadget/android_adb.c 
#define DRIVER_VENDOR_ID


2. Nwx execute:


chmod a+rx /etc/udev/rules.d/50-android.rules


3. Restart udev to make the rule active.


 sudo /etc/init.d/udev restart

赞(0) 打赏
转载请注明出处:服务器评测 » Ubuntu下adb驱动问题
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏