Generate boot image profiles even if dexpreopt is disabled.
Bug: 280440941 Test: - 1. Patch ag/22302622 to disable dexpreopt. 2. See boot image profiles still generated. Change-Id: I1bf05ade53fa83f3dba46f28a8f9246ba1fdf664
This commit is contained in:
@@ -174,3 +174,10 @@ func FixtureDisableGenerateProfile(disable bool) android.FixturePreparer {
|
||||
dexpreoptConfig.DisableGenerateProfile = disable
|
||||
})
|
||||
}
|
||||
|
||||
// FixtureDisableDexpreoptBootImages sets the DisablePreoptBootImages property in the global config.
|
||||
func FixtureDisableDexpreoptBootImages(disable bool) android.FixturePreparer {
|
||||
return FixtureModifyGlobalConfig(func(_ android.PathContext, dexpreoptConfig *GlobalConfig) {
|
||||
dexpreoptConfig.DisablePreoptBootImages = disable
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user