Setting fake battery capacity moved from one script to another
On encrypted device init.qcom.class_core.sh script is unable to write fake_batt_capacity to /sys/class/power_supply/battery/capacity file due to unknown reason. Moving this logic to init.class_main.sh script is working fine Change-Id: I4c7cc7893314302f4749628d57343be1903e7e1c
This commit is contained in:
parent
027df1c7cd
commit
19bf67a8e7
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue