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

Commit c55286be authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Revert "libsnapshot callstack files readable by dumpstate" am: 611c6f7d

Change-Id: Ie2d140b186121a6486467067f15bf5da627a9d35
parents 5d7a5cf1 611c6f7d
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -239,12 +239,7 @@ bool SnapshotManager::RemoveAllUpdateState(LockedFile* lock, const std::function
    LOG(WARNING) << callstack_str.c_str();
    std::stringstream path;
    path << "/data/misc/snapshotctl_log/libsnapshot." << Now() << ".log";
    std::string path_str = path.str();
    android::base::WriteStringToFile(callstack_str.c_str(), path_str);
    if (chmod(path_str.c_str(), 0644) == -1) {
        PLOG(WARNING) << "Unable to chmod 0644 "
                      << ", file maybe dropped from bugreport:" << path_str;
    }
    android::base::WriteStringToFile(callstack_str.c_str(), path.str());
#endif

    if (!RemoveAllSnapshots(lock)) {