Merge "Fix recovery-variant VNDK libs miss-installed to recovery img"

am: 52644cb29a

Change-Id: I05db8d67248c11dce6a04d90ae53705ddc3f9228
This commit is contained in:
yidong.zhang 2019-08-05 15:20:49 -07:00 committed by android-build-merger
commit 263802ebda

View file

@ -1898,7 +1898,7 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
isVendorPublicLib := inList(libName, *vendorPublicLibraries)
bothVendorAndCoreVariantsExist := ccDep.hasVendorVariant() || isLLndk
if ctx.DeviceConfig().VndkUseCoreVariant() && ccDep.isVndk() && !ccDep.mustUseVendorVariant() {
if ctx.DeviceConfig().VndkUseCoreVariant() && ccDep.isVndk() && !ccDep.mustUseVendorVariant() && !c.inRecovery() {
// The vendor module is a no-vendor-variant VNDK library. Depend on the
// core module instead.
return libName