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

Commit 32538e15 authored by Abhijeet Kaur's avatar Abhijeet Kaur Committed by android-build-merger
Browse files

Merge "Bugreport Manager service clear binder identity"

am: 1f6b8f50

Change-Id: Idc5d92ca9be7d20f57dcd6a376b96ed12cc382fc
parents 20324711 1f6b8f50
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -79,7 +79,12 @@ class BugreportManagerServiceImpl extends IDumpstate.Stub {
        Preconditions.checkNotNull(bugreportFd);
        Preconditions.checkNotNull(listener);
        validateBugreportMode(bugreportMode);
        final long identity = Binder.clearCallingIdentity();
        try {
            ensureIsPrimaryUser();
        } finally {
            Binder.restoreCallingIdentity(identity);
        }

        int callingUid = Binder.getCallingUid();
        mAppOps.checkPackage(callingUid, callingPackage);