summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHongwei Wang <hwwang@google.com>2023-02-08 19:10:47 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2023-02-08 19:10:47 +0000
commita4fa9e40fd282fe5f0b18c7b25acadb5b25e8d21 (patch)
tree307f2faf62df7def0ab272ff3b9ffc8f0fba775e
parent719b97add040eb4d60e8a6b87d1e2f35ab73e6a0 (diff)
parentb5e68a67f1a0710753a9e59c8517826f0646da46 (diff)
downloadcore-a4fa9e40fd282fe5f0b18c7b25acadb5b25e8d21.tar.gz
Merge "Grant wmtrace access to platform_app:systemui" into tm-qpr-dev
-rw-r--r--rootdir/init.rc8
1 files changed, 5 insertions, 3 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 02e51d2c4..c3216da52 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -1269,11 +1269,13 @@ service console /system/bin/sh
setenv HOSTNAME console
on property:ro.debuggable=1
- # Give writes to anyone for the trace folder on debug builds.
+ # Give writes to the same group for the trace folder on debug builds,
+ # it's further protected by selinux policy.
# The folder is used to store method traces.
chmod 0773 /data/misc/trace
- # Give reads to anyone for the window trace folder on debug builds.
- chmod 0775 /data/misc/wmtrace
+ # Give writes and reads to anyone for the window trace folder on debug builds,
+ # it's further protected by selinux policy.
+ chmod 0777 /data/misc/wmtrace
# Give reads to anyone for the accessibility trace folder on debug builds.
chmod 0775 /data/misc/a11ytrace