Set default value of generate_hashtree property to true

Test: presubmit
Test: m
Bug: 190621617
Change-Id: I546730f168632c5d5d41c686853bde93a8ba7911
Merged-In: I546730f168632c5d5d41c686853bde93a8ba7911
(cherry picked from commit e261ae64e2d72f6b7fab29f513ba00ca50e2ba24)
This commit is contained in:
Nikita Ioffe 2021-06-16 18:15:03 +01:00
parent 95a4bedc68
commit cd3654f9fe
1 changed files with 2 additions and 3 deletions

View File

@ -166,8 +166,7 @@ type apexBundleProperties struct {
Ignore_system_library_special_case *bool
// Whenever apex_payload.img of the APEX should include dm-verity hashtree.
// Default value is false.
// TODO(b/190621617): change default value to true.
// Default value is true.
Generate_hashtree *bool
// Whenever apex_payload.img of the APEX should not be dm-verity signed. Should be only
@ -1271,7 +1270,7 @@ func (a *apexBundle) installable() bool {
// See the generate_hashtree property
func (a *apexBundle) shouldGenerateHashtree() bool {
return proptools.BoolDefault(a.properties.Generate_hashtree, false)
return proptools.BoolDefault(a.properties.Generate_hashtree, true)
}
// See the test_only_unsigned_payload property