Fix issue #11087316: Can't run dumpsys procstats on user builds in some cases!

Once we pass the dump perm check, we are safe.

Change-Id: I58f483573874ca9f8f914fb94137f8a2afafaf25
This commit is contained in:
Dianne Hackborn
2013-10-09 12:14:11 -07:00
parent e6d419de77
commit 08b36a47cf

View File

@@ -566,6 +566,15 @@ public final class ProcessStatsService extends IProcessStats.Stub {
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();
boolean isCheckin = false;