a85558ea52
This makes sure that the remaining binder services for radio end up in plat_service_contexts. That in turn allows us to enforce that servicemanager will only serve services from plat_service_contexts on FULL_TREBLE devices. Bug: 36866029 Test: boot, verify radio services still work Change-Id: Ib67b3a03e5599484c5c4fb27a0f323a37dd51636 Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
26 lines
770 B
Text
26 lines
770 B
Text
type bluetooth_loader, domain;
|
|
type bluetooth_loader_exec, exec_type, vendor_file_type, file_type;
|
|
|
|
# Started by init
|
|
init_daemon_domain(bluetooth_loader)
|
|
|
|
# Get persist.service.bdroid.*, bluetooth.* and wcnss property values
|
|
get_prop(bluetooth_loader, bluetooth_prop)
|
|
get_prop(bluetooth_loader, wcnss_prop)
|
|
|
|
# Access the serial device
|
|
allow bluetooth_loader serial_device:chr_file rw_file_perms;
|
|
|
|
# And the smd device
|
|
allow bluetooth_loader smd_device:chr_file rw_file_perms;
|
|
|
|
# And qmuxd
|
|
allow bluetooth_loader qmuxd_socket:dir create_dir_perms;
|
|
allow bluetooth_loader qmuxd_socket:sock_file create_file_perms;
|
|
allow bluetooth_loader qmuxd:unix_stream_socket connectto;
|
|
|
|
r_dir_file(bluetooth_loader, persist_file)
|
|
|
|
userdebug_or_eng(`
|
|
diag_use(bluetooth_loader)
|
|
')
|