I have been developing in windows all the time, but this time, because a small module can only run in linux, such a series of problems have occurred.
Environment: Ubuntu12.10 under Vmware Virtual Machine
Event: after connecting to the android phone, adb devices appears ?????, Nopermissions has no permissions,
Reason: After Baidu, the reason is that ubuntu and other systems are running as non-root by default. To use usb debugging, sudo support is required.
Solution:
1. Enter the command to view the usage of the usb. The green box contains the android device that is currently connected to me. The 18d1: 9025 in the ID will be used later.
2. enter the command, enter the following content, and save it. Note that ATTRS {idVendor} in the following content is the left part of the colon in the ID, ATTRS {idProduct} is the right part of the colon in the ID.
If there are multiple devices, you can directly wrap the lines in this file and add content in the xiamina format.
In a single case:
SUBSYSTEM = "usb", ATTRS {idVendor} = "18d1", ATTRS {idProduct} = "9025", MODE = "0666"
In multiple cases:
SUBSYSTEM = "usb", ATTRS {idVendor} = "21d2", ATTRS {idProduct} = "0363", MODE = "0666" = "usb ", ATTRS {idVendor }== "18d1", ATTRS {idProduct }== "9025", MODE = "0666"
3. After saving the file, grant related permissions to the file.
Sudo service udev restart
5. You do not need to restart the computer. Restart the adb server,