问题描述
我有两个智能手机( ZTEV788d ,系统的的Android 2.3.6 )连接到计算机( Unbuntu 11.10 )在同一时间,使用命令: ADB设备
我得到这样的:
I have two smart phones (ZTEV788d, system Android 2.3.6) connected to a computer (Unbuntu 11.10) at the same time, using command: adb devices
I got this:
List of devices attached
P753A12D device
P753A12D device
该序列号是一样的!
The serial numbers are the same!
我写在电脑端与这两款手机进行通信的应用程序,例如,安装应用程序,并按下文件。
I wrote an application in the computer side to communicate with these two phones, for example install app and push files.
我用以下命令:
adb -s P753A12D install XXX.apk
adb -s P753A12D push XXX /sdcard
现在这两款手机具有相同的序列号( P753A12D
),当我运行这些命令我得到这个错误:
Now these two phones have the same serial no (P753A12D
), when I run these commands I get this error:
error:more than one device
所以,我的问题是:
So, my questions are:
- 是正常的两款手机具有相同的序列号?
- 我可以更改序列号?如果是的话,怎么 ?
- 有什么办法来运行这些安装,推送成功的命令,即使序列号是否相同?
顺便说一句,在WiFi / 3G网络将被关闭的时候,我会运行测试。
BTW, the WiFi/3G network will be turned off when I'll run the test.
推荐答案
今天,我发现这个问题的一个简单的解决方案。
Today I found an easy solution for this issue.
adb devices -l
您会得到设备的清单及其预选赛
You'll get list of devices with their qualifiers
List of devices attached
P753A12D device usb:26200000
P753A12D device usb:24400000
然后你可以使用限定词,而不是序列号这样
Then you can use qualifiers instead of serial numbers like this
adb -s usb:26200000 install xxx.apk
这篇关于亚行有两个相同的序列号,当连接到两款智能手机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!