about adb permission

776阅读 0评论2012-01-09 checl1987_EE
分类:LINUX

I met adb and fastboot permission deny by user priority when changing usb driver VID/PID.

I don't know the root cause, But you add one rule file to your udev/rules.d, it will ok.

reference:
http://www.reactivated.net/writing_udev_rules.Html

e.g:
chechunli@chechunli-PC:rules.d $ cat 60-cell.rules 
SUBSYSTEM!="usb_device", ACTION!="add", GOTO="cell_rules_end"
# New Phone
SYSFS{idVendor}=="5678", SYSFS{idProduct}=="1234", OWNER="chechunli", MODE="0660"
LABEL="cell_rules_end"


the  idVendor and idProduct is get by using lsusb command.

上一篇:linux zip 加密
下一篇:读写信号量(2.6.23内核,i386)