Install current VNDK libs to the versioned directories.
If PLATFORM_VNDK_VERSION has a version $VER other than "current",
install current VNDK libs to /system/lib[64]/vndk[-sp]-$VER.
Otherwise, they will be installed to /system/lib[64]/vndk[-sp].
Bug: 69883025
Test: device boot
Change-Id: Ifa8564f39687dab5b407bf2178b13022625a94f3
diff --git a/android/config.go b/android/config.go
index 16870f1..bf8edca 100644
--- a/android/config.go
+++ b/android/config.go
@@ -648,6 +648,10 @@
return String(c.config.ProductVariables.DeviceVndkVersion)
}
+func (c *deviceConfig) PlatformVndkVersion() string {
+ return String(c.config.ProductVariables.Platform_vndk_version)
+}
+
func (c *deviceConfig) ExtraVndkVersions() []string {
return c.config.ProductVariables.ExtraVndkVersions
}