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

Commit a7420d1f authored by Ulya Trafimovich's avatar Ulya Trafimovich Committed by Automerger Merge Worker
Browse files

Relax boot image check to allow platform Jacoco variant in a coverage build....

Relax boot image check to allow platform Jacoco variant in a coverage build. am: b4d816e0 am: 9b1c4f9c am: e83d8207

Change-Id: I387a14bd545201e749f486a222a33d9d27047afa
parents afb3e639 e83d8207
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -273,6 +273,9 @@ func getBootImageJar(ctx android.SingletonContext, image *bootImageConfig, modul
		} else if isApexModule && apex.IsForPlatform() && Bool(module.(*Library).deviceProperties.Hostdex) {
			// this is a special "hostdex" variant, skip it and resume search
			return -1, nil
		} else if name == "jacocoagent" && ctx.Config().IsEnvTrue("EMMA_INSTRUMENT_FRAMEWORK") {
			// this is Jacoco platform variant for a coverage build, skip it and resume search
			return -1, nil
		} else {
			// this (installable) jar is part of the platform, fail immediately
			ctx.Errorf("module '%s' is part of the platform and not allowed in the ART boot image", name)