a71-common: Migrate to lineagehealth IFastCharge
Change-Id: Ia2f1f213de2f2e5afd913e5de38712fddc386b49
This commit is contained in:
@@ -78,10 +78,6 @@ PRODUCT_PACKAGES += \
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.camera.provider-service_32.samsung \
|
||||
|
||||
# Charger
|
||||
PRODUCT_PACKAGES += \
|
||||
vendor.lineage.fastcharge@1.0-service.samsung \
|
||||
|
||||
# CNE
|
||||
PRODUCT_PACKAGES += \
|
||||
CneApp.libvndfwk_detect_jni.qti_vendor_symlink \
|
||||
@@ -151,6 +147,9 @@ $(call soong_config_set,lineage_health,charging_control_charging_path,/sys/class
|
||||
$(call soong_config_set,lineage_health,charging_control_charging_enabled,0)
|
||||
$(call soong_config_set,lineage_health,charging_control_charging_disabled,1)
|
||||
$(call soong_config_set,lineage_health,charging_control_supports_bypass,false)
|
||||
$(call soong_config_set,lineage_health,fast_charge_node,/sys/class/sec/switch/afc_disable)
|
||||
$(call soong_config_set,lineage_health,fast_charge_value_none,1)
|
||||
$(call soong_config_set,lineage_health,fast_charge_value_fast_charge,0)
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.health-service.samsung \
|
||||
|
||||
@@ -65,6 +65,10 @@ on early-init
|
||||
write /proc/sys/kernel/sched_energy_aware 0
|
||||
|
||||
on init
|
||||
|
||||
# AFC permissions for fast charge
|
||||
chown system radio /sys/class/sec/switch/afc_disable
|
||||
|
||||
# Brightness Permission
|
||||
chown system system /sys/class/backlight/panel0-backlight/brightness
|
||||
chmod 0664 /sys/class/backlight/panel0-backlight/brightness
|
||||
|
||||
1
sepolicy/vendor/file_contexts
vendored
1
sepolicy/vendor/file_contexts
vendored
@@ -187,7 +187,6 @@
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator\-service\.samsung u:object_r:hal_vibrator_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/macloader u:object_r:macloader_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/sehradiomanager u:object_r:sehradiomanager_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.fastcharge@1\.0-service\.samsung u:object_r:hal_lineage_fastcharge_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.livedisplay@2\.0-service.samsung-qcom\.sm6150 u:object_r:hal_lineage_livedisplay_sysfs_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch-service\.samsung_sm6150 u:object_r:hal_lineage_touch_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/factory\.ssc u:object_r:factory_ssc_exec:s0
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
set_prop(hal_lineage_fastcharge, vendor_fastcharge_prop)
|
||||
|
||||
allow hal_lineage_fastcharge_default sysfs_sec_switch:file rw_file_perms;
|
||||
allow hal_lineage_fastcharge_default sysfs_sec_switch:dir r_dir_perms;
|
||||
allow hal_lineage_fastcharge_default sysfs_sec_switch_writable:file rw_file_perms;
|
||||
allow hal_lineage_fastcharge_default sysfs_sec_switch_writable:dir r_dir_perms;
|
||||
@@ -1,3 +1,8 @@
|
||||
allow hal_lineage_health_default sysfs_sec_switch:file rw_file_perms;
|
||||
allow hal_lineage_health_default sysfs_sec_switch:dir r_dir_perms;
|
||||
allow hal_lineage_health_default sysfs_sec_switch_writable:file rw_file_perms;
|
||||
allow hal_lineage_health_default sysfs_sec_switch_writable:dir r_dir_perms;
|
||||
|
||||
allow hal_lineage_touch_default sysfs_sec_touchscreen:dir search;
|
||||
allow hal_lineage_touch_default sysfs_sec_touchscreen:file r_file_perms;
|
||||
allow hal_lineage_touch_default sysfs_touchscreen_writable:file rw_file_perms;
|
||||
|
||||
1
sepolicy/vendor/property.te
vendored
1
sepolicy/vendor/property.te
vendored
@@ -1,3 +1,2 @@
|
||||
vendor_internal_prop(vendor_fastcharge_prop)
|
||||
vendor_internal_prop(vendor_power_prop)
|
||||
vendor_internal_prop(vendor_qseecomd_prop)
|
||||
|
||||
3
sepolicy/vendor/property_contexts
vendored
3
sepolicy/vendor/property_contexts
vendored
@@ -9,9 +9,6 @@ vendor.bluetooth_nv_ver u:object_r:vendor_bluetooth_pro
|
||||
# CNE
|
||||
persist.vendor.cne u:object_r:vendor_cnd_prop:s0
|
||||
|
||||
# Fastcharge
|
||||
persist.vendor.sec.fastchg_enabled u:object_r:vendor_fastcharge_prop:s0
|
||||
|
||||
# Fingerprint
|
||||
vendor.finger.down u:object_r:vendor_fingerprint_prop:s0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user