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

Commit 02a10366 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add read permissions to wm trace file"

parents a14a9d46 14ce9644
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -67,6 +67,7 @@ class WindowTracing {
            mWriteQueue.clear();
            mTraceFile.delete();
            try (OutputStream os = new FileOutputStream(mTraceFile)) {
                mTraceFile.setReadable(true, false);
                ProtoOutputStream proto = new ProtoOutputStream(os);
                proto.write(MAGIC_NUMBER, MAGIC_NUMBER_VALUE);
                proto.flush();
@@ -147,7 +148,7 @@ class WindowTracing {
    }

    static WindowTracing createDefaultAndStartLooper(Context context) {
        File file = new File("/data/system/window_trace.proto");
        File file = new File("/data/misc/wmtrace/wm_trace.pb");
        WindowTracing windowTracing = new WindowTracing(file);
        new Thread(windowTracing::loop, "window_tracing").start();
        return windowTracing;