summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-04-07 03:05:40 +0200
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-04-07 03:05:40 +0200
commitb33cc9752569d39c47896e2bc288a1ba6c9289a0 (patch)
tree8217d7f23936953348c69e2777287a9c33d53453
parentSnap for 9884336 from 74af5d2fae29936633525bcc53b010fe71f3062b to udc-d1-release (diff)
parentMerge "Configure USB gadget maximum power" am: 772939db8b am: db04d6a1e9 am: 66f35e60a5 am: a5b62f3dbe (diff)
downloadandroid_bootable_recovery-b33cc9752569d39c47896e2bc288a1ba6c9289a0.tar
android_bootable_recovery-b33cc9752569d39c47896e2bc288a1ba6c9289a0.tar.gz
android_bootable_recovery-b33cc9752569d39c47896e2bc288a1ba6c9289a0.tar.bz2
android_bootable_recovery-b33cc9752569d39c47896e2bc288a1ba6c9289a0.tar.lz
android_bootable_recovery-b33cc9752569d39c47896e2bc288a1ba6c9289a0.tar.xz
android_bootable_recovery-b33cc9752569d39c47896e2bc288a1ba6c9289a0.tar.zst
android_bootable_recovery-b33cc9752569d39c47896e2bc288a1ba6c9289a0.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