sm8350-common: sepolicy: add inscreen fingerprint rules

This commit is contained in:
Cosmin Tanislav 2021-09-10 02:24:56 +03:00
parent b66f137c63
commit 5d0056c142
2 changed files with 14 additions and 0 deletions

View File

@ -3,5 +3,10 @@
/vendor/bin/batterysecret u:object_r:batterysecret_exec:s0 /vendor/bin/batterysecret u:object_r:batterysecret_exec:s0
/mnt/vendor/persist/subsys(/.*)? u:object_r:persist_subsys_file:s0 /mnt/vendor/persist/subsys(/.*)? u:object_r:persist_subsys_file:s0
# FOD
/vendor/bin/hw/vendor\.lineage\.biometrics\.fingerprint\.inscreen@1.0-service\.xiaomi_sm8350 u:object_r:hal_lineage_fod_default_exec:s0
/sys/devices/platform/soc/soc:qcom,dsi-display-primary/fod_hbm u:object_r:vendor_sysfs_fod:s0
/sys/devices/virtual/touch/tp_dev/fod_status u:object_r:vendor_sysfs_fod:s0
# Power HAL # Power HAL
/vendor/bin/hw/android\.hardware\.power@1\.3-service\.xiaomi_sm8350 u:object_r:hal_power_default_exec:s0 /vendor/bin/hw/android\.hardware\.power@1\.3-service\.xiaomi_sm8350 u:object_r:hal_power_default_exec:s0

View File

@ -0,0 +1,9 @@
type vendor_sysfs_fod, sysfs_type, fs_type;
allow hal_lineage_fod_default vendor_sysfs_fod:file rw_file_perms;
allow hal_lineage_fod_default vendor_sysfs_graphics:dir r_dir_perms;
allow hal_lineage_fod_default vendor_sysfs_graphics:file rw_file_perms;
binder_call(hal_lineage_fod_default, hal_fingerprint_default)
hal_client_domain(hal_lineage_fod_default, hal_fingerprint)