Adb Got Two Same Serial Numbers When Connected to Two Smart Phones

Using adb with multiple devices with the same serial number

Maybe I can help you, I was able to solve this issue by changing the device ID/Serial:

  1. adb shell
  2. cd /sys/class/android_usb/android0/
  3. echo -n xxx > iSerial (the xxx is the device id you want)
  4. cat iSerial (check the new device id)
  5. Unplug usb cable and plug again, then the change worked.

To change each id, your PC should only be connected to one device via usb.

Same serial number on several android devices. Adb is useless. How can I change the serial number?

You need to populate /sys/class/android_usb/android0/iSerial sysfs file with unique values for every device. Most vendors do it with custom init script, which would read the value from a persistent system property or a regular file and put it in sysfs on every power up.

How to use ADB Shell when Multiple Devices are connected? Fails with error: more than one device and emulator

Use the -s option BEFORE the command to specify the device, for example:

adb -s 7f1c864e shell

For multiple Emulator, use the process's IP and port as the id, like:

adb -s 192.168.232.2:5555 <command>

See How to get the Android Emulator's IP address?

But if there is only a single Emulator, try:

adb -e <command>

See also http://developer.android.com/tools/help/adb.html#directingcommands

adb error: more than one device - android

I got it

C:\Users\MBH>adb devices -l
List of devices attached
0123456789ABCDEF device product:ZEN model:ZEN device:ZEN
0123456789ABCDEF device product:full_gs702c model:M757 device:gs702c

Then I could use the model number for shelling

C:\Users\MBH>adb -s model:M757 shell
shell@gs702c:/ $ ls

it works now

Android device does not show up in adb list

Looks like the installed driver was in bad state. Here is what I did to make it work:

  1. Delete the device from Device Manager.
  2. Rescan for hardware changes.
  3. List item "Slate 21" will show up with "Unknown driver" status.
  4. Click on "Update Driver" and select /extras/google/usb_driver

Device Manager will find the driver and warn you about installing it. Select "Yes."
This time the device got installed properly.

Note that I didn't have to modify winusb.inf file or update any other driver.

Hope this helps.



Related Topics



Leave a reply



Submit