您好,登錄后才能下訂單哦!
這篇文章主要講解了“如何解決Linux或者Mac下adb連接失敗的問題”,文中的講解內容簡單清晰,易于學習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學習“如何解決Linux或者Mac下adb連接失敗的問題”吧!
1.查看設備VenderID
在mac下 或者Linux打開終端(Terminal),linux下可以按快捷鍵(CTRL+T,忘了具體是不是大家去試試或者查查),mac下Control+space,輸入Terminal打開。打開終端后,輸入命令
mac下:
system_profiler SPUSBDataType
linux下:
lsusb
結果如下:
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
我的是MX4 Pro,所以Vendor ID: 0x2a45
2.添加VendorID
進入/Users/user/.android,.android為隱藏文件夾,可以通過終端進入直接:
cd /Users/user/.android
ls
應該有個adb_usb.ini文件,在windows用戶目錄下也有該文件。添加上上面的Vendor ID
# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE ‘android update adb’ TO GENERATE.
# 1 USB VENDOR ID PER LINE.
0x2a45
3.重啟adb命令
在終端下一次輸入:
adb kill-server
adb start-server
感謝各位的閱讀,以上就是“如何解決Linux或者Mac下adb連接失敗的問題”的內容了,經過本文的學習后,相信大家對如何解決Linux或者Mac下adb連接失敗的問題這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是億速云,小編將為大家推送更多相關知識點的文章,歡迎關注!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。