2012-01-04 09:33:27 -08:00
|
|
|
# phone subsystem
|
2017-05-15 13:19:03 -07:00
|
|
|
type radio, domain, mlstrustedsubject;
|
2016-12-08 11:23:34 -08:00
|
|
|
|
2012-01-04 09:33:27 -08:00
|
|
|
net_domain(radio)
|
|
|
|
bluetooth_domain(radio)
|
2014-01-10 23:05:25 -08:00
|
|
|
binder_service(radio)
|
2012-01-04 09:33:27 -08:00
|
|
|
|
2018-03-12 10:12:09 -07: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 10:12:55 -07:00
|
|
|
|
|
|
|
# Data file accesses.
|
|
|
|
allow radio radio_data_file:dir create_dir_perms;
|
|
|
|
allow radio radio_data_file:notdevfile_class_set create_file_perms;
|
|
|
|
|
|
|
|
|
2014-11-03 14:51:34 -08:00
|
|
|
allow radio net_data_file:dir search;
|
|
|
|
allow radio net_data_file:file r_file_perms;
|
|
|
|
|
2013-10-23 10:12:55 -07:00
|
|
|
# Property service
|
2015-05-04 18:22:45 -07:00
|
|
|
set_prop(radio, radio_prop)
|
2017-10-19 00:54:49 -07:00
|
|
|
set_prop(radio, exported_radio_prop)
|
|
|
|
set_prop(radio, exported2_radio_prop)
|
2018-03-26 21:41:47 -07:00
|
|
|
set_prop(radio, exported3_radio_prop)
|
2015-05-04 18:22:45 -07:00
|
|
|
set_prop(radio, net_radio_prop)
|
2013-10-23 10:12:55 -07:00
|
|
|
|
|
|
|
# ctl interface
|
2015-05-04 18:22:45 -07:00
|
|
|
set_prop(radio, ctl_rildaemon_prop)
|
2014-06-05 15:52:02 -07:00
|
|
|
|
2017-01-19 13:23:52 -08:00
|
|
|
add_service(radio, radio_service)
|
2015-09-09 10:48:04 -07:00
|
|
|
allow radio audioserver_service:service_manager find;
|
2016-06-09 12:47:05 -07:00
|
|
|
allow radio cameraserver_service:service_manager find;
|
2015-01-30 17:17:04 -08:00
|
|
|
allow radio drmserver_service:service_manager find;
|
2014-12-11 16:01:27 -08:00
|
|
|
allow radio mediaserver_service:service_manager find;
|
2016-06-13 21:42:10 -07:00
|
|
|
allow radio nfc_service:service_manager find;
|
2015-04-02 16:50:08 -07:00
|
|
|
allow radio app_api_service:service_manager find;
|
|
|
|
allow radio system_api_service:service_manager find;
|
2018-06-08 13:51:49 -07:00
|
|
|
allow radio timedetector_service:service_manager find;
|
2019-11-07 08:01:55 -08:00
|
|
|
allow radio timezonedetector_service:service_manager find;
|
2016-12-01 11:36:44 -08:00
|
|
|
|
2016-12-07 17:43:46 -08:00
|
|
|
# Perform HwBinder IPC.
|
|
|
|
hwbinder_use(radio)
|
2017-03-16 18:48:40 -07:00
|
|
|
hal_client_domain(radio, hal_telephony)
|
2019-02-12 15:34:39 -08:00
|
|
|
|
|
|
|
# Used by TelephonyManager
|
|
|
|
allow radio proc_cmdline:file r_file_perms;
|