ADB如何找到USB端口#?

发布于 2025-01-25 01:00:26 字数 417 浏览 1 评论 0原文

当我运行“ ADB设备-L” 时,它能够将USB端口信息显示为“ usb:xxxxxxxx ”。有人知道ADB是如何提取此信息的吗?我正在尝试弄清楚如何使用IDB来完成此操作,以便我可以为附加的iPhone获得相同的USB信息。谢谢!

Qelabadmin@devFarm〜%ADB -P 5037设备-l

附件的设备列表

17061fdee000bn设备 USB:338825984X:338825984X 产品:raven型号:pixel_6_pro设备:25

96081ffba device:25 96081ffba decection:25 96081ffba decect强>产品:珊瑚模型:Pixel_4_xl设备:珊瑚 Transport_ID:18

When I run "adb devices -l", it is able to display the USB port info as "usb:xxxxxxx". Does anyone know how adb pulls this info? I'm trying to figure out how I may be able to do this with idb so I can get the same USB info for the attached iPhones. Thanks!

qelabadmin@DevFarm ~ % adb -P 5037 devices -l

List of devices attached

17061FDEE000BN device usb:338825984X product:raven model:Pixel_6_Pro device:raven transport_id:25

96081FFBA00052 device usb:338768384X product:coral model:Pixel_4_XL device:coral
transport_id:18

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

时间你老了 2025-02-01 01:00:26

在MacOS上,您可以使用

ioreg -p IOUSB

,它列出了类似的内容

| +-o your device (2022)@14400000  <class AppleUSBDevice, id 0x0...>

,如果将十六进制转换为十进制,

0x14400000 => 339738624

则是adb显示的数字:

XXXXXXXX             device usb:339738624X product: blah, blah

On macOS you can use

ioreg -p IOUSB

and it lists something like

| +-o your device (2022)@14400000  <class AppleUSBDevice, id 0x0...>

and if you convert the hex to decimal

0x14400000 => 339738624

it's the number displayed by adb:

XXXXXXXX             device usb:339738624X product: blah, blah
深居我梦 2025-02-01 01:00:26

您将在Linux和MacOS上使用命令“ LSUSB”

you would use the command "lsusb" on Linux and MacOS

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文