When I execute the command:
$ adb devices
I got these results:
List of devices attached
0123456789ABCDEF device
0123456789ABCDEF device
0123456789ABCDEF device
0123456789ABCDEF device
......
All the above are the real devices with the same serial number.
If I run:
$ adb shell
error: more than one device and emulator
$adb -s 0123456789ABCDEF shell
#
But for the last case, the adb just connect the first plugged in
device, and I could not find way to connect to other devices.
So do you guys know a way to work this problem around?
And I notices, the emulator could be identified by port number, like:
List of devices attached
emulator-5554 device
emulator-5556 device
emulator-5558 device
...
How could I implement such mechanism for the real devices?
I will thank you so much for your help.
Best wishes,
Neil
Mike
> --
> unsubscribe: android-kerne...@googlegroups.com
> website: http://groups.google.com/group/android-kernel
>
--
Mike Lockwood
Google android team
Each device needs to have its own unique serial number even if they
are the same model. That is the whole point of the serial number.
Otherwise there is no way to tell them apart and you have this
problem.
Mike
On Thu, Feb 25, 2010 at 9:55 PM, Yidong Han
If they are really out of ideas they could use the MAC from whatever wireless/bluetooth/ethernet they have on the device as part of the unit unique serial number.
On Feb 25, 2010 10:41 PM, "Mike Lockwood" <lock...@android.com> wrote:
In the android devices I have worked on, the serial number is
programmed into flash. The bootloader passes it to the kernel via the
kernel command line and this is then passed to the USB driver. See
arch/arm/mach-msm/devices-htc.c in the msm kernel for an example.
Mike
On Thu, Feb 25, 2010 at 9:55 PM, Yidong Han
<neil.yi...@googlemail.com> wrote:
> Hi Mike,
> Thanks a lot for your quick reply.
> But I stil...
--