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

Commit 3de5ed51 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android Git Automerger
Browse files

am 7bd4aba1: am b27d43a8: Merge "Clear ident when obtaining provider across users." into lmp-dev

* commit '7bd4aba1':
  Clear ident when obtaining provider across users.
parents 16b6a8f7 7bd4aba1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -9349,6 +9349,7 @@ public final class ActivityManagerService extends ActivityManagerNative
                checkTime(startTime, "getContentProviderImpl: after getProviderByClass");
                final boolean firstClass = cpr == null;
                if (firstClass) {
                    final long ident = Binder.clearCallingIdentity();
                    try {
                        checkTime(startTime, "getContentProviderImpl: before getApplicationInfo");
                        ApplicationInfo ai =
@@ -9366,6 +9367,8 @@ public final class ActivityManagerService extends ActivityManagerNative
                        cpr = new ContentProviderRecord(this, cpi, ai, comp, singleton);
                    } catch (RemoteException ex) {
                        // pm is in same process, this will never happen.
                    } finally {
                        Binder.restoreCallingIdentity(ident);
                    }
                }