Merge "Revert "Supports VNDK APEX with different versions""

This commit is contained in:
Treehugger Robot
2019-10-17 11:50:47 +00:00
committed by Gerrit Code Review
6 changed files with 98 additions and 291 deletions

View File

@@ -488,6 +488,15 @@ func (c *Module) RelativeInstallPath() string {
return ""
}
// IsVndkOnSystem returns true if a module is supposed to be a vndk library provided by system to vendor
func (c *Module) IsVndkOnSystem() bool {
if linker, ok := c.linker.(libraryInterface); ok {
return linker.shared() && c.isVndk() && c.useVndk() && !c.isVndkExt()
}
return false
}
func (c *Module) VndkVersion() string {
return c.vndkVersion()
}