ADB如何找到USB端口#?
当我运行“ 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在MacOS上,您可以使用
,它列出了类似的内容
,如果将十六进制转换为十进制,
则是
adb
显示的数字:On macOS you can use
and it lists something like
and if you convert the hex to decimal
it's the number displayed by
adb
:您将在Linux和MacOS上使用命令“ LSUSB”
you would use the command "lsusb" on Linux and MacOS