diff --git a/rootdir/etc/init.class_main.sh b/rootdir/etc/init.class_main.sh index 55c7bbd3..1fdb9dcb 100644 --- a/rootdir/etc/init.class_main.sh +++ b/rootdir/etc/init.class_main.sh @@ -83,3 +83,15 @@ case "$baseband" in ;; esac esac + +# +# Allow persistent faking of bms +# User needs to set fake bms charge in persist.bms.fake_batt_capacity +# +fake_batt_capacity=`getprop persist.bms.fake_batt_capacity` +case "$fake_batt_capacity" in + "") ;; #Do nothing here + * ) + echo "$fake_batt_capacity" > /sys/class/power_supply/battery/capacity + ;; +esac diff --git a/rootdir/etc/init.qcom.class_core.sh b/rootdir/etc/init.qcom.class_core.sh index 501b27d4..bc89e865 100755 --- a/rootdir/etc/init.qcom.class_core.sh +++ b/rootdir/etc/init.qcom.class_core.sh @@ -197,18 +197,6 @@ case "$target" in ;; esac -# -# Allow persistent faking of bms -# User needs to set fake bms charge in persist.bms.fake_batt_capacity -# -fake_batt_capacity=`getprop persist.bms.fake_batt_capacity` -case "$fake_batt_capacity" in - "") ;; #Do nothing here - * ) - echo "$fake_batt_capacity" > /sys/class/power_supply/battery/capacity - ;; -esac - case "$target" in "msm7630_surf" | "msm7630_1x" | "msm7630_fusion") insmod /system/lib/modules/ss_mfcinit.ko