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

Commit ce93e3c6 authored by Nicolas Geoffray's avatar Nicolas Geoffray Committed by Gerrit Code Review
Browse files

Merge "Use the full dexpreopt boot classpath when preopting with other images."

parents 0975ee0d 06758a7e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -98,6 +98,7 @@ func (d *dexpreopter) dexpreopt(ctx android.ModuleContext, dexJarFile android.Mo

	global := dexpreoptGlobalConfig(ctx)
	bootImage := defaultBootImageConfig(ctx)
	defaultBootImage := bootImage
	if global.UseApexImage {
		bootImage = apexBootImageConfig(ctx)
	}
@@ -165,8 +166,11 @@ func (d *dexpreopter) dexpreopt(ctx android.ModuleContext, dexJarFile android.Mo
		Archs:           archs,
		DexPreoptImages: images,

		PreoptBootClassPathDexFiles:     bootImage.dexPaths.Paths(),
		PreoptBootClassPathDexLocations: bootImage.dexLocations,
		// We use the dex paths and dex locations of the default boot image, as it
		// contains the full dexpreopt boot classpath. Other images may just contain a subset of
		// the dexpreopt boot classpath.
		PreoptBootClassPathDexFiles:     defaultBootImage.dexPaths.Paths(),
		PreoptBootClassPathDexLocations: defaultBootImage.dexLocations,

		PreoptExtractedApk: false,