From a59d019822c5f5f34e2354d2c18da311e1bb6cac Mon Sep 17 00:00:00 2001 From: feiyuchen Date: Sat, 11 Feb 2023 20:18:12 +0000 Subject: [PATCH] Allow EdgeTpu service to read persist.device_config.edgetpu_native properties Background: Darwinn Runtime team wants to use a cloud-based infra (Android Core Experiments) to push flags from server to device. The flags will be stored into android properties under the namespace: `persist.device_config.edgetpu_native`, which has a property context called `device_config_edgetpu_native_prop` as added by the other CL: https://android-review.git.corp.google.com/c/platform/system/sepolicy/+/2434232 Change: Allow EdgeTpu service to read device_config_edgetpu_native_prop Test: Verified EdgeTpu has access to read the property Bug: 243553703 Bug: 246401730 Change-Id: I19dca0e2d3008e36bdbca50f610810148a7e11dd --- edgetpu/sepolicy/edgetpu_app_service.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/edgetpu/sepolicy/edgetpu_app_service.te b/edgetpu/sepolicy/edgetpu_app_service.te index 58ce246..271805e 100644 --- a/edgetpu/sepolicy/edgetpu_app_service.te +++ b/edgetpu/sepolicy/edgetpu_app_service.te @@ -26,6 +26,8 @@ binder_call(edgetpu_app_server, system_server); # Allow EdgeTPU service to read EdgeTPU service related system properties. get_prop(edgetpu_app_server, vendor_edgetpu_service_prop); +# Allow EdgeTPU service to read device_configs that are set by the cloud server. +get_prop(edgetpu_app_server, device_config_edgetpu_native_prop); # Allow EdgeTPU service to generate Perfetto traces. perfetto_producer(edgetpu_app_server);