In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to connect a mobile phone with adb under Linux". The content is simple and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "how to connect a mobile phone with adb under Linux".
In Linux, the simulator can identify it directly, and there is no restriction on the use of adb, but after the phone is plugged into usb, adb does not recognize it. It displays a question mark, and the same is true in eclipse.
The solution is as follows:
1. Enter lsusb in bash and you can see many BUS devices, many of which are Linux Foundation 1.1 root hub. This is the port that is not plugged into the usb device, and another string will appear when the port is plugged into the phone. For example, mine is High Tech Computer Corp. And then write down its id:0bb4:0c02.
two。 Create a new 51-Android.rules file in the / etc/udev/rules.d directory as follows:
Java Code:
SUBSYSTEM== "usb | usb_device", SYSFS {idVendor} = = "0bb4", MODE= "0660", GROUP= "plugdev" SUBSYSTEM== "usb | usb_device", ATTR {idVendor} = = "0bb4", ATTR {idProduct} = = "0c02", SYMLINK+= "Android_adb" SUBSYSTEM== "usb | usb_device", ATTR {idVendor} = = "0bb4", ATTR {idProduct} = = "0c01", SYMLINK+= "Android_fastboot"
The idVendor here is the id noted in the * * step.
3. Execute the following command
Java Code:
Chmod aquir / etc/udev/rules.d/51-Android.rules sudo adb kill-server sudo adb devices
Then you will find that adb is ready to use.
The above is all the contents of the article "how to connect a mobile phone with adb under Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.