How could adb identify many devices with same serial number?

by Yidong Han » Thu, 25 Feb 2010 19:15:49 GMT

Sponsored Links
 Now I am trying to plug in many devices with same model and hence same
serial number to the host Ubuntu PC.

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,


Other Threads

1. jchat4android 1.1 released

Dear Android developers,

We are proud to announce the release of jChat4Android 1.1 working with *ANDROID
SDK 0.9beta*

jChat4Android is a chat application for the Android platform based on Jade
agent framework.

It shows how Jade can effectively be used in a  peer-to-peer context on
mobile devices.

In our opinion JADE, thanks to the expressiveness of its communication model
based on FIPA specifications ( ), brings strong added

value to ANDROID SDK platform in the development of innovative applications
based on social models and peer-to-peer paradigm.

jChat relies on Jade4AndroidAddOn 1.1, a JADE add-on that enables Jade
capabilities on the Android platform and provides a good example of how
Android developers can use JADE agents in their own applications.

For any information regarding Jade and Jade4Android, please refer to Jade
project official site at

** .

These are the main features of jChat:

       *Contacts management*  (contacts are read from the phone contacts

       *Persistence*  (you can see the status of all contacts connected to
your own JADE platform)

       *Real time localization* (you can see the position of the contacts
on the map and the distance from your current position. Localization uses
the Android mocked GPS provider for tracking contacts position. You are able
to import new custom tracks if you wish.)

       *Multiple chat sessions handling*  ( you can open multiple chat
sessions with different contacts and switch between them)

       *Support for chat with many contacts in a single session*

       *Mocked SMS sending and phone call to contacts*

jChat4Android 1.1 is released as open source software according to the LGPL

You can find out source code, binaries and documentation at the
jChat4android project site here *:*

* *

*Have fun with jchat4android*

Stefano Semeria

Marco Ughetti

Danilo Gotta


2. JADE-ANDROID Rel 1.1 released for ANDROID SDK 0.9 beta

Dear ANDROID users,

We are pleased to announce the release of version 1.1 of JADE4ANDROID add on
(prevously JADE-ANDROID) working on ANDROID SDK 0.9 beta,a software package
that allows developing agent oriented applications based on JADE ( for the ANDROID platform.

Android is the software stack for mobile devices including the

operating system released by the Open Handset Alliance in November

2007 (refer to  and ).

 The programming language of ANDROID applications is JAVA and the

completely new Dalvik JVM, allows accessing  all core functionality of

the mobile device. In particular on top of a JavaSE-like platform it

provides a set of new ANDROID specific API by means of which it is

possible to interact with the ANDROID Operating System, control the

device hardware and develop appealing and responsive GUIs.

The possibility of combining the expressiveness of FIPA (

communication supported by JADE agents with the power of the ANDROID

platform brings, in our opinion, a strong value in the development of

innovative applications based on social models and peer-to-peer


JADE4ANDROID is distributed as an add-on of JADE and is available for

download under the terms of the LGPL license from the add-ons area of

the JADE web site or directly from the jade-add-ons svn repository.


The add on also includes a Dummy Agent sample application.

Detailed information about how to use JADE4ANDROID can be found in the

user guide included in the add-on distribution file.

In order to see a good example of application using the jade4android add-on
you can check the jchat4android project at googlecode:

Apologies for any duplicate received

Danilo Gotta (Telecom Italia)

Tiziana Trucco (Telecom Italia)

Marco Ughetti (Telecom Italia)

Telecom Italia S.p.A. - Technical Information Services - Innovation &

Architecture - OSS Innovation

 Via Reiss Romoli 274 - 10148 Turin - Italy

Tel. +39 011 2285654

Fax +39 011 2285085

Mobile +39 3316001596



3. push apk fails saying read only filesystem

4. MediaPlayer and LocalSocket problem

5. Map overlay not drawing in beta 0.9. Why?

6. Image Button

7. GoogleApps.apk