SM6375-common: Bringup Fast Charge Control HAL

Change-Id: Ib812545af4422b33436d1387a09b1571d0166157
This commit is contained in:
Vedanth Padmaraman 2024-11-29 09:43:25 +05:30
parent 8451ea6b97
commit aebd02c520
11 changed files with 268 additions and 0 deletions

View file

@ -114,3 +114,6 @@
/sys/devices/virtual/input/input[0-9]+/wakeup[0-9]+(/.*)? u:object_r:sysfs_wakeup:s0
/sys/devices/platform/soc/[^*]+/wakeup/wakeup[0-9]+(/.*)? u:object_r:sysfs_wakeup:s0
/sys/devices/virtual/misc/[^*]+/wakeup[0-9]+(/.*)? u:object_r:sysfs_wakeup:s0
# Fast Charge HAL
/vendor/bin/hw/vendor\.lineage\.fastcharge@1\.0-service\.qcom u:object_r:hal_lineage_fastcharge_default_exec:s0

View file

@ -0,0 +1,6 @@
# Allow read/write access to /sys/class/qcom-battery/.*
allow hal_lineage_fastcharge_default sysfs_battery_supply:file rw_file_perms;
allow hal_lineage_fastcharge_default sysfs_battery_supply:dir search;
# Allow control of sysprop persist.vendor.fastchg_enabled
set_prop(hal_lineage_fastcharge_default, vendor_fastcharge_prop)

View file

@ -5,3 +5,6 @@ vendor_internal_prop(vendor_mot_fingerprint_prop);
vendor_internal_prop(vendor_mot_hw_prop);
vendor_internal_prop(vendor_mot_touch_prop);
vendor_internal_prop(vendor_mot_nfc_prop);
# For Fast Charge HAL
vendor_internal_prop(vendor_fastcharge_prop)

View file

@ -21,3 +21,6 @@ vendor.nfc.fw_status u:object_r:vendor_mot_nfc_prop:s0
persist.vendor.hardware.fingerprint u:object_r:vendor_mot_fingerprint_prop:s0
vendor.hw.fps.ident u:object_r:vendor_mot_fingerprint_prop:s0
vendor.hw.fingerprint.status u:object_r:vendor_mot_fingerprint_prop:s0
# Fast Charge
persist.vendor.fastchg_enabled u:object_r:vendor_fastcharge_prop:s0