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
}
diff --git a/android/variable.go b/android/variable.go
index ab8103a..6815438 100644
--- a/android/variable.go
+++ b/android/variable.go
@@ -111,6 +111,7 @@
Platform_sdk_final *bool `json:",omitempty"`
Platform_version_active_codenames []string `json:",omitempty"`
Platform_version_future_codenames []string `json:",omitempty"`
+ Platform_vndk_version *string `json:",omitempty"`
DeviceName *string `json:",omitempty"`
DeviceArch *string `json:",omitempty"`