Make privileged java_library modules use uncompressed dex

Check java_library modules against ModulesLoadedByPrivilegedModules
to determine whether to uncompress the dex files in them.

Test: m checkbuild
Change-Id: I77ee456d55bec65c8b4c82e9bd38f344212e6140
This commit is contained in:
Colin Cross 2019-02-06 16:37:12 -08:00
parent 6e8fe6feb1
commit 083a2aa52d
1 changed files with 5 additions and 0 deletions

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
}