1 type hal_rcsservice, domain; 2 type hal_rcsservice_exec, exec_type, vendor_file_type, file_type; 3 4 # Started by init 5 init_daemon_domain(hal_rcsservice) 6 net_domain(hal_rcsservice) 7 8 get_prop(hal_rcsservice, hwservicemanager_prop) 9 10 # To register imsrcsd to hwBinder 11 hwbinder_use(hal_rcsservice) 12 # add IUceSerive Hidl interface 13 add_hwservice(hal_rcsservice, hal_imsrcsd_hwservice) 14 15 get_prop(hal_rcsservice, hwservicemanager_prop) 16 17 # allow hal to read sysfs file 18 r_dir_file(hal_rcsservice, sysfs_msm_subsys) 19 r_dir_file(hal_rcsservice, sysfs_diag) 20 21 allow hal_rcsservice sysfs_timestamp_switch:file r_file_perms; 22 23 unix_socket_connect(hal_rcsservice, ims, ims) 24 25 # imsrcsd to bind with UceShimService.apk 26 binder_call(hal_rcsservice, dataservice_app) 27 28 # imsrcsd needs read/write access to devpts 29 allow hal_rcsservice devpts:chr_file rw_file_perms; 30