From d8c17a38144f2c1bb14f4fe379ac7148d7c03ca9 Mon Sep 17 00:00:00 2001 From: Yang Qi Date: Sat, 4 Mar 2023 02:40:52 +0000 Subject: [PATCH] Add CccDkTimeSyncService for Digital Key Support for Zuma Test: Build and Run Bug: 270511447 Merged-In: I0195bfe5f8eed70556891ddfeae81c486373ddbb Change-Id: I0195bfe5f8eed70556891ddfeae81c486373ddbb --- tracking_denials/bug_map | 1 - tracking_denials/zygote.te | 2 -- vendor/cccdk_timesync_app.te | 5 +++++ vendor/hal_bluetooth_btlinux.te | 3 +++ 4 files changed, 8 insertions(+), 3 deletions(-) delete mode 100644 tracking_denials/zygote.te diff --git a/tracking_denials/bug_map b/tracking_denials/bug_map index d7fec234..9cb60fb8 100644 --- a/tracking_denials/bug_map +++ b/tracking_denials/bug_map @@ -34,4 +34,3 @@ untrusted_app default_android_service service_manager b/264599934 vendor_init device_config_configuration_prop property_service b/267714573 vendor_init device_config_configuration_prop property_service b/268566481 vendor_init vendor_camera_prop property_service b/267714573 -zygote vendor_cccdktimesync_app process b/269812912 diff --git a/tracking_denials/zygote.te b/tracking_denials/zygote.te deleted file mode 100644 index cdfc8aa7..00000000 --- a/tracking_denials/zygote.te +++ /dev/null @@ -1,2 +0,0 @@ -# b/269812912 -dontaudit zygote vendor_cccdktimesync_app:process { dyntransition }; diff --git a/vendor/cccdk_timesync_app.te b/vendor/cccdk_timesync_app.te index 2377adc8..f34c5f31 100644 --- a/vendor/cccdk_timesync_app.te +++ b/vendor/cccdk_timesync_app.te @@ -1,2 +1,7 @@ type vendor_cccdktimesync_app, domain; +app_domain(vendor_cccdktimesync_app) +allow vendor_cccdktimesync_app app_api_service:service_manager find; + +binder_call(vendor_cccdktimesync_app, hal_bluetooth_btlinux) +allow vendor_cccdktimesync_app hal_bluetooth_coexistence_hwservice:hwservice_manager find; diff --git a/vendor/hal_bluetooth_btlinux.te b/vendor/hal_bluetooth_btlinux.te index 1c447834..2167b3c2 100644 --- a/vendor/hal_bluetooth_btlinux.te +++ b/vendor/hal_bluetooth_btlinux.te @@ -1,3 +1,6 @@ # Allow access to always-on compute device node allow hal_bluetooth_btlinux aoc_device:chr_file rw_file_perms; allow hal_bluetooth_btlinux device:dir r_dir_perms; + +# allow the HAL to call cccdktimesync registered callbacks +binder_call(hal_bluetooth_btlinux, vendor_cccdktimesync_app)