Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of adb connection failure under Linux or Mac

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to solve the problem of adb connection failure under Linux or Mac". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to solve the problem of adb connection failure under Linux or Mac".

1. View device VenderID

Open the terminal (Terminal) under mac or Linux, press the shortcut key (CTRL+T, forget whether everyone should try or check) under linux, Control+space under mac, and type Terminal to open it. After opening the terminal, enter the command

Under mac:

System_profiler SPUSBDataType

Under linux:

Lsusb

The results are as follows:

USB:

USB 3.0 Bus:

Host Controller Driver: AppleUSBXHCILPTH

PCI Device ID: 0x8c31

PCI Revision ID: 0x0005

PCI Vendor ID: 0x8086

Apple Internal Keyboard / Trackpad:

Product ID: 0x0262

Vendor ID: 0x05ac (Apple Inc.)

Version: 2.25

Speed: Up to 12 Mb/sec

Manufacturer: Apple Inc.

Location ID: 0x14400000 / 4

Current Available (mA): 1000

Current Required (mA): 40

Extra Operating Current (mA): 0

Built-In: Yes

BRCM20702 Hub:

Product ID: 0x4500

Vendor ID: 0x0a5c (Broadcom Corp.)

Version: 1.00

Speed: Up to 12 Mb/sec

Manufacturer: Apple Inc.

Location ID: 0x14300000 / 3

Current Available (mA): 1000

Current Required (mA): 94

Extra Operating Current (mA): 0

Built-In: Yes

Bluetooth USB Host Controller:

Product ID: 0x8289

Vendor ID: 0x05ac (Apple Inc.)

Version: 1.18

Speed: Up to 12 Mb/sec

Manufacturer: Apple Inc.

Location ID: 0x14330000 / 7

Current Available (mA): 1000

Current Required (mA): 0

Extra Operating Current (mA): 0

Built-In: Yes

USB Mouse:

Product ID: 0x00fb

Vendor ID: 0x0e8f

Version: 0.01

Speed: Up to 1.5 Mb/sec

Manufacturer: YSTEK

Location ID: 0x14200000 / 2

Current Available (mA): 1000

Current Required (mA): 100

Extra Operating Current (mA): 0

MX4 Pro:

Product ID: 0x0c02

Vendor ID: 0x2a45

Version: ff.ff

Serial Number: 0123456789ABCDEF

Speed: Up to 480 Mb/sec

Manufacturer: Meizu

Location ID: 0x14100000 / 29

Current Available (mA): 1000

Current Required (mA): 500

Extra Operating Current (mA): 0

Mine is MX4 Pro, so Vendor ID: 0x2a45

two。 Add VendorID

Enter / Users/user/.android,.android is a hidden folder. You can enter it directly through the terminal:

Cd / Users/user/.android

Ls

There should be an adb_usb.ini file, which is also available in the windows user directory. Add the Vendor ID above

# ANDROID 3RD PARTY USB VENDOR ID LIST-DO NOT EDIT.

# USE 'android update adb' TO GENERATE.

# 1 USB VENDOR ID PER LINE.

0x2a45

3. Restart the adb command

Enter next time at the terminal:

Adb kill-server

Adb start-server

Thank you for your reading, the above is the content of "how to solve the problem of adb connection failure under Linux or Mac". After the study of this article, I believe you have a deeper understanding of how to solve the problem of adb connection failure under Linux or Mac. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report