Merge "Don't dexpreopt APEX variant modules"

This commit is contained in:
Yo Chiang 2020-01-13 03:15:50 +00:00 committed by Gerrit Code Review
commit 72d009e1ec
1 changed files with 5 additions and 0 deletions

View File

@ -85,6 +85,11 @@ func (d *dexpreopter) dexpreoptDisabled(ctx android.ModuleContext) bool {
return true
}
// Don't preopt APEX variant module
if am, ok := ctx.Module().(android.ApexModule); ok && !am.IsForPlatform() {
return true
}
// TODO: contains no java code
return false