diff options
author | Esteban Talavera <etalavera@google.com> | 2015-07-09 19:06:41 +0100 |
---|---|---|
committer | Esteban Talavera <etalavera@google.com> | 2015-07-09 19:25:45 +0100 |
commit | 3ec12db0f5155be41d60694f0ac3c9284ff29002 (patch) | |
tree | 04722f291e925acb5d9816fd4a4848518587f1b6 /services | |
parent | 7d170797ac844124b013b77cc220ccf115db12b7 (diff) | |
download | frameworks_base-3ec12db0f5155be41d60694f0ac3c9284ff29002.zip frameworks_base-3ec12db0f5155be41d60694f0ac3c9284ff29002.tar.gz frameworks_base-3ec12db0f5155be41d60694f0ac3c9284ff29002.tar.bz2 |
Don't send app links to parent profile if status == never
Bug: 22287521
Change-Id: Ic84e57eab74c0e0b89f1b6a3baa54784157fa96b
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/pm/PackageManagerService.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java index c7ae50d..40e7411 100644 --- a/services/core/java/com/android/server/pm/PackageManagerService.java +++ b/services/core/java/com/android/server/pm/PackageManagerService.java @@ -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; |