From 2ed30c23e3e32251cc0fc6bea6752541202c4300 Mon Sep 17 00:00:00 2001 From: Vova Sharaienko Date: Fri, 12 Mar 2021 01:12:21 +0000 Subject: [PATCH] Stats: new sepolicy for the AIDL service This allows the pixelstats_vendor communicate with new AIDL IStats service via ServiceManager Bug: 181914749 Test: Build, flash, and logcat -s "pixelstats_vendor" Change-Id: Icf1bbbd7f72835fe8f9c2f23281a2f5b4bf8e698 --- tracking_denials/pixelstats_vendor.te | 4 ---- whitechapel/vendor/google/pixelstats_vendor.te | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 tracking_denials/pixelstats_vendor.te diff --git a/tracking_denials/pixelstats_vendor.te b/tracking_denials/pixelstats_vendor.te deleted file mode 100644 index 4eb0f6d0..00000000 --- a/tracking_denials/pixelstats_vendor.te +++ /dev/null @@ -1,4 +0,0 @@ -# b/181914749 -dontaudit pixelstats_vendor servicemanager:binder { call }; -# b/181915066 -dontaudit pixelstats_vendor servicemanager:binder { call }; diff --git a/whitechapel/vendor/google/pixelstats_vendor.te b/whitechapel/vendor/google/pixelstats_vendor.te index 23ae03d5..c4c1c275 100644 --- a/whitechapel/vendor/google/pixelstats_vendor.te +++ b/whitechapel/vendor/google/pixelstats_vendor.te @@ -11,5 +11,7 @@ hwbinder_use(pixelstats_vendor) allow pixelstats_vendor fwk_stats_hwservice:hwservice_manager find; binder_call(pixelstats_vendor, stats_service_server) +binder_use(pixelstats_vendor); +allow pixelstats_vendor fwk_stats_service:service_manager find; allow pixelstats_vendor sysfs_scsi_devices_0000:file rw_file_perms;