Merge "Populating ResolveInfo.UserHandle for explicit intents resolution." into udc-dev

This commit is contained in:
Himanshu Gupta
2023-03-29 11:52:42 +00:00
committed by Android (Google) Code Review

View File

@@ -571,6 +571,7 @@ public class ComputerEngine implements Computer {
if (!blockInstantResolution && !blockNormalResolution) {
final ResolveInfo ri = new ResolveInfo();
ri.activityInfo = ai;
ri.userHandle = UserHandle.of(userId);
list = new ArrayList<>(1);
list.add(ri);
PackageManagerServiceUtils.applyEnforceIntentFilterMatching(