From bbc335717844eb5532c5123fcc7cd468883fcc7c Mon Sep 17 00:00:00 2001 From: Aaron Knight Date: Fri, 22 Jul 2016 00:35:30 -0400 Subject: t0lte: Fix Logcat SELinux was blocking logcat from functioning properly. Logcat could not be run unless you restarted adb as root, and even then was pretty much useless since the vast majority of messages were being blocked from reaching logcat. After some research, I tried out the logging rules that i9300 uses for cm13, which shares the same kernel. These rules restore logcat to properly working on my l900, making it much easier to troubleshoot & debug issues Change-Id: I845a27169f27d03013ec8912123e2cb2b84a1347 --- selinux/logd.te | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/selinux/logd.te b/selinux/logd.te index 981754b..c3dfc80 100644 --- a/selinux/logd.te +++ b/selinux/logd.te @@ -1,3 +1,3 @@ -#allow logd location_app:dir r_dir_perms; -#allow logd location_app:file r_file_perms; -allow logd log_device:chr_file { open write }; \ No newline at end of file +allow domain log_device:chr_file { open write }; +allow domain log_device:dir { search }; +allow { shell debuggerd } log_device:chr_file { read }; -- cgit v1.2.3