summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Luo <royluo@google.com>2023-04-06 11:55:38 +0200
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-04-06 11:55:38 +0200
commitccb2ecc0e0b311928d744fab35b163cf49101184 (patch)
tree8217d7f23936953348c69e2777287a9c33d53453
parent[automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-dev am: 195b069b7a -s ours (diff)
parentMerge "Configure USB gadget maximum power" am: 772939db8b am: db04d6a1e9 am: 66f35e60a5 (diff)
downloadandroid_bootable_recovery-ccb2ecc0e0b311928d744fab35b163cf49101184.tar
android_bootable_recovery-ccb2ecc0e0b311928d744fab35b163cf49101184.tar.gz
android_bootable_recovery-ccb2ecc0e0b311928d744fab35b163cf49101184.tar.bz2
android_bootable_recovery-ccb2ecc0e0b311928d744fab35b163cf49101184.tar.lz
android_bootable_recovery-ccb2ecc0e0b311928d744fab35b163cf49101184.tar.xz
android_bootable_recovery-ccb2ecc0e0b311928d744fab35b163cf49101184.tar.zst
android_bootable_recovery-ccb2ecc0e0b311928d744fab35b163cf49101184.zip
-rw-r--r--etc/init.rc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/init.rc b/etc/init.rc
index 03df27b01..c7ff2b2b9 100644
--- a/etc/init.rc
+++ b/etc/init.rc
@@ -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