Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f68e633 authored by Jackal Guo's avatar Jackal Guo
Browse files

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

Merge "Revert "Turn on the instrumentation by default for the java code in APEXes"" am: 954b2972 am: e8c1a8fd

Change-Id: Ie8ee4760938f3afdd6a41dffffd8d504fa6beb6e
parents 1b4c46f5 e8c1a8fd
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1510,11 +1510,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)
	}