From 9dfaa7dcc61d4c6cf1a12f46f14433fc1b07fddd Mon Sep 17 00:00:00 2001 From: Mark Chien Date: Mon, 11 Nov 2019 21:30:23 +0900 Subject: [PATCH] [Tether15] Allow system app to find TetheringManager Bug: 144320246 Test: -build, flash, boot -OFF/ON hotspot Change-Id: I8ce7ac5eb8198f0df4a2da426e3c56e8915e746a --- private/compat/29.0/29.0.ignore.cil | 1 + private/platform_app.te | 1 + private/priv_app.te | 1 + private/service_contexts | 1 + public/service.te | 1 + 5 files changed, 5 insertions(+) diff --git a/private/compat/29.0/29.0.ignore.cil b/private/compat/29.0/29.0.ignore.cil index 88e6efd9a..c48d27809 100644 --- a/private/compat/29.0/29.0.ignore.cil +++ b/private/compat/29.0/29.0.ignore.cil @@ -35,6 +35,7 @@ system_group_file system_jvmti_agent_prop system_passwd_file + tethering_service timezonedetector_service userspace_reboot_prop userspace_reboot_exported_prop diff --git a/private/platform_app.te b/private/platform_app.te index 45de3cb3d..72bfe712f 100644 --- a/private/platform_app.te +++ b/private/platform_app.te @@ -68,6 +68,7 @@ allow platform_app system_api_service:service_manager find; allow platform_app vr_manager_service:service_manager find; allow platform_app gpu_service:service_manager find; allow platform_app stats_service:service_manager find; +allow platform_app tethering_service:service_manager find; userdebug_or_eng(` allow platform_app platform_compat_service:service_manager find; ') diff --git a/private/priv_app.te b/private/priv_app.te index a9e998024..c776907e3 100644 --- a/private/priv_app.te +++ b/private/priv_app.te @@ -52,6 +52,7 @@ allow priv_app persistent_data_block_service:service_manager find; allow priv_app radio_service:service_manager find; allow priv_app recovery_service:service_manager find; allow priv_app stats_service:service_manager find; +allow priv_app tethering_service:service_manager find; # Allow privileged apps to interact with gpuservice binder_call(priv_app, gpuservice) diff --git a/private/service_contexts b/private/service_contexts index fa52a05a2..ab66b8235 100644 --- a/private/service_contexts +++ b/private/service_contexts @@ -196,6 +196,7 @@ telecom u:object_r:telecom_service:s0 telephony.registry u:object_r:registry_service:s0 telephony_ims u:object_r:radio_service:s0 testharness u:object_r:testharness_service:s0 +tethering u:object_r:tethering_service:s0 textclassification u:object_r:textclassification_service:s0 textservices u:object_r:textservices_service:s0 time_detector u:object_r:timedetector_service:s0 diff --git a/public/service.te b/public/service.te index f746727db..8b7383b77 100644 --- a/public/service.te +++ b/public/service.te @@ -191,6 +191,7 @@ type wifiaware_service, app_api_service, system_server_service, service_manager_ type window_service, system_api_service, system_server_service, service_manager_type; type inputflinger_service, system_api_service, system_server_service, service_manager_type; type wpantund_service, system_api_service, service_manager_type; +type tethering_service, system_server_service, service_manager_type; ### ### HAL Services