summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Luo <royluo@google.com>2023-04-06 10:23:59 +0200
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-04-06 10:23:59 +0200
commitdb04d6a1e9ed6318e1a1a85ed38f785fea3717b5 (patch)
treef6d71958043414edd5b137fcecbb18649d3ea8ec
parentMerge "Add ZSTD dependency for recovery" am: d97f317e0d (diff)
parentMerge "Configure USB gadget maximum power" (diff)
downloadandroid_bootable_recovery-db04d6a1e9ed6318e1a1a85ed38f785fea3717b5.tar
android_bootable_recovery-db04d6a1e9ed6318e1a1a85ed38f785fea3717b5.tar.gz
android_bootable_recovery-db04d6a1e9ed6318e1a1a85ed38f785fea3717b5.tar.bz2
android_bootable_recovery-db04d6a1e9ed6318e1a1a85ed38f785fea3717b5.tar.lz
android_bootable_recovery-db04d6a1e9ed6318e1a1a85ed38f785fea3717b5.tar.xz
android_bootable_recovery-db04d6a1e9ed6318e1a1a85ed38f785fea3717b5.tar.zst
android_bootable_recovery-db04d6a1e9ed6318e1a1a85ed38f785fea3717b5.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