对具有相同序列号的多个设备使用adb [英] Using adb with multiple devices with the same serial number
本文介绍了对具有相同序列号的多个设备使用adb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的计算机连接了两个设备。但是,当我启动adb时,它们的序列号均为 0123456789ABCDEF。
There are two devices connected with my computer.But when I start the adb, both of them have the serial number "0123456789ABCDEF".
当我尝试安装时APK时,安装失败,并显示多个设备错误消息。
When I try to install an APK, the installation fails with "more than one device" error message.
在另外,我正在开发一个蓝牙应用程序,我需要同时使用两个设备。
In addition, I am developing a Bluetooth app, I need to use both of the two devices simultaneously.
推荐答案
也许我可以为您提供帮助,我可以通过更改设备ID /序列号来解决此问题:
Maybe I can help you, I was able to solve this issue by changing the device ID/Serial:
-
adb shell
-
cd / sys / class / android_usb / android0 /
-
echo -n xxx> iSerial
(xxx是您想要的设备ID) -
cat iSerial
(检查新设备ID) ) - 拔下USB电缆并再次插入,然后更改生效。
adb shell
cd /sys/class/android_usb/android0/
echo -n xxx > iSerial
(the xxx is the device id you want)cat iSerial
(check the new device id)- Unplug usb cable and plug again, then the change worked.
要更改每个id,您的PC只能通过usb连接到一台设备。
To change each id, your PC should only be connected to one device via usb.
这篇关于对具有相同序列号的多个设备使用adb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文