Loading services/core/java/com/android/server/am/ActivityManagerShellCommand.java +3 −2 Original line number Diff line number Diff line Loading @@ -940,8 +940,6 @@ final class ActivityManagerShellCommand extends ShellCommand { String logNameTimeString = LOG_NAME_TIME_FORMATTER.format(localDateTime); heapFile = "/data/local/tmp/heapdump-" + logNameTimeString + ".prof"; } pw.println("File: " + heapFile); pw.flush(); // Writes an error message to stderr on failure ParcelFileDescriptor fd = openFileForSystem(heapFile, "w"); Loading @@ -949,6 +947,9 @@ final class ActivityManagerShellCommand extends ShellCommand { return -1; } pw.println("File: " + heapFile); pw.flush(); final CountDownLatch latch = new CountDownLatch(1); final RemoteCallback finishCallback = new RemoteCallback(new OnResultListener() { Loading Loading
services/core/java/com/android/server/am/ActivityManagerShellCommand.java +3 −2 Original line number Diff line number Diff line Loading @@ -940,8 +940,6 @@ final class ActivityManagerShellCommand extends ShellCommand { String logNameTimeString = LOG_NAME_TIME_FORMATTER.format(localDateTime); heapFile = "/data/local/tmp/heapdump-" + logNameTimeString + ".prof"; } pw.println("File: " + heapFile); pw.flush(); // Writes an error message to stderr on failure ParcelFileDescriptor fd = openFileForSystem(heapFile, "w"); Loading @@ -949,6 +947,9 @@ final class ActivityManagerShellCommand extends ShellCommand { return -1; } pw.println("File: " + heapFile); pw.flush(); final CountDownLatch latch = new CountDownLatch(1); final RemoteCallback finishCallback = new RemoteCallback(new OnResultListener() { Loading