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

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

Merge "Updated permission for layer trace proto file."

parents 85ecdb8a d1759e0a
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -188,8 +188,11 @@ void SurfaceTracing::writeProtoFileLocked() {
        ALOGE("Could not save the proto file! Permission denied");
        mLastErr = PERMISSION_DENIED;
    }
    if (!android::base::WriteStringToFile(output, kDefaultFileName, S_IRWXU | S_IRGRP, getuid(),
                                          getgid(), true)) {

    // -rw-r--r--
    const mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
    if (!android::base::WriteStringToFile(output, kDefaultFileName, mode, getuid(), getgid(),
                                          true)) {
        ALOGE("Could not save the proto file! There are missing fields");
        mLastErr = PERMISSION_DENIED;
    }