Merge "Recognise the Google-signed ART APEXes as well." am: cfcaddc5b2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1590194 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I81c3363b5d207c7eee5955a01d1bddeb9a8e3704
This commit is contained in:
commit
b85c77714a
1 changed files with 17 additions and 1 deletions
|
@ -210,6 +210,15 @@ import (
|
|||
// apps instead of the Framework boot image extension (see DEXPREOPT_USE_ART_IMAGE and UseArtImage).
|
||||
//
|
||||
|
||||
var artApexNames = []string{
|
||||
"com.android.art",
|
||||
"com.android.art.debug",
|
||||
"com.android.art,testing",
|
||||
"com.google.android.art",
|
||||
"com.google.android.art.debug",
|
||||
"com.google.android.art.testing",
|
||||
}
|
||||
|
||||
func init() {
|
||||
RegisterDexpreoptBootJarsComponents(android.InitRegistrationContext)
|
||||
}
|
||||
|
@ -485,7 +494,14 @@ func getBootImageJar(ctx android.SingletonContext, image *bootImageConfig, modul
|
|||
|
||||
switch image.name {
|
||||
case artBootImageName:
|
||||
if apexInfo.InApexByBaseName("com.android.art") || apexInfo.InApexByBaseName("com.android.art.debug") || apexInfo.InApexByBaseName("com.android.art,testing") {
|
||||
inArtApex := false
|
||||
for _, n := range artApexNames {
|
||||
if apexInfo.InApexByBaseName(n) {
|
||||
inArtApex = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if inArtApex {
|
||||
// ok: found the jar in the ART apex
|
||||
} else if name == "jacocoagent" && ctx.Config().IsEnvTrue("EMMA_INSTRUMENT_FRAMEWORK") {
|
||||
// exception (skip and continue): Jacoco platform variant for a coverage build
|
||||
|
|
Loading…
Reference in a new issue