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
8# allow fingerprint to access file
9allow hal_fingerprint_capacitance tee_device:chr_file rw_file_perms;
10allow hal_fingerprint_capacitance sysfs_fingerprint:dir r_dir_perms;
11allow hal_fingerprint_capacitance sysfs_fingerprint:file rw_file_perms;
12
13# allow fingerprint to access wakeup node
14allow hal_fingerprint_capacitance sysfs_wakeup: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 input_device
23allow hal_fingerprint_capacitance input_device:dir r_dir_perms;
24allow hal_fingerprint_capacitance input_device:chr_file rw_file_perms;
25
26# allow fingerprint to access hwservice
27add_hwservice(hal_fingerprint_capacitance, hal_fingerprint_capacitance_ext_hwservice)
28
29# allow fingerprint to access servicemanager
30binder_call(hal_fingerprint_capacitance, servicemanager)
31
32# allow fingerprint to access fwk sensor hwservice
33allow hal_fingerprint_capacitance fwk_sensor_service:service_manager find;
34
35# allow fingerprint to access fingerprint property
36set_prop(hal_fingerprint_capacitance, vendor_fingerprint_prop)
37