diff options
author | 2024-08-29 15:32:13 +0800 | |
---|---|---|
committer | 2024-09-02 09:02:08 +0800 | |
commit | 8be09c207544cfdee094494d57e819a5f924907b (patch) | |
tree | 3afed23148c680e6c6bc7be85f603d7cdc13a0d1 /java/builder.go | |
parent | 88a8daf8cae89783450b349d2a4217e6ed0c4a94 (diff) |
Apply apimapper instrument tool on android tests
Apimapper is a tool to instrument android tests to log potentail API calls at the run time.
The real tool is developed internally. We use a placeholder binary in
AOSP before the real tool is ready.
The tool will only take affect when the enviroment var EMMA_API_MAPPER
is set to true.
Test: m cts
Bug: 328699028
Change-Id: Iece53b8afdb9803334b7393527f4fa24e22f71a8
Diffstat (limited to 'java/builder.go')
-rw-r--r-- | java/builder.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/java/builder.go b/java/builder.go index 49207e535..81b0feb75 100644 --- a/java/builder.go +++ b/java/builder.go @@ -265,6 +265,13 @@ var ( }, ) + apimapper = pctx.AndroidStaticRule("apimapper", + blueprint.RuleParams{ + Command: "${apimapper} --in-jar $in --out-jar $out", + CommandDeps: []string{"${apimapper}"}, + }, + ) + zipalign = pctx.AndroidStaticRule("zipalign", blueprint.RuleParams{ Command: "if ! ${config.ZipAlign} -c -p 4 $in > /dev/null; then " + @@ -315,6 +322,7 @@ func init() { pctx.HostBinToolVariable("aconfig", "aconfig") pctx.HostBinToolVariable("ravenizer", "ravenizer") + pctx.HostBinToolVariable("apimapper", "apimapper") pctx.HostBinToolVariable("keep-flagged-apis", "keep-flagged-apis") } |