位置: 编程技术 - 正文

Linux或者Mac下adb连接失败如何解决(adb mac安装)

编辑:rootadmin

推荐整理分享Linux或者Mac下adb连接失败如何解决(adb mac安装),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:linux的adb命令,linux ad驱动,macos使用adb,adb mac安装,linux系统adb安装,adb mac安装,linux的adb命令,linux使用adb,内容如对您有帮助,希望把文章链接给更多的朋友!

不管是在Windows系统还是在Linux系统中,相信不少用户或开发者都遇到过手机adb连接不上的情况。其实出现这种问题很多时候是由于adb冲突导致的,毕竟很多软件都有自己的adb链接。那么,出现这种问题该怎么办呢?下面就给大家介绍下Mac或者linux下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: 0x8c

PCI Revision ID: 0x

PCI Vendor ID: 0x

Apple Internal Keyboard / Trackpad:

Product ID: 0x

Vendor ID: 0xac (Apple Inc.)

Version: 2.

Speed: Up to Mb/sec

Manufacturer: Apple Inc.

Location ID: 0x / 4

Current Available (mA):

Current Required (mA):

Extra Operating Current (mA): 0

Built-In: Yes

BRCM Hub:

Product ID: 0x

Vendor ID: 0x0a5c (Broadcom Corp.)

Version: 1.

Speed: Up to Mb/sec

Manufacturer: Apple Inc.

Location ID: 0x / 3

Current Available (mA):

Current Required (mA):

Extra Operating Current (mA): 0

Built-In: Yes

Bluetooth USB Host Controller:

Product ID: 0x

Vendor ID: 0xac (Apple Inc.)

Linux或者Mac下adb连接失败如何解决(adb mac安装)

Version: 1.

Speed: Up to Mb/sec

Manufacturer: Apple Inc.

Location ID: 0x / 7

Current Available (mA):

Current Required (mA): 0

Extra Operating Current (mA): 0

Built-In: Yes

USB Mouse:

Product ID: 0xfb

Vendor ID: 0x0e8f

Version: 0.

Speed: Up to 1.5 Mb/sec

Manufacturer: YSTEK

Location ID: 0x / 2

Current Available (mA):

Current Required (mA):

Extra Operating Current (mA): 0

MX4 Pro:

Product ID: 0x0c

Vendor ID: 0x2a

Version: ff.ff

Serial Number: ABCDEF

Speed: Up to Mb/sec

Manufacturer: Meizu

Location ID: 0x /

Current Available (mA):

Current Required (mA):

Extra Operating Current (mA): 0

我的是MX4 Pro,所以Vendor ID: 0x2a

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.

0x2a

3.重启adb命令

在终端下一次输入:

adb kill-server

adb start-server

本文链接地址:https://www.jiuchutong.com/biancheng/358964.html 转载请保留说明!

上一篇:Linux中的编码转换程序convmv的安装和使用教程(linux 转换文件编码为utf8编码)

下一篇:Linux系统中安装和使用Axel下载工具的教程(linux系统中安装web服务)

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络