1. Add the ADB command to/usr/local/bin. Command:
sudo cp ~/working/ics/out/host/linux-x86/bin/adb/usr/local/bin/
2. Create the file 50-android.rules. Command:
sudo vim/etc/udev/rules.d/99-android.rules (99 for permissions, if there are two such to a file, execute the permission high. Input
subsystem== "USB", attrs{idvendor}== "1782", attrs{idproduct}== "5d24", mode= "0666", owner= "Raulyang"
Where device Idvendor can be viewed through LSUSB:
Bus 001 Device 016:id 1782:5d04 Spreadtrum Communications Inc.
3. Execution command: chmod a+rx/etc/udev/rules.d/99-android.rules
4. In the home directory, create the. Android directory, new Adb_usb.ini file in the. Android directory, add the value of Idvendor, enter: 0x1782 save to exit.
reason is ADB has a well-known list of vendor IDs, for the list of devices, ADB can directly connect, but not the list of devices, it will be directly returned, which is why the Android device driver has been installed, and the ADB connection is not the reason. If The manufacturer ID of the Android device we used has been modified, which is not in Google's default list, and the official steps will fail. Fortunately, ADB, in addition to a built-in list, there is a Adb_usb.ini file to maintain a trusted list of third-party vendors, need to vid (Vender ID) written to adb_usb.ini
5. Restart: Sudo/etc/init.d/udev restart
6. Execute: sudo adb kill-server
7. ADB devices