Merge "Clear the caller identity when dumping print system state." into klp-dev
This commit is contained in:
@@ -361,12 +361,17 @@ public final class PrintManagerService extends IPrintManager.Stub {
|
||||
}
|
||||
|
||||
synchronized (mLock) {
|
||||
pw.println("PRINT MANAGER STATE (dumpsys print)");
|
||||
final int userStateCount = mUserStates.size();
|
||||
for (int i = 0; i < userStateCount; i++) {
|
||||
UserState userState = mUserStates.get(i);
|
||||
userState.dump(fd, pw, "");
|
||||
pw.println();
|
||||
final long identity = Binder.clearCallingIdentity();
|
||||
try {
|
||||
pw.println("PRINT MANAGER STATE (dumpsys print)");
|
||||
final int userStateCount = mUserStates.size();
|
||||
for (int i = 0; i < userStateCount; i++) {
|
||||
UserState userState = mUserStates.get(i);
|
||||
userState.dump(fd, pw, "");
|
||||
pw.println();
|
||||
}
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(identity);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user