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

Commit 7bd4aba1 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android Git Automerger
Browse files

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

* commit 'b27d43a8':
  Clear ident when obtaining provider across users.
parents 962e3e83 b27d43a8
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);
                    }
                }