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

Commit 61c4f64f authored by Winson's avatar Winson
Browse files

Use correct parentUserId when using cross profile domain verification

The targetUserId is actually incorrect. It's marks the user ID it's
being launched for, which is the source, not the parent which the
Intent is trying to cross into.

Bug: 174688153

Test: manual, debug linked issue

Change-Id: If822996238f73c6f47fcec239c2c9880925d0afc
parent 515057f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2822,7 +2822,7 @@ public class PackageManagerService extends IPackageManager.Stub
                result.highestApprovalLevel = Math.max(mDomainVerificationManager
                        .approvalLevelForDomain(ps, intent, resultTargetUser, flags,
                                riTargetUser.targetUserId), result.highestApprovalLevel);
                                parentUserId), result.highestApprovalLevel);
            }
            if (result != null && result.highestApprovalLevel
                    <= DomainVerificationManagerInternal.APPROVAL_LEVEL_NONE) {