diff options
author | Dario Freni <dariofreni@google.com> | 2020-04-27 18:21:11 +0100 |
---|---|---|
committer | Dario Freni <dariofreni@google.com> | 2020-04-27 20:52:09 +0100 |
commit | 98410fd9d66a3717a1b0d52b68071821d11e6302 (patch) | |
tree | 49f193c1550a2b9c5883f03d96ab04e25bd45b3f /apex/builder.go | |
parent | 0b848b01e8e6ba3b612262cbd7af9775a098c113 (diff) | |
download | build_soong-98410fd9d66a3717a1b0d52b68071821d11e6302.tar.gz build_soong-98410fd9d66a3717a1b0d52b68071821d11e6302.tar.bz2 build_soong-98410fd9d66a3717a1b0d52b68071821d11e6302.zip |
Allow building unsigned APEXs payload for testing.
Bug: 148447155
Test: built a testing apex with unsigned payload.
Change-Id: I95aa3f11ff1adc1421fcd7ed5a356ee531a0a818
Diffstat (limited to 'apex/builder.go')
-rw-r--r-- | apex/builder.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apex/builder.go b/apex/builder.go index f84d426b..9ef1e0d8 100644 --- a/apex/builder.go +++ b/apex/builder.go @@ -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. |