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