From 71ae2a933637d92a85189cc11a5cba2926ec749e Mon Sep 17 00:00:00 2001 From: RomanDesigner Date: Sun, 17 May 2020 20:50:41 +0300 Subject: [PATCH] msm8226-common: try to fix offline charging --- rootdir/etc/init.qcom.power.rc | 4 +--- rootdir/etc/init.qcom.rc | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/rootdir/etc/init.qcom.power.rc b/rootdir/etc/init.qcom.power.rc index 8298002..38d1d6e 100644 --- a/rootdir/etc/init.qcom.power.rc +++ b/rootdir/etc/init.qcom.power.rc @@ -99,10 +99,8 @@ on init write /dev/cpuset/camera-daemon/cpus 0-3 on charger - wait /dev/block/platform/msm_sdcc.1/by-name/system - mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system /system ro barrier=1 errors=panic - class_start charger + write /sys/devices/system/cpu/cpu1/online 1 write /sys/devices/system/cpu/cpu2/online 1 write /sys/devices/system/cpu/cpu3/online 1 diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index f99b30a..071f78c 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -585,7 +585,7 @@ service adsprpcd /vendor/bin/adsprpcd user media group media -service charger /system/system/bin/charger +service charger /system/bin/charger class charger user system group system graphics input