Reland "Turn on the instrumentation by default for the java code in APEXes"
This reverts commitc021ea0b35
. Exempt-From-Owner-Approval: cherry-pick from aosp Bug: 149353192 Merged-In: I2b1c0736202de26c5ea88c0ab14574bd7207a5fb Test: N/A (this is a clean revert) forward fix will be followed (cherry picked from commit00cae1cc88
) Change-Id: I2b1c0736202de26c5ea88c0ab14574bd7207a5fb
This commit is contained in:
@@ -1521,6 +1521,11 @@ 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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user