blob: 631c4c0e7737b43f1a2265e1d64b89d660f3221a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
on late-fs
chmod 0660 /sys/class/hw_power/soc_control/control
chown system system /sys/class/hw_power/soc_control/control
chmod 0660 /sys/class/hw_power/soc_control/strategy
chown system system /sys/class/hw_power/soc_control/strategy
start bms_soc
on charger
chmod 0660 /sys/class/hw_power/soc_control/control
chown system system /sys/class/hw_power/soc_control/control
chmod 0660 /sys/class/hw_power/soc_control/strategy
chown system system /sys/class/hw_power/soc_control/strategy
start bms_soc
on property:sys.factory_pwr_ctrl=true
setprop vendor.soc_ctrl_mmi_stop true
on property:sys.factory_pwr_ctrl=false
setprop vendor.soc_ctrl_mmi_stop false
# for customized version
on property:ro.config.hw_power_ctrl=*
setprop vendor.soc_ctrl_cust ${ro.config.hw_power_ctrl}
on property:vendor.msc.bms.power_ctrl=*
setprop vendor.soc_ctrl_cust ${vendor.msc.bms.power_ctrl}
# for demo version
on property:sys.demo_pwr_ctrl=*
setprop vendor.soc_ctrl_demo ${sys.demo_pwr_ctrl}
on property:ro.config.bootincharge=*
setprop vendor.soc_ctrl_bootincharge ${ro.config.bootincharge}
on property:vendor.msc.bms.bootincharge=*
setprop vendor.soc_ctrl_bootincharge ${vendor.msc.bms.bootincharge}
service bms_soc /vendor/bin/bms_soc
user system
group system
disabled
oneshot
|