Merge "Skip llndk_library and llndk_headers for vendor snapshot" am: f856693344 am: 8022defd7a am: 5a7d5a2667

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1379876

Change-Id: I3c7e0b6e98b87105b16a9a38a7cc6e565553e0ba
diff --git a/cc/vendor_snapshot.go b/cc/vendor_snapshot.go
index fec0c8b..0af2258 100644
--- a/cc/vendor_snapshot.go
+++ b/cc/vendor_snapshot.go
@@ -552,6 +552,13 @@
 	if _, ok := m.linker.(*kernelHeadersDecorator); ok {
 		return false
 	}
+	// skip llndk_library and llndk_headers which are backward compatible
+	if _, ok := m.linker.(*llndkStubDecorator); ok {
+		return false
+	}
+	if _, ok := m.linker.(*llndkHeadersDecorator); ok {
+		return false
+	}
 
 	// Libraries
 	if l, ok := m.linker.(snapshotLibraryInterface); ok {