Merge "Ignore some prebuilt vndk libs for trunk-stable next" into main

This commit is contained in:
Alex Buynytskyy
2023-08-18 17:51:23 +00:00
committed by Gerrit Code Review
3 changed files with 21 additions and 3 deletions

View File

@@ -80,6 +80,10 @@ func apexVndkMutator(mctx android.TopDownMutatorContext) {
// config targets the 'current' VNDK (see `vndkVersion`).
ab.Disable()
}
if proptools.String(ab.vndkProperties.Vndk_version) != "" &&
apiLevel.GreaterThanOrEqualTo(android.ApiLevelOrPanic(mctx, mctx.DeviceConfig().PlatformVndkVersion())) {
ab.Disable()
}
}
}