Merge "Fix issue #11087316: Can't run dumpsys procstats on user builds in some cases!" into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
efeb6f3c1b
@@ -566,6 +566,15 @@ public final class ProcessStatsService extends IProcessStats.Stub {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long ident = Binder.clearCallingIdentity();
|
||||||
|
try {
|
||||||
|
dumpInner(fd, pw, args);
|
||||||
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(ident);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void dumpInner(FileDescriptor fd, PrintWriter pw, String[] args) {
|
||||||
final long now = SystemClock.uptimeMillis();
|
final long now = SystemClock.uptimeMillis();
|
||||||
|
|
||||||
boolean isCheckin = false;
|
boolean isCheckin = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user