Tina修改adb设备名的方法,让你可以你一台PC连接多台adb设备
1.在源码中修改:
在源码tina/package/base-files/setusbconfig-config
diff --git a/base-files/setusbconfig-configfs b/base-files/setusbconfig-configfs index 690b138..d6c0c21 100755 --- a/base-files/setusbconfig-configfs b/base-files/setusbconfig-configfs @@ -27,6 27,7 @@ set_usb_function() { mkdir /sys/kernel/config/usb_gadget/g1 mkdir /sys/kernel/config/usb_gadget/g1/strings/0x409 echo "Allwinner" > /sys/kernel/config/usb_gadget/g1/strings/0x409/manufacturer echo "20190001" > /sys/kernel/config/usb_gadget/g1/strings/0x409/serialnumber echo "Tina" > /sys/kernel/config/usb_gadget/g1/strings/0x409/product } [ -d /sys/kernel/config/usb_gadget/g1/configs/c.1 ] || {
2.在设备中修改:
按照上面的修改内容修改 /bin/setusbconfig文件,修改后重启设备即可。
chenkunyao@ubuntu-chenkunyao:~$ adb devices List of devices attached 20190001 device