blob: ae5a53f0413fe2c80d732ab7724ae77ab8ce8b24 (
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
|
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
chmod 0664 /sys/class/power_supply/bms/soh
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
|