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

Commit 3ec12db0 authored by Esteban Talavera's avatar Esteban Talavera
Browse files

Don't send app links to parent profile if status == never

Bug: 22287521
Change-Id: Ic84e57eab74c0e0b89f1b6a3baa54784157fa96b
parent 7d170797
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -4397,8 +4397,11 @@ public class PackageManagerService extends IPackageManager.Stub {
            // cross-profile app linking works only towards the parent.
            final UserInfo parent = getProfileParent(sourceUserId);
            synchronized(mPackages) {
                return getCrossProfileDomainPreferredLpr(intent, resolvedType, 0, sourceUserId,
                        parent.id) != null;
                CrossProfileDomainInfo xpDomainInfo = getCrossProfileDomainPreferredLpr(
                        intent, resolvedType, 0, sourceUserId, parent.id);
                return xpDomainInfo != null
                        && xpDomainInfo.bestDomainVerificationStatus !=
                                INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER;
            }
        }
        return false;