summaryrefstree
path: root/system/init.batteryd.rc
blob: f2541fd66a21e237b693ffe4666a7a9310e545f6 (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
service batteryd /vendor/bin/batteryd
    class last_start
    user root
    group system system wakelock
    disabled
    oneshot
    seclabel u:r:batteryd:s0

on post-fs
    chmod 0664 /sys/class/power_supply/bms/update_now

on boot
    start batteryd

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

service batterylog /system/bin/sh /system/bin/batterylog.sh
    class main
    user root
    group system
    disabled
    oneshot
    seclabel u:r:batteryd:s0

on property:persist.sys.offlinelog.batteryd=true
    start batterylog