From 97088e9909e4d14720d57436eae82eb77d47912f Mon Sep 17 00:00:00 2001 From: Anna Trostanetski Date: Wed, 26 Jun 2019 14:47:58 +0100 Subject: 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 --- Android.bp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Android.bp b/Android.bp index 868886789761..b7033be4eadd 100644 --- a/Android.bp +++ b/Android.bp @@ -756,6 +756,7 @@ java_library { java_library { name: "framework-annotation-proc", defaults: ["framework-defaults"], + installable: false, // Use UsedByApps annotation processor plugins: ["unsupportedappusage-annotation-processor"], } @@ -1715,3 +1716,13 @@ aidl_mapping { 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"], + }, +} -- cgit v1.2.3-59-g8ed1b