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

Commit b27d43a8 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

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

parents 9cf01b63 c0322ecd
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);
                    }
                }