Loading apex/apex.go +8 −0 Original line number Diff line number Diff line Loading @@ -1162,6 +1162,10 @@ type apexBundleProperties struct { // Should be only used in tests#. Test_only_no_hashtree *bool // Whenever apex_payload.img of the APEX should not be dm-verity signed. // Should be only used in tests#. Test_only_unsigned_payload *bool IsCoverageVariant bool `blueprint:"mutated"` // Whether this APEX is considered updatable or not. When set to true, this will enforce additional Loading Loading @@ -1653,6 +1657,10 @@ func (a *apexBundle) testOnlyShouldSkipHashtreeGeneration() bool { return proptools.Bool(a.properties.Test_only_no_hashtree) } func (a *apexBundle) testOnlyShouldSkipPayloadSign() bool { return proptools.Bool(a.properties.Test_only_unsigned_payload) } func (a *apexBundle) getImageVariation(config android.DeviceConfig) string { if a.vndkApex { return cc.VendorVariationPrefix + a.vndkVersion(config) Loading apex/builder.go +4 −0 Original line number Diff line number Diff line Loading @@ -484,6 +484,10 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) { optFlags = append(optFlags, "--no_hashtree") } if a.testOnlyShouldSkipPayloadSign() { optFlags = append(optFlags, "--unsigned_payload") } if a.properties.Apex_name != nil { // If apex_name is set, apexer can skip checking if key name matches with apex name. // Note that apex_manifest is also mended. Loading Loading
apex/apex.go +8 −0 Original line number Diff line number Diff line Loading @@ -1162,6 +1162,10 @@ type apexBundleProperties struct { // Should be only used in tests#. Test_only_no_hashtree *bool // Whenever apex_payload.img of the APEX should not be dm-verity signed. // Should be only used in tests#. Test_only_unsigned_payload *bool IsCoverageVariant bool `blueprint:"mutated"` // Whether this APEX is considered updatable or not. When set to true, this will enforce additional Loading Loading @@ -1653,6 +1657,10 @@ func (a *apexBundle) testOnlyShouldSkipHashtreeGeneration() bool { return proptools.Bool(a.properties.Test_only_no_hashtree) } func (a *apexBundle) testOnlyShouldSkipPayloadSign() bool { return proptools.Bool(a.properties.Test_only_unsigned_payload) } func (a *apexBundle) getImageVariation(config android.DeviceConfig) string { if a.vndkApex { return cc.VendorVariationPrefix + a.vndkVersion(config) Loading
apex/builder.go +4 −0 Original line number Diff line number Diff line Loading @@ -484,6 +484,10 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) { optFlags = append(optFlags, "--no_hashtree") } if a.testOnlyShouldSkipPayloadSign() { optFlags = append(optFlags, "--unsigned_payload") } if a.properties.Apex_name != nil { // If apex_name is set, apexer can skip checking if key name matches with apex name. // Note that apex_manifest is also mended. Loading