Changing displayed Android device name in Eclipse

空扰寡人 提交于 2019-12-03 07:30:02

问题


When attaching several Android devices to my development machine, it quickly becomes difficult to determine which device is which from Eclipse, because 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?


回答1:


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...?!




回答2:


As of ADT revision 17, the device manufacturer and name appears after the serial number, as follows:




回答3:


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.



来源:https://stackoverflow.com/questions/6107930/changing-displayed-android-device-name-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!