1# hal_fingerprint_capacitance definition 2type hal_fingerprint_capacitance, domain; 3hal_server_domain(hal_fingerprint_capacitance, hal_fingerprint) 4 5type hal_fingerprint_capacitance_exec, exec_type, vendor_file_type, file_type; 6init_daemon_domain(hal_fingerprint_capacitance) 7 8set_prop(hal_fingerprint_capacitance, vendor_fingerprint_prop) 9 10# allow fingerprint to access file 11allow hal_fingerprint_capacitance fingerprint_device:chr_file rw_file_perms; 12allow hal_fingerprint_capacitance tee_device:chr_file rw_file_perms; 13allow hal_fingerprint_capacitance sysfs_fingerprint:dir r_dir_perms; 14allow hal_fingerprint_capacitance sysfs_fingerprint:file rw_file_perms; 15 16# allow fingerprint to access power hal 17hal_client_domain(hal_fingerprint_capacitance, hal_power); 18 19# allow fingerprint to find fwk service 20allow hal_fingerprint_capacitance fwk_stats_service:service_manager find; 21 22# allow fingerprint to access sysfs_leds 23allow hal_fingerprint_capacitance sysfs_leds:dir search; 24allow hal_fingerprint_capacitance sysfs_leds:file rw_file_perms; 25 26# allow fingerprint to access sysfs_batteryinfo 27allow hal_fingerprint_capacitance sysfs_batteryinfo:dir search; 28allow hal_fingerprint_capacitance sysfs_batteryinfo:file rw_file_perms; 29 30# allow fingerprint to access input_device 31allow hal_fingerprint_capacitance input_device:dir r_dir_perms; 32allow hal_fingerprint_capacitance input_device:chr_file rw_file_perms; 33 34# allow fingerprint to access hwservice 35hwbinder_use(hal_fingerprint_capacitance) 36add_hwservice(hal_fingerprint_capacitance, hal_fingerprint_capacitance_ext_hwservice) 37 38# allow fingerprint to access fwk sensor hwservice 39allow hal_fingerprint_capacitance fwk_sensor_service:service_manager find; 40