sm7125: Build fastcharge HIDL

Change-Id: Iec1a7faec24f0d5b4b1d2f1ef52b781368c5bd51
fourteen-wip
Francescodario Cuzzocrea 4 years ago committed by Simon1511
parent b02a551b44
commit b510b33fe0
  1. 4
      common.mk
  2. 8
      configs/framework_compatibility_matrix.xml
  3. 2
      rootdir/etc/init.samsung.rc
  4. 2
      sepolicy/vendor/file.te
  5. 4
      sepolicy/vendor/file_contexts
  6. 4
      sepolicy/vendor/hal_lineage_fastcharge_default.te
  7. 1
      sepolicy/vendor/property.te
  8. 3
      sepolicy/vendor/property_contexts

@ -150,6 +150,10 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
fastbootd fastbootd
# FastCharge
PRODUCT_PACKAGES += \
vendor.lineage.fastcharge@1.0-service.samsung
# FM # FM
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
FM2 \ FM2 \

@ -167,6 +167,14 @@
<instance>default</instance> <instance>default</instance>
</interface> </interface>
</hal> </hal>
<hal format="hidl" optional="true">
<name>vendor.lineage.fastcharge</name>
<version>1.0</version>
<interface>
<name>IFastCharge</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true"> <hal format="hidl" optional="true">
<name>android.hardware.wifi.supplicant</name> <name>android.hardware.wifi.supplicant</name>
<version>1.0-2</version> <version>1.0-2</version>

@ -38,6 +38,8 @@ on init
symlink /dev/block/bootdevice/by-name/steady /dev/block/steady symlink /dev/block/bootdevice/by-name/steady /dev/block/steady
symlink /dev/block/bootdevice/by-name/persistent /dev/block/persistent symlink /dev/block/bootdevice/by-name/persistent /dev/block/persistent
chown system radio /sys/class/sec/switch/afc_disable
# Create carrier folder for HiddenMenu # Create carrier folder for HiddenMenu
on post-fs on post-fs
mkdir /efs/carrier 0755 system system mkdir /efs/carrier 0755 system system

@ -9,3 +9,5 @@ allow misc_file labeledfs:filesystem associate;
type spu_file, fs_type; type spu_file, fs_type;
allow spu_file labeledfs:filesystem associate; allow spu_file labeledfs:filesystem associate;
type sysfs_sec_switch, fs_type, sysfs_type;

@ -3,9 +3,13 @@
/misc(/.*)? u:object_r:misc_file:s0 /misc(/.*)? u:object_r:misc_file:s0
/spu(/.*)? u:object_r:spu_file:s0 /spu(/.*)? u:object_r:spu_file:s0
# sysfs
/sys/devices/virtual/sec/switch(/.*)? u:object_r:sysfs_sec_switch:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.drm@1\.3-service\.widevine u:object_r:vendor_hal_drm_widevine_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.drm@1\.3-service\.widevine u:object_r:vendor_hal_drm_widevine_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.sensors@2\.1-service.samsung-multihal u:object_r:hal_sensors_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.sensors@2\.1-service.samsung-multihal u:object_r:hal_sensors_default_exec:s0
/(vendor|system/vendor)/bin/factory\.ssc u:object_r:factory_ssc_exec:s0 /(vendor|system/vendor)/bin/factory\.ssc u:object_r:factory_ssc_exec:s0
/(vendor|system/vendor)/bin/secril_config_svc u:object_r:vendor_secril_config_svc_exec:s0 /(vendor|system/vendor)/bin/secril_config_svc u:object_r:vendor_secril_config_svc_exec:s0
/(vendor|system/vendor)/bin/hw/android.hardware.keymaster@4.0-service.samsung u:object_r:hal_keymaster_default_exec:s0 /(vendor|system/vendor)/bin/hw/android.hardware.keymaster@4.0-service.samsung u:object_r:hal_keymaster_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor.samsung.hardware.camera.provider@4.0-service u:object_r:hal_camera_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor.samsung.hardware.camera.provider@4.0-service u:object_r:hal_camera_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.lineage\.fastcharge@1\.0-service\.samsung u:object_r:hal_lineage_fastcharge_default_exec:s0

@ -0,0 +1,4 @@
allow hal_lineage_fastcharge_default sysfs_sec_switch:dir search;
allow hal_lineage_fastcharge_default sysfs_sec_switch:file rw_file_perms;
set_prop(hal_lineage_fastcharge, sec_fastcharge_prop)

@ -0,0 +1 @@
type sec_fastcharge_prop, property_type;

@ -4,3 +4,6 @@ vendor.sensor.file.permission u:object_r:vendor_sensors_prop:
# RIL # RIL
ro.vendor.multisim. u:object_r:vendor_radio_prop:s0 ro.vendor.multisim. u:object_r:vendor_radio_prop:s0
ro.vendor.radio. u:object_r:vendor_radio_prop:s0 ro.vendor.radio. u:object_r:vendor_radio_prop:s0
# Fastcharge
persist.vendor.sec.fastchg_enabled u:object_r:sec_fastcharge_prop:s0

Loading…
Cancel
Save