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

Commit fb2927df authored by Nick Kralevich's avatar Nick Kralevich Committed by Android Git Automerger
Browse files

am 73612fbb: am e942b459: Merge "ActivityManagerService: delete unnecessary mkdir"

* commit '73612fbb':
  ActivityManagerService: delete unnecessary mkdir
parents d1f1985f 73612fbb
Loading
Loading
Loading
Loading
+0 −17
Original line number Diff line number Diff line
@@ -4716,15 +4716,6 @@ public final class ActivityManagerService extends ActivityManagerNative
        File tracesFile = new File(tracesPath);
        try {
            File tracesDir = tracesFile.getParentFile();
            if (!tracesDir.exists()) {
                tracesDir.mkdirs();
                if (!SELinux.restorecon(tracesDir)) {
                    return null;
                }
            }
            FileUtils.setPermissions(tracesDir.getPath(), 0775, -1, -1);  // drwxrwxr-x
            if (clearTraces && tracesFile.exists()) tracesFile.delete();
            tracesFile.createNewFile();
            FileUtils.setPermissions(tracesFile.getPath(), 0666, -1, -1); // -rw-rw-rw-
@@ -4827,14 +4818,6 @@ public final class ActivityManagerService extends ActivityManagerNative
            final File tracesDir = tracesFile.getParentFile();
            final File tracesTmp = new File(tracesDir, "__tmp__");
            try {
                if (!tracesDir.exists()) {
                    tracesDir.mkdirs();
                    if (!SELinux.restorecon(tracesDir.getPath())) {
                        return;
                    }
                }
                FileUtils.setPermissions(tracesDir.getPath(), 0775, -1, -1);  // drwxrwxr-x
                if (tracesFile.exists()) {
                    tracesTmp.delete();
                    tracesFile.renameTo(tracesTmp);