From 8bd3afe68c2670db7a39c7730a605d4b17c94122 Mon Sep 17 00:00:00 2001 From: Justin Yun Date: Fri, 12 May 2023 15:53:06 +0900 Subject: [PATCH] VSDK: etc snapshot may have sub_dir for relative_install_path prebuilt_etc may use sub_dir property to define a relative install path. Use SubDir() to read either sub_dir or relative_install_path property. Bug: 282080219 Test: m vendor-image Change-Id: I07a21c5aeb87b403854ed32976d26e70b046b8c1 --- etc/prebuilt_etc.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/etc/prebuilt_etc.go b/etc/prebuilt_etc.go index 6817dcef0..3e1bbded6 100644 --- a/etc/prebuilt_etc.go +++ b/etc/prebuilt_etc.go @@ -652,9 +652,7 @@ func generatePrebuiltSnapshot(s snapshot.SnapshotSingleton, ctx android.Singleto prop := snapshot.SnapshotJsonFlags{} propOut := snapshotLibOut + ".json" prop.InitBaseSnapshotProps(m) - if m.subdirProperties.Relative_install_path != nil { - prop.RelativeInstallPath = *m.subdirProperties.Relative_install_path - } + prop.RelativeInstallPath = m.SubDir() if m.properties.Filename != nil { prop.Filename = *m.properties.Filename