UnflaggedApi: Disable enforcement for @SystemApi for now
The lint seems to trigger on methods inherited from
classes that are part of the public API surface.
Disables the lint for non-public surfaces until this is fixed.
Bug: 297362755
Test: m :checkapi
Change-Id: I6de0123ed8d54d88b7d78cc01e99e0558aa99413
diff --git a/Android.bp b/Android.bp
index f1a3af2..57a5a3c 100644
--- a/Android.bp
+++ b/Android.bp
@@ -621,7 +621,6 @@
"--api-lint-ignore-prefix org. " +
"--error NoSettingsProvider " +
"--error UnhiddenSystemApi " +
- "--error UnflaggedApi " +
"--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " +
"--hide BroadcastBehavior " +
"--hide CallbackInterface " +
diff --git a/api/StubLibraries.bp b/api/StubLibraries.bp
index c59a833..2f84df7 100644
--- a/api/StubLibraries.bp
+++ b/api/StubLibraries.bp
@@ -33,7 +33,7 @@
"android-non-updatable-stubs-defaults",
"module-classpath-stubs-defaults",
],
- args: metalava_framework_docs_args,
+ args: metalava_framework_docs_args + "--error UnflaggedApi ",
check_api: {
current: {
api_file: ":non-updatable-current.txt",