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

This commit is contained in:
TreeHugger Robot
2020-02-28 02:18:39 +00:00
committed by Android (Google) Code Review

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...