Merge "Use uncompressed dex for all preopted system targets" into main

This commit is contained in:
Treehugger Robot
2024-03-12 01:43:32 +00:00
committed by Gerrit Code Review

View File

@@ -680,10 +680,11 @@ func shouldUncompressDex(ctx android.ModuleContext, libName string, dexpreopter
return true
}
// Store uncompressed dex files that are preopted on /system.
if !dexpreopter.dexpreoptDisabled(ctx, libName) && (ctx.Host() || !dexpreopter.odexOnSystemOther(ctx, libName, dexpreopter.installPath)) {
// Store uncompressed dex files that are preopted on /system or /system_other.
if !dexpreopter.dexpreoptDisabled(ctx, libName) {
return true
}
if ctx.Config().UncompressPrivAppDex() &&
inList(ctx.ModuleName(), ctx.Config().ModulesLoadedByPrivilegedModules()) {
return true