Do not install vndk lib

VNDK libs are installed as part of VNDK APEX, so we don't need to
install them at all.

Bug: 170711679
Test: m
Change-Id: I62b881d6e65d6b007db1d26ab314c140c60e8a4e
This commit is contained in:
Jooyung Han
2020-10-20 18:54:21 +09:00
parent 81498621d3
commit 261e158c06
5 changed files with 27 additions and 40 deletions

View File

@@ -201,21 +201,7 @@ func (p *vndkPrebuiltLibraryDecorator) isSnapshotPrebuilt() bool {
}
func (p *vndkPrebuiltLibraryDecorator) install(ctx ModuleContext, file android.Path) {
arches := ctx.DeviceConfig().Arches()
if len(arches) == 0 || arches[0].ArchType.String() != p.arch() {
return
}
if ctx.DeviceConfig().BinderBitness() != p.binderBit() {
return
}
if p.shared() {
if ctx.isVndkSp() {
p.baseInstaller.subDir = "vndk-sp-" + p.version()
} else if ctx.isVndk() {
p.baseInstaller.subDir = "vndk-" + p.version()
}
p.baseInstaller.install(ctx, file)
}
// do not install vndk libs
}
func vndkPrebuiltSharedLibrary() *Module {