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

Commit 083a2aa5 authored by Colin Cross's avatar Colin Cross
Browse files

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
parent 6e8fe6fe
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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
}