Revert "Turn on the instrumentation by default for the java code in APEXes"

This reverts commit 33b6654eea.

Reason for revert: verify build breakage

Change-Id: I712a9de8ca3bfb17c36d3b8efa6176cdaf26640e
This commit is contained in:
Jackal Guo 2020-02-17 03:25:56 +00:00
parent 33b6654eea
commit c021ea0b35
1 changed files with 0 additions and 5 deletions

View File

@ -1459,11 +1459,6 @@ func (j *Module) compile(ctx android.ModuleContext, aaptSrcJar android.Path) {
j.headerJarFile = j.implementationJarFile
}
// Force enable the instrumentation for java code that is built for APEXes
if android.DirectlyInAnyApex(ctx, ctx.ModuleName()) && !j.IsForPlatform() {
j.properties.Instrument = true
}
if j.shouldInstrument(ctx) {
outputFile = j.instrument(ctx, flags, outputFile, jarName)
}