1allow hal_fingerprint_default fingerprint_device:chr_file rw_file_perms; 2allow hal_fingerprint_default tee_device:chr_file rw_file_perms; 3allow hal_fingerprint_default self:netlink_socket create_socket_perms_no_ioctl; 4allow hal_fingerprint_default dmabuf_system_heap_device:chr_file r_file_perms; 5 6allow hal_fingerprint_default fwk_stats_service:service_manager find; 7get_prop(hal_fingerprint_default, fingerprint_ghbm_prop) 8set_prop(hal_fingerprint_default, vendor_fingerprint_prop) 9add_hwservice(hal_fingerprint_default, hal_fingerprint_ext_hwservice) 10 11# allow fingerprint to access power hal 12hal_client_domain(hal_fingerprint_default, hal_power); 13 14# Allow access to the files of CDT information. 15r_dir_file(hal_fingerprint_default, sysfs_chosen) 16 17# Allow fingerprint to access calibration blk device. 18allow hal_fingerprint_default mfg_data_block_device:blk_file rw_file_perms; 19allow hal_fingerprint_default block_device:dir search; 20 21# Allow fingerprint to access fwk_sensor_hwservice 22allow hal_fingerprint_default fwk_sensor_hwservice:hwservice_manager find; 23 24# Allow fingerprint to access sysfs_display 25allow hal_fingerprint_default sysfs_display:file rw_file_perms; 26 27# Allow fingerprint to access trusty sysfs 28allow hal_fingerprint_default sysfs_trusty:file rw_file_perms; 29 30# Allow fingerprint to access display hal 31allow hal_fingerprint_default hal_pixel_display_service:service_manager find; 32binder_call(hal_fingerprint_default, hal_graphics_composer_default) 33 34# allow fingerprint to access thermal hal 35hal_client_domain(hal_fingerprint_default, hal_thermal); 36 37# allow fingerprint to read sysfs_leds 38allow hal_fingerprint_default sysfs_leds:file r_file_perms; 39allow hal_fingerprint_default sysfs_leds:dir r_dir_perms; 40 41# Allow fingerprint to access sysfs_aoc_udfps 42allow hal_fingerprint_default sysfs_aoc:dir search; 43allow hal_fingerprint_default sysfs_aoc_udfps:file rw_file_perms; 44 45# Allow fingerprint to read nsp file 46allow hal_fingerprint_default modem_efs_image_file:dir search; 47allow hal_fingerprint_default persist_file:dir search; 48allow hal_fingerprint_default persist_ss_file:dir search; 49allow hal_fingerprint_default persist_ss_file:file r_file_perms; 50