How can I change the device name? (adb devices)

前端 未结 5 546
Happy的楠姐
Happy的楠姐 2020-12-05 10:06

I\'d like to change the device ID string which can be seen when I type \'adb devices\' at command prompt. If I type \'adb devices\' at command prompot then I can see below m

5条回答
  •  臣服心动
    2020-12-05 10:25

    I have several identical development systems (Odroid A) which report the same device code, thereby preventing me from using more than one on the same host PC with adb. Unfortunately there doesn't seem to be a way of changing this from the gingerbread GUI on this platform as previously suggested.

    The device serial number (as reported by 'adb devices') appears to be set in the kernel, under arch/arm/plat-s5p/devs.c (look for 'device_serial'). This may be different for your device, I'd suggest a grep through the kernel sources for the device ID that is reported by adb devices. Change the string, rebuild the kernel and flash it on...

    Looks to be different on ICS by the way...

提交回复
热议问题