Merge "Configure USB gadget maximum power"

This commit is contained in:
Roy Luo 2023-04-06 08:00:18 +00:00 committed by Gerrit Code Review
commit 772939db8b

View file

@ -110,6 +110,8 @@ on fs && property:sys.usb.configfs=1
mkdir /config/usb_gadget/g1/functions/ffs.adb
mkdir /config/usb_gadget/g1/functions/ffs.fastboot
mkdir /config/usb_gadget/g1/configs/b.1 0777 shell shell
# Set current limit to 900mA (b/277022505)
write /config/usb_gadget/g1/configs/b.1/MaxPower 0x384
mkdir /config/usb_gadget/g1/configs/b.1/strings/0x409 0770 shell shell
on fs && property:sys.usb.configfs=0