Merge "Fixes wrong id when granting provider access" into rvc-dev am: d3afc9f1d9

Change-Id: Iff0b8b2e38b44bc44e0a6574e1cd1e1bc51f5abf
This commit is contained in:
Automerger Merge Worker
2020-02-28 02:29:20 +00:00

View File

@@ -7267,10 +7267,8 @@ public class ActivityManagerService extends IActivityManager.Stub
}
checkTime(startTime, "getContentProviderImpl: done!");
grantImplicitAccess(userId, null /*intent*/,
UserHandle.getAppId(Binder.getCallingUid()),
UserHandle.getAppId(cpi.applicationInfo.uid)
);
grantImplicitAccess(userId, null /*intent*/, callingUid,
UserHandle.getAppId(cpi.applicationInfo.uid));
}
// Wait for the provider to be published...