In Linux, the simulator can be directly identified, and there is no restriction on the use of ADB, but after the mobile phone is plugged into the USB, ADB does not recognize it and displays a question mark, which is also true in eclipse.
The solution is as follows:
1. input lsusb in Bash. We can see that many of the bus devices are Linux Foundation 1.1 root hub. This is because the port of the USB device is not plugged in, and another string is displayed when the port of the mobile phone is plugged in, for example, ID: 0bb4: 0c02
2. Create a 51-android.rules file in the/etc/udev/rules. d directory with the following content:
Subsystem = "USB", sysfs {idvendor} = "0bb4", mode = "0666"
3. Execute the following command:
- Chmod A + R/etc/udev/rules. d/51-android.rules
- Sudo ADB kill-Server
- Sudo ADB Devices
Then, you can directly use ADB for operations.