1type citadeld, domain;
2type citadeld_exec, exec_type, vendor_file_type, file_type;
3
4vndbinder_use(citadeld)
5add_service(citadeld, citadeld_service)
6
7allow citadeld citadel_device:chr_file rw_file_perms;
8
9init_daemon_domain(citadeld)
10
11binder_call(citadeld, hal_power_stats_default)
12allow citadeld hal_power_stats_vendor_service:service_manager find;
13
14# Let citadeld find and use statsd.
15hwbinder_use(citadeld)
16get_prop(citadeld, hwservicemanager_prop)
17allow citadeld fwk_stats_hwservice:hwservice_manager find;
18binder_call(citadeld, stats_service_server)
19allow citadeld fwk_stats_service:service_manager find;
20binder_use(citadeld)
21