2012-01-04 18:33:27 +01:00
|
|
|
# phone subsystem
|
2017-05-15 22:19:03 +02:00
|
|
|
type radio, domain, mlstrustedsubject;
|
2016-12-08 20:23:34 +01:00
|
|
|
|
2012-01-04 18:33:27 +01:00
|
|
|
net_domain(radio)
|
|
|
|
bluetooth_domain(radio)
|
2014-01-11 08:05:25 +01:00
|
|
|
binder_service(radio)
|
2012-01-04 18:33:27 +01:00
|
|
|
|
2018-03-08 02:07:37 +01:00
|
|
|
# Talks to hal_telephony_server via the rild socket only for devices without full treble
|
|
|
|
not_full_treble(`unix_socket_connect(radio, rild, hal_telephony_server)')
|
2013-10-23 19:12:55 +02:00
|
|
|
|
|
|
|
# Data file accesses.
|
|
|
|
allow radio radio_data_file:dir create_dir_perms;
|
|
|
|
allow radio radio_data_file:notdevfile_class_set create_file_perms;
|
|
|
|
|
|
|
|
allow radio alarm_device:chr_file rw_file_perms;
|
|
|
|
|
2014-11-03 23:51:34 +01:00
|
|
|
allow radio net_data_file:dir search;
|
|
|
|
allow radio net_data_file:file r_file_perms;
|
|
|
|
|
2013-10-23 19:12:55 +02:00
|
|
|
# Property service
|
2015-05-05 03:22:45 +02:00
|
|
|
set_prop(radio, radio_prop)
|
2017-10-19 09:54:49 +02:00
|
|
|
set_prop(radio, exported_radio_prop)
|
|
|
|
set_prop(radio, exported2_radio_prop)
|
2015-05-05 03:22:45 +02:00
|
|
|
set_prop(radio, net_radio_prop)
|
2013-10-23 19:12:55 +02:00
|
|
|
|
|
|
|
# ctl interface
|
2015-05-05 03:22:45 +02:00
|
|
|
set_prop(radio, ctl_rildaemon_prop)
|
2014-06-06 00:52:02 +02:00
|
|
|
|
2017-01-19 22:23:52 +01:00
|
|
|
add_service(radio, radio_service)
|
2015-09-09 19:48:04 +02:00
|
|
|
allow radio audioserver_service:service_manager find;
|
2016-06-09 21:47:05 +02:00
|
|
|
allow radio cameraserver_service:service_manager find;
|
2015-01-31 02:17:04 +01:00
|
|
|
allow radio drmserver_service:service_manager find;
|
2014-12-12 01:01:27 +01:00
|
|
|
allow radio mediaserver_service:service_manager find;
|
2016-06-14 06:42:10 +02:00
|
|
|
allow radio nfc_service:service_manager find;
|
2015-04-03 01:50:08 +02:00
|
|
|
allow radio app_api_service:service_manager find;
|
|
|
|
allow radio system_api_service:service_manager find;
|
2016-12-01 20:36:44 +01:00
|
|
|
|
2016-12-08 02:43:46 +01:00
|
|
|
# Perform HwBinder IPC.
|
|
|
|
hwbinder_use(radio)
|
2017-03-17 02:48:40 +01:00
|
|
|
hal_client_domain(radio, hal_telephony)
|