diff options
| author | 2019-02-06 16:37:12 -0800 | |
|---|---|---|
| committer | 2019-02-07 08:56:02 -0800 | |
| commit | 083a2aa52df1c04b20103f3f6cf55631293e4500 (patch) | |
| tree | e7b8294e28a8d07f6e4665963b57b00603f86f62 /java/java.go | |
| parent | 6e8fe6feb16ee95187d37cfe8084d46290f0e826 (diff) | |
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
Diffstat (limited to 'java/java.go')
| -rw-r--r-- | java/java.go | 5 |
1 files changed, 5 insertions, 0 deletions
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 } |