The actual operations we need to perform are:
Open the terminal. First, create the. Rules configuration file under the directory/etc/udev/rules. d/with root permissions.
Command: sudo touch 51-android.rules
Next, do I need to edit the. Rules file just created?
Command: gedit 51-android.rules
Inland transportation
Enter subsystem = "USB", sysfs {idvendor }== "0bb4", mode = "0666"
Then, grant permissions
Command: chmod A + R 51-android.rules
Restart udev
Command: sudo/etc/init. d/udev restart
After the configuration is complete, we can unplug the USB cable of the mobile phone and reconnect it. Run the command ADB devices in the/Android/SDK/tools/directory.
Start debugging if devices are listed
List of devices attached
Ht069pl00679 Device
Women's brand ranking
The possible problem is
List of devices attached
?????? No permission
Of course, this is only a permission issue. You can view the system logs through logcat and will find the following prompt:
Will be removed in a future udev version, please use ATTR {}=
Match the event device, or attrs {}= to match a parent device, in
/Etc/udev/rules. d/50-android
Clear the problem. re-edit the. Rules file and replace sysfs with ATTR.
Subsystem = "USB", ATTR {idvendor} = "0bb4", mode = "0666"
Repeat the following operations.