Merge "Fix: install flattened apex on system_ext"

This commit is contained in:
Jooyung Han
2019-11-27 07:30:54 +00:00
committed by Gerrit Code Review
3 changed files with 44 additions and 33 deletions

View File

@@ -178,7 +178,7 @@ func apexFlattenedMutator(mctx android.BottomUpMutatorContext) {
modules[i].(*apexBundle).properties.ApexType = zipApex
case flattenedApexType:
modules[i].(*apexBundle).properties.ApexType = flattenedApex
if !mctx.Config().FlattenApex() {
if !mctx.Config().FlattenApex() && ab.Platform() {
modules[i].(*apexBundle).MakeAsSystemExt()
}
}