diff options
| author | Andrei Onea <andreionea@google.com> | 2020-12-04 17:42:34 +0000 |
|---|---|---|
| committer | Andrei Onea <andreionea@google.com> | 2020-12-30 14:52:51 +0000 |
| commit | 46111c8ea0b39e6f0ace60681169cc83c4bc93e2 (patch) | |
| tree | 183d98d25e792c834697282510ca8a4b94704b0b /core/java | |
| parent | 224f8c01d7096a57de8d8da6f51a79134553ee74 (diff) | |
Add force_non_debuggable_final_build_for_compat
This flag forces the compat framework to assume we're on a
non-debuggable build, and use stricter rules for enforcing
the change id override policy.
On a non-debuggable build, this flag has no effect.
Test: atest OverrideValidatorImplTest
Bug: 158696818
Change-Id: I3b13f1898e7ff00580140debe2ced9f8074502ea
Diffstat (limited to 'core/java')
| -rwxr-xr-x | core/java/android/provider/Settings.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 300bb7603722..1e14e3a4a701 100755 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -13283,6 +13283,16 @@ public final class Settings { @TestApi public static final String HIDDEN_API_POLICY = "hidden_api_policy"; + /** + * Flag for forcing {@link com.android.server.compat.OverrideValidatorImpl} + * to consider this a non-debuggable build. + * + * @hide + */ + public static final String FORCE_NON_DEBUGGABLE_FINAL_BUILD_FOR_COMPAT = + "force_non_debuggable_final_build_for_compat"; + + /** * Current version of signed configuration applied. * |
