3

I'd like to connect multiple android devices to the same machine and manage them by the adb. Unfortunately some android models show the same development device id to adb. Is there a way to change the development device id?

$ adb devices
List of devices attached 
LG_ANDROID_E0OPEN_GB_   device
LG_ANDROID_E0OPEN_GB_   device

Please note that this question is related to 9786928. As I understand it, the OP was misunderstood and the question is still not answered.

Thanks for your help.

Community
  • 1
  • 1
tback
  • 11,138
  • 7
  • 47
  • 71
  • 1
    AFAIK, this is baked into the OS and you can't change it. Custom roms sometimes have this problem since they might use the same "id". Are you using a custom rom on these devices? – A--C Dec 13 '12 at 21:01
  • sudo for adb ? are you really sure that you know what you are doing ? You probably have messed up with something and the development on custom roms is your business. – user1797612 Dec 13 '12 at 21:02
  • @A--C: I unboxed the devices myself and didn't tamper with them. Maybe LG messed it up. – tback Dec 13 '12 at 21:07
  • @user1797612: You're right sudo isn't relevant to this example. I tried sudo to explore another problem. I edited it out. – tback Dec 13 '12 at 21:56

2 Answers2

4

Not without altering adb. The adb "server" (i.e. the part that runs on your workstation) just uses the value it gets from the device, which are in turn set by the bootloader. You could in theory modify the adb server to include additional information in the string, such as the USB device number assigned when the device was plugged in (if you're on Linux, run lsusb and imagine the "bus" and "device" values are included in the device ID).

You may also be able to do this by installing a custom ROM.

fadden
  • 51,356
  • 5
  • 116
  • 166
  • it's clearly not the answer I wanted to hear. I have to accept it anyway I guess. – tback Dec 17 '12 at 09:59
  • You can ask the OEM (which I assume is LG) to fix their devices, and you can ask AOSP to provide a workaround for this in adb (which by definition won't be perfect, but might be good enough). You're kinda hosed for the moment, but this should be fixable. – fadden Dec 17 '12 at 17:56
  • I did exactly that, changed the way adb differentiates devices on usb bus: http://stackoverflow.com/a/22824288/21009 – Miro Kropacek Apr 02 '14 at 22:25
1

For the LG E400, there is a firmware update (V10i-JUN-01-2012) available that addresses this issue.

Before update I've seen the same ID like you for all devices, after update the devices have unique ids.

Miriam
  • 1,178
  • 2
  • 13
  • 23