Merge "freezer: disable on "am dumpheap <pid>"" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
330450c283
@@ -18376,7 +18376,18 @@ public class ActivityManagerService extends IActivityManager.Stub
|
||||
}
|
||||
}
|
||||
|
||||
proc.thread.dumpHeap(managed, mallocInfo, runGc, path, fd, finishCallback);
|
||||
Process.enableFreezer(false);
|
||||
|
||||
final RemoteCallback intermediateCallback = new RemoteCallback(
|
||||
new RemoteCallback.OnResultListener() {
|
||||
@Override
|
||||
public void onResult(Bundle result) {
|
||||
finishCallback.sendResult(result);
|
||||
Process.enableFreezer(true);
|
||||
}
|
||||
}, null);
|
||||
|
||||
proc.thread.dumpHeap(managed, mallocInfo, runGc, path, fd, intermediateCallback);
|
||||
fd = null;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user