/(vendor|system/vendor)/bin/hw/android\.hardware\.light@[0-9].[0-9]-service\.samsung u:object_r:hal_light_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.power@[0-9].[0-9]-service\.exynos u:object_r:hal_power_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator@[0-9].[0-9]-service\.samsung-haptic u:object_r:hal_vibrator_default_exec:s0
+/(vendor|system/vendor)/bin/hw/vendor\.lineage\.biometrics\.fingerprint\.inscreen@1.0-service.samsung u:object_r:hal_lineage_fod_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.samsung_slsi\.hardware\.configstore@[0-9]\.[0-9]-service u:object_r:hal_vendor_configstore_default_exec:s0
/(vendor|system/vendor)/bin/hw/vendor\.samsung_slsi\.hardware\.ExynosHWCServiceTW@[0-9]\.[0-9]-service u:object_r:hal_vendor_hwcservice_default_exec:s0
# hal_fingerprint_default.te
+add_hwservice(hal_fingerprint_default, hal_vendor_fingerprint_hwservice)
+
# /dev/esfp[0-9]
allow hal_fingerprint_default fp_sensor_device:chr_file rw_file_perms;
--- /dev/null
+# hal_lineage_fod_default.te
+
+binder_call(hal_lineage_fod_default, hal_fingerprint_default)
+
+allow hal_lineage_fod_default hal_vendor_fingerprint_hwservice:hwservice_manager find;
+
+# /sys/class/backlight/panel/brightness
+allow hal_lineage_fod_default sysfs_backlight_writable:file rw_file_perms;
+
+# /sys/class/sec/tsp/cmd
+allow hal_lineage_fod_default sysfs_sec_touchscreen:dir r_dir_perms;
+allow hal_lineage_fod_default sysfs_touchscreen_writable:file rw_file_perms;
# hwservice.te
+type hal_vendor_fingerprint_hwservice, hwservice_manager_type;
type hal_vendor_configstore_hwservice, hwservice_manager_type;
type hal_vendor_surfaceflinger_hwservice, hwservice_manager_type;
# hwservice_contexts
-vendor.samsung.hardware.biometrics.fingerprint::ISecBiometricsFingerprint u:object_r:hal_fingerprint_hwservice:s0
+vendor.samsung.hardware.biometrics.fingerprint::ISecBiometricsFingerprint u:object_r:hal_vendor_fingerprint_hwservice:s0
vendor.samsung_slsi.hardware.ExynosHWCServiceTW::IExynosHWCServiceTW u:object_r:hal_vendor_surfaceflinger_hwservice:s0
vendor.samsung_slsi.hardware.configstore::IExynosHWCConfigs u:object_r:hal_vendor_configstore_hwservice:s0