android_device_xiaomi_sm835.../rootdir/etc/init.batterysecret.rc
Sebastiano Barezzi 6ec43311ae sm8350-common: Partially revert "Move to QTI health AIDL service"
https://github.com/LineageOS/android_system_core/blob/lineage-21.0/init/init.cpp#L1099

This partially reverts commit 4aca996701.

Change-Id: I284f80f364e9057a8373a015f0acaee3ef9e395d
Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
2024-09-13 20:41:07 +05:30

29 lines
1.0 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 charger
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