From 3486acb3e203090675c399c63fd2d8324595c1f4 Mon Sep 17 00:00:00 2001 From: Chris Wailes Date: Mon, 7 Jun 2021 14:20:47 -0700 Subject: [PATCH] Add SELinux policy to allow testing of artd Test: m ArtdIntegrationTests Bug: 177273468 Change-Id: I087e70bee7539c755da15579edc164a3588dc31d --- private/platform_app.te | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/private/platform_app.te b/private/platform_app.te index f746f1cc4..55ccbde24 100644 --- a/private/platform_app.te +++ b/private/platform_app.te @@ -71,6 +71,12 @@ allow platform_app stats_service:service_manager find; # Allow platform apps to log via statsd. binder_call(platform_app, statsd) +# Allow platform applications to find and call artd for testing +userdebug_or_eng(` + allow platform_app artd_service:service_manager find; + binder_call(platform_app, artd) +') + # Access to /data/preloads allow platform_app preloads_data_file:file r_file_perms; allow platform_app preloads_data_file:dir r_dir_perms;