Merge "Use caller's user id for recent caller info" into sc-dev

This commit is contained in:
Keun-young Park
2021-04-16 21:53:54 +00:00
committed by Android (Google) Code Review

View File

@@ -3039,7 +3039,7 @@ public final class ActiveServices {
try {
r.mRecentCallerApplicationInfo =
mAm.mContext.getPackageManager().getApplicationInfoAsUser(callingPackage,
0, userId);
0, UserHandle.getUserId(callingUid));
} catch (PackageManager.NameNotFoundException e) {
}
if (!mAm.validateAssociationAllowedLocked(callingPackage, callingUid, r.packageName,