summaryrefslogtreecommitdiff
path: root/rootdir
diff options
context:
space:
mode:
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.qcom.power.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/rootdir/init.qcom.power.rc b/rootdir/init.qcom.power.rc
index b46d542..baa5de9 100644
--- a/rootdir/init.qcom.power.rc
+++ b/rootdir/init.qcom.power.rc
@@ -147,6 +147,10 @@ on property:init.svc.bootanim=stopped
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
+ # Set max mA current for usb/dc charger
+ write /sys/class/power_supply/qpnp-dc/current_max 1800000
+ write /sys/class/power_supply/usb/current_max 1500000
+
on property:init.svc.recovery=running
trigger enable-low-power