diff --git a/java/java.go b/java/java.go index 22829e407..3d7d6ad8d 100644 --- a/java/java.go +++ b/java/java.go @@ -1423,6 +1423,11 @@ func (j *Library) shouldUncompressDex(ctx android.ModuleContext) bool { android.DirectlyInAnyApex(ctx, ctx.ModuleName()) { return true } + if ctx.Config().UncompressPrivAppDex() && + inList(ctx.ModuleName(), ctx.Config().ModulesLoadedByPrivilegedModules()) { + return true + } + return false }