OSDN Git Service

API: Enable UnhiddenSystemApi check for frameworks/base
authorAdrian Roos <roosa@google.com>
Wed, 12 Dec 2018 14:08:44 +0000 (15:08 +0100)
committerAdrian Roos <roosa@google.com>
Fri, 14 Dec 2018 13:45:05 +0000 (13:45 +0000)
Test: m checkapi
Bug: 115333477
Change-Id: I84d454f3495d7ab8e5f0bc2e4c24725f1cd2324f

Android.bp

index 151adf8..2b64932 100644 (file)
@@ -1147,6 +1147,7 @@ framework_docs_only_libs = [
 metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
     "--hide-package com.android.okhttp " +
     "--hide-package com.android.org.conscrypt --hide-package com.android.server " +
+    "--error UnhiddenSystemApi " +
     "--hide RequiresPermission " +
     "--hide MissingPermission --hide BroadcastBehavior " +
     "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
@@ -1563,6 +1564,7 @@ droidstubs {
     dex_mapping_filename: "dex-mapping.txt",
     args: metalava_framework_docs_args +
         " --hide ReferencesHidden " +
+        " --hide UnhiddenSystemApi " +
         " --show-unannotated " +
         " --show-annotation android.annotation.SystemApi " +
         " --show-annotation android.annotation.TestApi "