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

Commit d3e83d59 authored by Robin Lee's avatar Robin Lee Committed by Android (Google) Code Review
Browse files

Merge "Don't suggest writing to /tmp if we already are"

parents 177e935b 56be27cb
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -247,7 +247,11 @@ public abstract class ShellCommand {
        }
        if (DEBUG) Slog.d(TAG, "Error: Unable to open file: " + path);
        getErrPrintWriter().println("Error: Unable to open file: " + path);
        getErrPrintWriter().println("Consider using a file under /data/local/tmp/");

        String suggestedPath = "/data/local/tmp/";
        if (path == null || !path.startsWith(suggestedPath)) {
            getErrPrintWriter().println("Consider using a file under " + suggestedPath);
        }
        return null;
    }