Changing displayed Android device name in Eclipse
When attaching several Android devices to my development machine, it quickly becomes difficult to determine which device is which from Eclipse, because 开发者_StackOverflow社区the device names appear to be represented as their serial numbers.
For instance, the Devices list:
Is there any way to display the phone model, or to change the device name?
As of ADT revision 17, the device manufacturer and name appears after the serial number, as follows:
On my Desire (cyanogenmod7, Android 2.3.3) there is a setting:
Homescreen -> press menu -> System settings -> applications -> development -> Device name
Here I can change the devices name which is shown in eclipse.
Unfortunately, my second development phone (Nexus-S, Stock rom with Android 2.3.4) does not have this setting - so maybe your phone has this setting...?!
Try these commands:
adb -s <serialno> shell setprop persist.usb.serialno <new_alphanumeric_name>
adb reboot
Bear in mind that the size is maximally 15 characters.
精彩评论