Revert "Turn on the instrumentation by default for the java code in APEXes"
This reverts commit 33b6654eeace28ceeb8f8328c01722abc4cdc6c6.
Reason for revert: verify build breakage
Change-Id: I712a9de8ca3bfb17c36d3b8efa6176cdaf26640e
diff --git a/java/java.go b/java/java.go
index 182dbc3..dd44d06 100644
--- a/java/java.go
+++ b/java/java.go
@@ -1459,11 +1459,6 @@
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)
}