diff options
author | 2024-11-07 16:21:53 -0800 | |
---|---|---|
committer | 2024-11-07 16:26:33 -0800 | |
commit | 23ba876158208d3537f9b8514cd5bc49c98d5886 (patch) | |
tree | 516947520dbfe7abad9110a65cd8ee2392edce4a /android/config.go | |
parent | e130f47f7fd0061843146ffbbdd4fa78661bbffe (diff) |
Auto generate userdata.img
Test: CI and unit tests
Bug: 377563861
Change-Id: I42582db31377600412d2acf0dceab5ee9e15bc58
Diffstat (limited to 'android/config.go')
-rw-r--r-- | android/config.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/android/config.go b/android/config.go index d9db64ef6..10bddf7cc 100644 --- a/android/config.go +++ b/android/config.go @@ -1599,6 +1599,17 @@ func (c *deviceConfig) OemPath() string { return "oem" } +func (c *deviceConfig) UserdataPath() string { + if c.config.productVariables.UserdataPath != nil { + return *c.config.productVariables.UserdataPath + } + return "data" +} + +func (c *deviceConfig) BuildingUserdataImage() bool { + return proptools.Bool(c.config.productVariables.BuildingUserdataImage) +} + func (c *deviceConfig) BtConfigIncludeDir() string { return String(c.config.productVariables.BtConfigIncludeDir) } |