summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHongwei Wang <hwwang@google.com>2023-01-20 12:15:28 -0800
committerHongwei Wang <hwwang@google.com>2023-01-31 18:13:08 -0800
commitb5e68a67f1a0710753a9e59c8517826f0646da46 (patch)
tree23a05fa8f45fab2b90a5310882b48b014dafa458
parent8ea0c2e276e913ad4d5756e691686573ffad5a03 (diff)
downloadcore-b5e68a67f1a0710753a9e59c8517826f0646da46.tar.gz
Grant wmtrace access to platform_app:systemui
Grant read/write access to anyone for /data/misc/wmtrace folder on debuggable builds, it's further protected by the selinux policy. This is to allow systemui process to write proto logs to the same folder on device as WindowManager, both can contribute to the transitions like PiP, Split-Screen and etc. Bug: 251513116 Test: adb shell dumpsys activity service SystemUIService \ WMShell protolog [start | stop] Ignore-AOSP-First: cherry-pick of aosp/2397772 Merged-In: Ice57efa17c61d132b02c0a11a762c24d772bd90a Change-Id: Ice57efa17c61d132b02c0a11a762c24d772bd90a
-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