Conditionally pass kernel version to build.prop
This is to replicate Makefile's behavior as-is.
Bug: 322090587
Test: build and compare build command
Change-Id: Ib9ebec920701ea561a007bf2a1ae092ae1b4ff28
diff --git a/android/config.go b/android/config.go
index 92aae7e..5f2307c 100644
--- a/android/config.go
+++ b/android/config.go
@@ -2081,3 +2081,7 @@
func (c *config) SystemPropFiles(ctx PathContext) Paths {
return PathsForSource(ctx, c.productVariables.SystemPropFiles)
}
+
+func (c *config) EnableUffdGc() string {
+ return String(c.productVariables.EnableUffdGc)
+}