ubantu 12.4 enable fastboot devices to avoid no permission

1 add etc/udev/rules.d/70-android.rules files

1.1) lsusb 

Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 003 Device 105: ID 8087:09ef Intel Corp. 
Bus 003 Device 002: ID 17ef:600e Lenovo 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

 

 1.2) sudo vim etc/udev/rules.d/70-android.rules files and add the below lines

SUBSYSTEM=="usb", SYSFS{idVendor}=="17ef", MODE="0666"

1.3) save it

1.4)sudo chmod a+rx /etc/udev/rules.d/70-android.rules
1.5) sudo sevice udev restart

2 sudo cp  ${projector}/out/host/linux-x86/bin/fastboot /bin


$ fastboot devices

no permissions fastboot

3 sudo chmod +arxs /bin/fastboot

$ fastboot devices

BaytrailA39A5676 fastboot


你可能感兴趣的:(android,fastboot,ubantu12.4)