g12: Set USB name in recovery to ro.product.board
authorNolen Johnson <johnsonnolen@gmail.com>
Wed, 30 Jun 2021 05:56:36 +0000 (01:56 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Tue, 27 Jul 2021 21:19:04 +0000 (17:19 -0400)
* This sets it per-variant.

Change-Id: I52c596a271f8e70625e3a478f421e949d014358e

init-files/init.recovery.amlogic.rc

index 14af9b11bee996a8c7e2bb5a3d697df3c542b610..46c982c7a32688bcd9f4f16356833a6eb425af16 100644 (file)
@@ -26,7 +26,7 @@ on boot
     mkdir /config/usb_gadget/g1/strings/0x409 0770
     write /config/usb_gadget/g1/strings/0x409/serialnumber ${ro.serialno}
     write /config/usb_gadget/g1/strings/0x409/manufacturer droidlogic
-    write /config/usb_gadget/g1/strings/0x409/product deadpool
+    write /config/usb_gadget/g1/strings/0x409/product ${ro.product.board}
     mkdir /config/usb_gadget/g1/functions/ffs.adb
     mkdir /config/usb_gadget/g1/functions/ffs.fastboot
     mkdir /config/usb_gadget/g1/functions/mtp.gs0