2021-09-17 18:59:08 -04:00
|
|
|
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
|
2024-05-30 13:28:43 -04:00
|
|
|
on charger
|
2021-09-17 18:59:08 -04:00
|
|
|
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
|