sapphire: Build fastcharge implementation

Change-Id: I3e6994d2c2f419dc8ce98a060204fda3dd16df81
Signed-off-by: NotZeetaa <rodrigo2005contente@gmail.com>
Signed-off-by: kibria5 <mdkibria687@gmail.com>
This commit is contained in:
althafvly
2023-06-20 11:12:20 +05:30
committed by kibria5
parent c0aa443540
commit 5759b5e1b7
5 changed files with 15 additions and 0 deletions

View File

@@ -213,6 +213,10 @@ PRODUCT_PACKAGES += \
android.hardware.fastboot@1.1-impl-mock \
fastbootd
# Fastcharge
PRODUCT_PACKAGES += \
vendor.lineage.fastcharge@1.0-service.xiaomi_sm6225
# Fingerprint
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint@2.3-service.xiaomi

View File

@@ -11,6 +11,9 @@
/mnt/vendor/persist/goodix(/.*)? u:object_r:vendor_fingerprint_data_file:s0
/sys/devices/platform/soc/soc:fpc1020(/.*?) u:object_r:vendor_sysfs_fps_attr:s0
# Fastcharge HAL
/vendor/bin/hw/vendor\.lineage\.fastcharge@1\.0-service\.xiaomi_sm6225 u:object_r:hal_lineage_fastcharge_default_exec:s0
# Fingerprint devices
/dev/goodix_fp u:object_r:vendor_fingerprint_device:s0
/dev/xiaomi-fp u:object_r:vendor_fingerprint_device:s0

View File

@@ -0,0 +1,2 @@
get_prop(hal_lineage_fastcharge, vendor_fastcharge_prop)
set_prop(hal_lineage_fastcharge, vendor_fastcharge_prop)

View File

@@ -6,6 +6,9 @@ vendor_public_prop(vendor_cpuid_prop)
# Display
vendor_internal_prop(vendor_ctl_vendor_display_prop)
# Fastcharge
vendor_internal_prop(vendor_fastcharge_prop)
# Fingerprint
vendor_restricted_prop(vendor_fp_info_prop)
vendor_public_prop(vendor_fp_prop)

View File

@@ -1,6 +1,9 @@
# Display
ro.vendor.smart_dfps.enable u:object_r:vendor_displayfeature_prop:s0
# Fastcharge HAL
persist.vendor.sec.fastchg_enabled u:object_r:vendor_fastcharge_prop:s0
# Fingerprint
persist.vendor.fpc. u:object_r:vendor_fp_prop:s0
persist.vendor.goodix. u:object_r:vendor_fp_prop:s0