Skip to content

Commit

Permalink
Grant wmtrace access to platform_app:systemui
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hwwang-google committed Feb 1, 2023
1 parent 8ea0c2e commit b5e68a6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rootdir/init.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b5e68a6

Please sign in to comment.