summaryrefstree
path: root/system/init.batteryd.rc
blob: 191d8ed219e97523fa39be77f43b13256f69aa70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
service batteryd /vendor/bin/batteryd
    class last_start
    user root
    group system system wakelock
    disabled
    oneshot
    seclabel u:r:batteryd:s0

on property:sys.boot_completed=1
    start batteryd

#run batteryd in off-charge mode
on charger
    start batteryd

on fs
    mkdir /persist/subsys 0770 root system