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
diff --git a/cc/vndk.go b/cc/vndk.go
index 981e039..b05b856 100644
--- a/cc/vndk.go
+++ b/cc/vndk.go
@@ -540,6 +540,9 @@
if m.Target().NativeBridge == android.NativeBridgeEnabled {
return nil, "", false
}
+ // !inVendor: There's product/vendor variants for VNDK libs. We only care about vendor variants.
+ // !installable: Snapshot only cares about "installable" modules.
+ // isSnapshotPrebuilt: Snapshotting a snapshot doesn't make sense.
if !m.inVendor() || !m.installable(apexInfo) || m.isSnapshotPrebuilt() {
return nil, "", false
}