2022-04-01 17:51:04 -04:00
|
|
|
type vendor_fingerprint_device, dev_type;
|
|
|
|
type vendor_hal_fingerprint_hwservice_xiaomi, hwservice_manager_type;
|
2022-05-05 17:40:07 -04:00
|
|
|
type vendor_sysfs_udfps, sysfs_type, fs_type;
|
2023-05-15 05:22:04 -04:00
|
|
|
vendor_restricted_prop(vendor_fp_prop)
|
2020-08-19 07:25:44 -04:00
|
|
|
vendor_internal_prop(vendor_fp_info_prop)
|
2022-04-01 17:51:04 -04:00
|
|
|
|
|
|
|
# Binder
|
2023-07-15 10:58:17 -04:00
|
|
|
add_hwservice(hal_fingerprint_default, vendor_hal_fingerprint_hwservice_xiaomi)
|
2022-04-01 17:51:04 -04:00
|
|
|
allow hal_fingerprint_default vendor_hal_perf_default:binder call;
|
|
|
|
allow hal_fingerprint_default vendor_hal_perf_hwservice:hwservice_manager find;
|
|
|
|
|
2022-04-08 13:50:43 -04:00
|
|
|
# Netlink_socket
|
|
|
|
allow hal_fingerprint_default self:netlink_socket create_socket_perms_no_ioctl;
|
|
|
|
|
2022-04-01 17:51:04 -04:00
|
|
|
# Props
|
|
|
|
set_prop(hal_fingerprint_default, vendor_fp_prop)
|
|
|
|
set_prop(hal_fingerprint_default, vendor_fp_info_prop)
|
|
|
|
|
|
|
|
# Sysfs
|
|
|
|
allow hal_fingerprint_default sysfs_rtc:dir r_dir_perms;
|
|
|
|
allow hal_fingerprint_default sysfs_rtc:file rw_file_perms;
|
|
|
|
allow hal_fingerprint_default vendor_sysfs_spss:dir r_dir_perms;
|
|
|
|
allow hal_fingerprint_default vendor_sysfs_spss:file rw_file_perms;
|
|
|
|
allow hal_fingerprint_default vendor_sysfs_fingerprint:dir r_dir_perms;
|
|
|
|
allow hal_fingerprint_default vendor_sysfs_fingerprint:file rw_file_perms;
|
2022-05-05 17:40:07 -04:00
|
|
|
allow hal_fingerprint_default vendor_sysfs_udfps:file rw_file_perms;
|
|
|
|
allow hal_fingerprint_default vendor_sysfs_graphics:dir r_dir_perms;
|
|
|
|
allow hal_fingerprint_default vendor_sysfs_graphics:file rw_file_perms;
|
2022-04-01 17:51:04 -04:00
|
|
|
|
|
|
|
# Dev nodes
|
|
|
|
allow hal_fingerprint_default tee_device:chr_file rw_file_perms;
|
|
|
|
allow hal_fingerprint_default uhid_device:chr_file rw_file_perms;
|
2023-07-15 10:53:05 -04:00
|
|
|
allow hal_fingerprint_default vendor_fingerprint_device:chr_file rw_file_perms;
|
2023-07-15 10:58:17 -04:00
|
|
|
allow hal_fingerprint_default input_device:dir r_dir_perms;
|
|
|
|
allow hal_fingerprint_default input_device:chr_file rw_file_perms;
|