Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f11d0db authored by Svetoslav's avatar Svetoslav Committed by Android (Google) Code Review
Browse files

Merge "Clear the caller identity when dumping print system state." into klp-dev

parents b4f33d8f 5fe07aa7
Loading
Loading
Loading
Loading
+11 −6
Original line number Diff line number Diff line
@@ -361,6 +361,8 @@ public final class PrintManagerService extends IPrintManager.Stub {
        }

        synchronized (mLock) {
            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++) {
@@ -368,6 +370,9 @@ public final class PrintManagerService extends IPrintManager.Stub {
                    userState.dump(fd, pw, "");
                    pw.println();
                }
            } finally {
                Binder.restoreCallingIdentity(identity);
            }
        }
    }