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

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

Merge "Set read file permissions for WM trace"

parents 499f61aa 8c074c63
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -93,8 +93,8 @@ class WindowTraceBuffer {
    void writeTraceToFile(File traceFile) throws IOException {
        synchronized (mBufferLock) {
            traceFile.delete();
            traceFile.setReadable(true, false);
            try (OutputStream os = new FileOutputStream(traceFile)) {
                traceFile.setReadable(true /* readable */, false /* ownerOnly */);
                ProtoOutputStream proto = new ProtoOutputStream();
                proto.write(MAGIC_NUMBER, MAGIC_NUMBER_VALUE);
                os.write(proto.getBytes());