From 7b85eeb41ef3e6d2cf44558d3f54f9ed1b247036 Mon Sep 17 00:00:00 2001 From: Inseob Kim Date: Tue, 23 Mar 2021 20:52:24 +0900 Subject: [PATCH] Add WithDexpreopt soong variable Test: m selinux_policy on sc-arc Change-Id: I9e8ba5746e4648a04fe4d8fbe5d3403ba06b5914 --- android/config.go | 4 ++++ android/variable.go | 2 ++ 2 files changed, 6 insertions(+) diff --git a/android/config.go b/android/config.go index 0de8928a0..e335de008 100644 --- a/android/config.go +++ b/android/config.go @@ -1005,6 +1005,10 @@ func (c *config) DexpreoptGlobalConfig(ctx PathContext) ([]byte, error) { return ioutil.ReadFile(absolutePath(path.String())) } +func (c *deviceConfig) WithDexpreopt() bool { + return c.config.productVariables.WithDexpreopt +} + func (c *config) FrameworksBaseDirExists(ctx PathContext) bool { return ExistentPathForSource(ctx, "frameworks", "base", "Android.bp").Valid() } diff --git a/android/variable.go b/android/variable.go index 776a5c728..2ab51c74a 100644 --- a/android/variable.go +++ b/android/variable.go @@ -341,6 +341,8 @@ type productVariables struct { DexpreoptGlobalConfig *string `json:",omitempty"` + WithDexpreopt bool `json:",omitempty"` + ManifestPackageNameOverrides []string `json:",omitempty"` CertificateOverrides []string `json:",omitempty"` PackageNameOverrides []string `json:",omitempty"`