Merge "Make privileged java_library modules use uncompressed dex"

am: 89ba9715ef

Change-Id: I8d6f5a8ada04691c56bc4dfe72157e640ac7ec7c
This commit is contained in:
Colin Cross
2019-02-07 18:39:12 -08:00
committed by android-build-merger

View File

@@ -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
}