我想改变设备ID字符串,这个字符串可以在命令提示符中输入'adb devices'时看到。 如果我在命令提示符中输入'adb devices',则会看到以下消息:
D:\>adb devices
List of devices attached
5A3C000600000001 device
有没有人知道设备ID字符串(5A3C000600000001)是如何生成的?我该如何更改设备ID字符串?
我想改变设备ID字符串,这个字符串可以在命令提示符中输入'adb devices'时看到。 如果我在命令提示符中输入'adb devices',则会看到以下消息:
D:\>adb devices
List of devices attached
5A3C000600000001 device
有没有人知道设备ID字符串(5A3C000600000001)是如何生成的?我该如何更改设备ID字符串?
如果您拥有root访问权限,可以在终端模拟器中输入以下内容:
> su (to gain superuser access)
> getprop net.hostname (this should display the current network name)
> setprop net.hostname <newhostname>
断开网络连接然后重新连接以进行刷新。
我使用的是安装有ICS系统的三星Galaxy Note。这个方法非常有效...
您可以设置persist.usb.serialno
属性。我在Galaxy S4 / S4 mini上进行了检查,它是持久的,但需要root访问:
adb shell
su
setprop persist.usb.serialno Phone1_GalaxyS4
exit
adb reboot
adb devices
中,您将看到:C:\Users\amdc2452>adb devices
List of devices attached
Phone1_GalaxyS4 device
transport_id
进行访问。adb devices -l
列出设备和它们的transport_id
,然后使用adb -t ID
来访问设备。adb devices -l
# first_huge_device_id0000 device product:p124 model:md1 device:d1 transport_id:1
# second_huge_device_id0000 device product:pr123 model:md2 device:d2 transport_id:2
adb -t 1 ...
# uses first device