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 input_device
27allow hal_fingerprint_capacitance input_device:dir r_dir_perms;
28allow hal_fingerprint_capacitance input_device:chr_file rw_file_perms;
29
30# allow fingerprint to access hwservice
31hwbinder_use(hal_fingerprint_capacitance)
32add_hwservice(hal_fingerprint_capacitance, hal_fingerprint_capacitance_ext_hwservice)
33
34# allow fingerprint to access fwk sensor hwservice
35allow hal_fingerprint_capacitance fwk_sensor_service:service_manager find;
36