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

前端 未结 5 540
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:49

    If you have root access, you can enter this to a terminal emulator:

    > su (to gain superuser access)
    > getprop net.hostname (this should display the current network name)
    > setprop net.hostname 
    

    Disconnect then reconnect from the network to refresh.

    I was on a Samsung Galaxy Note on ICS. Worked like a charm...

提交回复
热议问题