问题
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.
回答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.
回答2:
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.
来源:https://stackoverflow.com/questions/13868411/change-android-development-device-id