summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Winson <chiuwinson@google.com> 2021-05-25 09:28:27 -0700
committer Winson <chiuwinson@google.com> 2021-05-26 11:35:37 -0700
commit320bc8ff92a50cc8ddffb8ff8da4628bef26cecd (patch)
treebe73e67f8be1cc09087761bd370ee4cbabd8ad82
parentbd62d13f4905a99dca407ef77731104317d078d8 (diff)
Only add parent profile resolution if strictly greater
Don't show the intent dialog if the personal profile has an app that is the same level of verification, instead just immediate open the work profile app. Bug: 188545047 Test: manual, tested as part of ongoing CTS development Change-Id: Ifaac12dc5582a0ee488a964b3d48216d98cd43d9
-rw-r--r--services/core/java/com/android/server/pm/PackageManagerService.java4
1 files changed, 2 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 14861c2ddf4c..b84ca06e7ac9 100644
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
@@ -2681,9 +2681,9 @@ public class PackageManagerService extends IPackageManager.Stub
} else {
result.addAll(approvedInfos);
- // If the other profile has an app that's of equal or higher approval, add it
+ // If the other profile has an app that's higher approval, add it
if (xpDomainInfo != null
- && xpDomainInfo.highestApprovalLevel >= highestApproval) {
+ && xpDomainInfo.highestApprovalLevel > highestApproval) {
result.add(xpDomainInfo.resolveInfo);
}
}