summaryrefstree
path: root/vendor/etc/init/bms_cycle.rc
blob: 56c000f35934bd5c562ba05541f51bbc3351615c (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
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
    chmod 0640 /sys/class/hw_power/interface/cycle_info
    chown system system /sys/class/hw_power/interface/cycle_info

    start bms_cycle

on property:sys.boot_completed=1
    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
    chmod 0640 /sys/class/hw_power/interface/cycle_info
    chown system system /sys/class/hw_power/interface/cycle_info

    start bms_cycle

service bms_cycle /vendor/bin/bms_cycle
    user system
    group system
    disabled
    oneshot