Leaving maxpower at default i.e. 2mA prevents the phone from charging from SDP ports. Setting this to 900mA. Kernel would then set the current limit to 500/900mA based on the configured speed. Bug: 194722479 Test: Boot to recovery; Through uart cat maxpower; Signed-off-by: Badhri Jagan Sridharan <badhri@google.com> Change-Id: I763c70eb5d19f74e6e846155af69c25ca3e91f85
18 lines
459 B
Text
18 lines
459 B
Text
on init
|
|
setprop sys.usb.controller "11110000.dwc3"
|
|
setprop sys.usb.configfs 1
|
|
|
|
on init && property:ro.debuggable=1 && property:ro.boot.mode=recovery
|
|
start recovery-console
|
|
|
|
service recovery-console /system/bin/sh
|
|
class core
|
|
console
|
|
disabled
|
|
user root
|
|
group root shell log readproc
|
|
seclabel u:r:su:s0
|
|
setenv HOSTNAME console
|
|
|
|
on fs && property:sys.usb.configfs=1
|
|
write /config/usb_gadget/g1/configs/b.1/MaxPower 900
|