Problem description and background:
There is no device under ADB devices after the new mobile phone is connected to the PC. USB debugging has been enabled on the mobile phone end (android4.0, set-developer option-select USB debugging). If there is no problem with the USB connection, you can open the storage device of the mobile phone.
The following is a solution. Refer to network.
1. Locate the device ID in lsusb
Lsusbbus 001 device 013: Id 1ebf: 7028
2. register the udev rules file:
Vim/etc/udev/rules. d/51-android.rules add this ID: 1ebf, as follows: subsystem = "USB", ATTR {idvendor} = "1ebf", mode = "0666" save the file and run it: sudo chmod A + Rx/etc/udev/rules. d/51-android.rules sudo/etc/init. d/udev restart: rather than invoking init scripts through/etc/init. d, use the service (8) utility, e.g. service udev restart since the script you are attempting to invoke has been converted to an upstart job, you may also use the stop (8) and then start (8) utilities, e.g. stop udev; Start udev. the restart (8) utility is also available. udev stop/waiting udev start/running, process 14636
3. Start ADB services
This online experience is executed under the directory of the ADB tool. I did it and succeeded.
Cd ~ /Program/Android/SDK/platform-tools sudo./ADB kill-server sudo./ADB start-Server
In this case, try debugging.
TIPS:
View the currently used ADB: Which ADB