diff options
| author | 2021-03-11 18:11:19 -0800 | |
|---|---|---|
| committer | 2021-03-11 18:13:26 -0800 | |
| commit | 6c02f5fc21e4c13b76437b72b9e1dbc4629cc842 (patch) | |
| tree | 88313c3d71b51fbf59686c436d866519267cca8f | |
| parent | 515057f70d2dfb8e6de859757c549f32c6aac7b8 (diff) | |
Fix domain approval level constants
While it doesn't really matter, since Settings will soon deprecate the
legacy levels, technically ask and always are supposed to be separate,
so that always takes precedence.
Bug: 182520997
Change-Id: If12382c3d106c1330a20b708de4cccdc9c028232
| -rw-r--r-- | services/core/java/com/android/server/pm/verify/domain/DomainVerificationManagerInternal.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/services/core/java/com/android/server/pm/verify/domain/DomainVerificationManagerInternal.java b/services/core/java/com/android/server/pm/verify/domain/DomainVerificationManagerInternal.java index 0c2b4c547dae..b4bcde726173 100644 --- a/services/core/java/com/android/server/pm/verify/domain/DomainVerificationManagerInternal.java +++ b/services/core/java/com/android/server/pm/verify/domain/DomainVerificationManagerInternal.java @@ -80,14 +80,14 @@ public interface DomainVerificationManagerInternal { * been preserved for migration purposes, but is otherwise ignored. Corresponds to * {@link PackageManager#INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS}. */ - int APPROVAL_LEVEL_LEGACY_ALWAYS = 1; + int APPROVAL_LEVEL_LEGACY_ALWAYS = 2; /** * The app has been chosen by the user through * {@link DomainVerificationManager#setDomainVerificationUserSelection(UUID, Set, boolean)}, * indicating an explicit choice to use this app to open an unverified domain. */ - int APPROVAL_LEVEL_SELECTION = 2; + int APPROVAL_LEVEL_SELECTION = 3; /** * The app is approved through the digital asset link statement being hosted at the domain @@ -95,7 +95,7 @@ public interface DomainVerificationManagerInternal { * {@link DomainVerificationManager#setDomainVerificationStatus(UUID, Set, int)} by * the domain verification agent on device. */ - int APPROVAL_LEVEL_VERIFIED = 3; + int APPROVAL_LEVEL_VERIFIED = 4; /** * The app has been installed as an instant app, which grants it total authority on the domains @@ -105,7 +105,7 @@ public interface DomainVerificationManagerInternal { * The user is still able to disable instant app link handling through * {@link DomainVerificationManager#setDomainVerificationLinkHandlingAllowed(String, boolean)}. */ - int APPROVAL_LEVEL_INSTANT_APP = 4; + int APPROVAL_LEVEL_INSTANT_APP = 5; /** * Defines the possible values for {@link #approvalLevelForDomain(PackageSetting, Intent, int)} |