From 3261feef9794db542516097faba62c58492c13bb Mon Sep 17 00:00:00 2001
From: Haiqing Jiang <hqjiang1988@gmail.com>
Date: Mon, 30 Jul 2012 11:24:06 -0700
Subject: [PATCH] untrusted_app reads logs when android_cts enabled

---
 app.te | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/app.te b/app.te
index b9b5a1750..8b1aa5364 100644
--- a/app.te
+++ b/app.te
@@ -120,6 +120,10 @@ bool app_ndk false;
 if (app_ndk or android_cts) {
 allow untrusted_app system_data_file:file { execute open };
 }
+# Read Logs
+if (android_cts) {
+allow untrusted_app log_device:chr_file read;
+}
 
 #
 # Rules for all app domains.
-- 
GitLab