summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Knight <starlightknight@slkdev.net>2016-07-22 00:35:30 -0400
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-07-27 04:49:52 -0700
commitbbc335717844eb5532c5123fcc7cd468883fcc7c (patch)
treec6a0dc37ecf978f83269814103491bed6af7e180
parent9399da304a78ee76b1cc7b5a149666dd1ec6191e (diff)
downloaddevice_samsung_t0lte-bbc335717844eb5532c5123fcc7cd468883fcc7c.tar.gz
device_samsung_t0lte-bbc335717844eb5532c5123fcc7cd468883fcc7c.tar.bz2
device_samsung_t0lte-bbc335717844eb5532c5123fcc7cd468883fcc7c.zip
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
-rw-r--r--selinux/logd.te6
1 files 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 };