4aca996701
The health AIDL HAL service provides functionalities of charger, therefore system charger at /system/bin/charger is deprecated. On top of that, QTI health AIDL HAL service enables suspend by default, the equivalent of setting ro.charger.enable_suspend for legacy charger. Change-Id: I59c23e7974cea1174b0161f31a535fa3afa1e5c9
29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
on property:sys.boot_completed=1
|
|
chmod 0664 /sys/class/qcom-battery/pd_verifed
|
|
chmod 0664 /sys/class/qcom-battery/request_vdm_cmd
|
|
chmod 0664 /sys/class/qcom-battery/verify_process
|
|
chmod 0664 /sys/class/qcom-battery/authentic
|
|
chmod 0664 /sys/class/qcom-battery/verify_slave_flag
|
|
chmod 0664 /sys/class/qcom-battery/slave_authentic
|
|
chmod 0664 /sys/class/qcom-battery/is_old_hw
|
|
|
|
service batterysecret /vendor/bin/batterysecret
|
|
class last_start
|
|
user root
|
|
group system system wakelock
|
|
disabled
|
|
seclabel u:r:batterysecret:s0
|
|
|
|
on property:sys.boot_completed=1
|
|
start batterysecret
|
|
|
|
#run batterysecret in off-charge mode
|
|
on property:init.svc.vendor.charger=running
|
|
start batterysecret
|
|
chmod 0664 /sys/class/qcom-battery/pd_verifed
|
|
chmod 0664 /sys/class/qcom-battery/request_vdm_cmd
|
|
chmod 0664 /sys/class/qcom-battery/verify_process
|
|
chmod 0664 /sys/class/qcom-battery/authentic
|
|
chmod 0664 /sys/class/qcom-battery/verify_slave_flag
|
|
chmod 0664 /sys/class/qcom-battery/slave_authentic
|
|
chmod 0664 /sys/class/qcom-battery/is_old_hw |