Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 231e80db authored by Hongwei Wang's avatar Hongwei Wang
Browse files

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]
Change-Id: Ice57efa17c61d132b02c0a11a762c24d772bd90a
parent 90b384ad
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1288,11 +1288,13 @@ service console /system/bin/sh
    shutdown critical

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