Make unsupportedappusage_index.csv a build artifact.
Add the output of unsupportedappusage-annotation-processor as a build artifact to make it available for the hiddenapi ayeaye analyzer.
Test: build artifact appears in treehuger, found by ayeaye.
Bug: 135601059
Change-Id: If3ef7bde96e008127694a8b0aa25bf19767faf1c
diff --git a/Android.bp b/Android.bp
index 8688867..b7033be 100644
--- a/Android.bp
+++ b/Android.bp
@@ -756,6 +756,7 @@
java_library {
name: "framework-annotation-proc",
defaults: ["framework-defaults"],
+ installable: false,
// Use UsedByApps annotation processor
plugins: ["unsupportedappusage-annotation-processor"],
}
@@ -1715,3 +1716,13 @@
srcs: [":framework-defaults"],
output: "framework-aidl-mappings.txt",
}
+
+genrule {
+ name: "framework-annotation-proc-index",
+ srcs: [":framework-annotation-proc"],
+ cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)",
+ out: ["unsupportedappusage_index.csv"],
+ dist: {
+ targets: ["droidcore"],
+ },
+}