Tao Bao
e6f267c4f3
Merge "releasetools: Use delta_generator to verify payload signatures." am: e58d385df1
...
am: cbece24e6e
Change-Id: Id7dff799f84acc58008544b48e8b79d9cc2a1c21
2017-12-15 23:49:43 +00:00
Tao Bao
cbece24e6e
Merge "releasetools: Use delta_generator to verify payload signatures."
...
am: e58d385df1
Change-Id: I05be81115723eae838fce5a4a2d6e75b163bc769
2017-12-15 23:45:06 +00:00
Treehugger Robot
e58d385df1
Merge "releasetools: Use delta_generator to verify payload signatures."
2017-12-15 23:38:12 +00:00
Dan Shi
638fdf443b
Merge "Create build artifact tradefed-tests_list.zip" am: 8c2007cf4d
...
am: f23aa88514
Change-Id: Icb61400f9c88588fecf557155987dceff89827e6
2017-12-15 23:36:06 +00:00
Dan Shi
f23aa88514
Merge "Create build artifact tradefed-tests_list.zip"
...
am: 8c2007cf4d
Change-Id: If25c0ca75e49ae40af6eaa195019103841ee67d3
2017-12-15 23:32:58 +00:00
Treehugger Robot
8c2007cf4d
Merge "Create build artifact tradefed-tests_list.zip"
2017-12-15 23:25:01 +00:00
Colin Cross
0b451358b9
Revert "Revert "Support <dir>:<file> for LOCAL_JAVA_RESOURCE_FILES""
...
am: fcb0d149b4
-s ours
Change-Id: Ife7b7c8a6734b6141dfbd12d0891c96754cb87cd
2017-12-15 23:04:21 +00:00
Tao Bao
b1cc1ed1a7
Merge "releasetools: Remove the support for generating verify package." am: e2ffc8b887
...
am: 12fafaccc0
Change-Id: I06cf6990379e5e92c33a151bdc6a96ca6fbb7528
2017-12-15 22:08:56 +00:00
Tao Bao
12fafaccc0
Merge "releasetools: Remove the support for generating verify package."
...
am: e2ffc8b887
Change-Id: I246ca42beb66e40a32af6dbfd5da61bcf4963433
2017-12-15 22:06:15 +00:00
Tao Bao
e2ffc8b887
Merge "releasetools: Remove the support for generating verify package."
2017-12-15 22:00:06 +00:00
Dan Albert
b86ff3828a
Merge "Revert "Default NDK modules to libc++_shared."" am: aec47c67cd
...
am: 041ea591ae
Change-Id: I62e2cdbe3d88a60898140700e410f11592c48415
2017-12-15 21:51:39 +00:00
Dan Albert
041ea591ae
Merge "Revert "Default NDK modules to libc++_shared.""
...
am: aec47c67cd
Change-Id: I87389aaa55fea26377441341c37e7cf5bcf4a71b
2017-12-15 21:46:32 +00:00
Treehugger Robot
aec47c67cd
Merge "Revert "Default NDK modules to libc++_shared.""
2017-12-15 21:39:29 +00:00
Tao Bao
750385e455
releasetools: Use delta_generator to verify payload signatures.
...
We used to take a hard approach by parsing the payload with Python
script. This can be done by calling deleta_generator directly, which
also avoids the dependency on protobuf.
- Passing case
$ ./build/make/tools/releasetools/check_ota_package_signature.py \
build/target/product/security/testkey.x509.pem \
out/dist/aosp_marlin-ota-eng.zip
Package: out/dist/aosp_marlin-ota-eng.zip
Certificate: build/target/product/security/testkey.x509.pem
...
Whole package signature VERIFIED
Verifying A/B OTA payload signatures...
[1215/122842:INFO:generate_delta_main.cc(171)] Verifying signed payload.
[1215/122845:INFO:payload_verifier.cc(93)] signature blob size = 264
[1215/122845:INFO:payload_verifier.cc(112)] Verified correct signature 1 out of 1 signatures.
[1215/122845:INFO:payload_verifier.cc(93)] signature blob size = 264
[1215/122845:INFO:payload_verifier.cc(112)] Verified correct signature 1 out of 1 signatures.
[1215/122845:INFO:generate_delta_main.cc(181)] Done verifying signed payload.
Payload signatures VERIFIED
$ echo $?
0
- Failing case
Sign the whole package file with a different key, but leaving payload entries intact.
$ ./build/make/tools/releasetools/check_ota_package_signature.py \
testkey2.x509.pem \
marlin-ota-mismatching.zip
Package: marlin-ota-mismatching.zip
Certificate: testkey2.x509.pem
...
Whole package signature VERIFIED
Verifying A/B OTA payload signatures...
[1215/123054:INFO:generate_delta_main.cc(171)] Verifying signed payload.
[1215/123056:INFO:payload_verifier.cc(93)] signature blob size = 264
[1215/123056:ERROR:payload_verifier.cc(118)] None of the 1 signatures is correct. Expected:
[1215/123056:INFO:utils.cc(444)] Logging array of length: 256
[1215/123056:INFO:utils.cc(461)] 0x00000000 : 00 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff
...
[1215/123056:ERROR:payload_verifier.cc(121)] But found decrypted hashes:
[1215/123056:INFO:utils.cc(444)] Logging array of length: 256
[1215/123056:INFO:utils.cc(461)] 0x00000000 : 52 68 78 36 f6 9e cd 2d 5e 9f 31 d5 26 03 c9 aa
...
[1215/123056:ERROR:payload_signer.cc(333)] PayloadVerifier::VerifySignature( signature_blob, public_key_path, payload_hash) failed.
[1215/123056:INFO:generate_delta_main.cc(177)] VerifySignedPayload failed
ERROR: Failed to verify payload with delta_generator: marlin-ota-mismatching.zip
$ echo $?
1
Bug: 65261072
Test: See above.
Change-Id: Id2e065655ec49b80dd2b13c6a859f41913be055b
2017-12-15 12:45:09 -08:00
Steven Moreland
a36a56b101
Merge "Remove Treble from soong_config.mk" am: b982d8b7ae
...
am: c4ee99f4ca
Change-Id: I2c5aa73b40e73951b57bfda52382eaeaab756788
2017-12-15 20:19:51 +00:00
Colin Cross
fcb0d149b4
Revert "Revert "Support <dir>:<file> for LOCAL_JAVA_RESOURCE_FILES""
...
This reverts commit 15a2fa21a8
.
This reapplies I83f3d45bdd156200308dc7ed0e0fea5d895d37a6 without
the error on absolute paths if they are in $(OUT_DIR).
BUG: 68305853
Test: OUT_DIR=/tmp/out mmma -j art/tools/ahat
Change-Id: Ia0b156d21ba4b95eb3004d61f6fae2f4341fd39c
Merged-In: Ia0b156d21ba4b95eb3004d61f6fae2f4341fd39c
2017-12-15 20:19:38 +00:00
Steven Moreland
c4ee99f4ca
Merge "Remove Treble from soong_config.mk"
...
am: b982d8b7ae
Change-Id: I50c9400d9fb620d509304af58fc908fe2099e870
2017-12-15 20:14:44 +00:00
Treehugger Robot
b982d8b7ae
Merge "Remove Treble from soong_config.mk"
2017-12-15 20:07:21 +00:00
Dan Albert
37099686c0
Revert "Default NDK modules to libc++_shared."
...
This reverts commit 6168f5baf1
.
Reason for revert: http://b/70718590
Change-Id: I3e7afe3d1642260c2b5103cb07c636b0b5d72379
2017-12-15 20:01:03 +00:00
Joe Onorato
b1eab6100d
Merge "When compiling with the lite protobuf option, pass the option to aprotoc to force the lite runtime." am: fa839296ea
...
am: 3f443418f7
-s ours
Change-Id: I920d8c41d293b19936946d91d0c78fc72c71b0ad
2017-12-15 19:53:18 +00:00
Joe Onorato
3f443418f7
Merge "When compiling with the lite protobuf option, pass the option to aprotoc to force the lite runtime."
...
am: fa839296ea
Change-Id: Ibc8c2d2236d0b8cc1d77f741784a323171a07db5
2017-12-15 19:47:17 +00:00
Joe Onorato
fa839296ea
Merge "When compiling with the lite protobuf option, pass the option to aprotoc to force the lite runtime."
2017-12-15 19:39:46 +00:00
Bo Hu
3c3992fbb3
Merge "emulator: disable location service" am: d9ee7467fd
...
am: 02ade23601
Change-Id: Ida38d9bc82d6e61cc3bc6db5550bfb084012ccfd
2017-12-15 19:26:08 +00:00
Bo Hu
02ade23601
Merge "emulator: disable location service"
...
am: d9ee7467fd
Change-Id: Ic4ff286f53ebba8fd295d825361b8cc0fc4547d6
2017-12-15 19:22:07 +00:00
Bo Hu
d9ee7467fd
Merge "emulator: disable location service"
2017-12-15 19:14:20 +00:00
Yifan Hong
23373452d4
Merge changes from topic "fcm_version" am: b1b5a0969b
...
am: 5ac5e6b757
Change-Id: I5e11aa05336756b2756cb19ae8fec94ca696c2c9
2017-12-15 19:13:04 +00:00
Yifan Hong
5ac5e6b757
Merge changes from topic "fcm_version"
...
am: b1b5a0969b
Change-Id: I5f5471a58dd5d309c7b446d0ae3910993d47e239
2017-12-15 19:05:07 +00:00
Yifan Hong
b1b5a0969b
Merge changes from topic "fcm_version"
...
* changes:
Move fwk comp mat level logic into assemble_vintf
PRODUCT_COMPATIBILITY_MATRIX_LEVEL_OVERRIDE is deprecated.
2017-12-15 18:58:34 +00:00
Yifan Hong
d2c5a38dcb
Merge "Rename VINTF XML module names" am: d8d276c5a6
...
am: fcdf772f67
Change-Id: Ic16692b74336cf7019b022b83c88921c756a0fe7
2017-12-15 18:57:28 +00:00
Yifan Hong
fcdf772f67
Merge "Rename VINTF XML module names"
...
am: d8d276c5a6
Change-Id: If375ca187bffd24b7534e84d513c89a756be2b67
2017-12-15 18:53:52 +00:00
Treehugger Robot
d8d276c5a6
Merge "Rename VINTF XML module names"
2017-12-15 18:46:20 +00:00
Steven Moreland
60b0f06d9b
Remove Treble from soong_config.mk
...
This variable has been broken up into smaller components.
Bug: 62019611
Test: nothing uses it
Change-Id: Ic985e42179df24a43d9a0d0047a31ecd3bf35ec7
2017-12-15 10:26:52 -08:00
Tao Bao
0c6a414fff
releasetools: Remove the support for generating verify package.
...
We used to have "--gen_verify" that would generate a verify package for
non-A/B devices. Since a) we don't have active users; b) it works with
non-A/B only; c) we have better alternatives (e.g. using fastboot to
compute the partition checksum), this CL removes the support.
Test: `m dist`
Change-Id: Ib4a2c8c2a0394b54e66c106089aa52a0b900f034
2017-12-15 10:20:52 -08:00
Steven Moreland
7c78b36d96
Merge "Expose Treble requirement variables in Soong." am: 4b7ab33f4e
...
am: 3b6bec05b2
Change-Id: Ib059e3fe14412178dde620d15f814021bb5cd5f5
2017-12-15 17:51:12 +00:00
Steven Moreland
3b6bec05b2
Merge "Expose Treble requirement variables in Soong."
...
am: 4b7ab33f4e
Change-Id: If46731ff8cab13b209869c0f8f315239a39cf837
2017-12-15 17:45:43 +00:00
Treehugger Robot
4b7ab33f4e
Merge "Expose Treble requirement variables in Soong."
2017-12-15 17:41:28 +00:00
Tao Bao
30e4e2d154
Merge "releasetools: Add common.ZipDelete()." am: 23f7ea9e70
...
am: 2bc1b967c1
Change-Id: I83f428a689f970b6df5ee332115a8f5ee51b4fd1
2017-12-15 16:45:25 +00:00
Tao Bao
2bc1b967c1
Merge "releasetools: Add common.ZipDelete()."
...
am: 23f7ea9e70
Change-Id: I3a7d811a3b7589d324168c0c6afaf62438fda5b5
2017-12-15 16:42:50 +00:00
Joe Onorato
bfc7811441
When compiling with the lite protobuf option, pass the option to aprotoc to force the lite runtime.
...
With LOCAL_PROTO_OPTIMIZE_TYPE set to one of the lite variants, the build system thinks
the proto should be compiled with lite, and will link in the line runtime libs. But if
the .proto files don't contain the directive to compile the source as lite
(option optimize_for = LITE_RUNTIME;), then the generated code will be full and the
libraries will be full, and it won't link.
Test: make
Merged-In: Ib8a135218d62fa42fa6448c49c97f7aeb2755c42
Change-Id: Ib8a135218d62fa42fa6448c49c97f7aeb2755c42
2017-12-15 08:40:48 -08:00
Tao Bao
23f7ea9e70
Merge "releasetools: Add common.ZipDelete()."
2017-12-15 16:36:55 +00:00
Søren Gjesse
db48a0fccc
Merge "Revert "Enable R8 by default (second attempt)"" am: adcd4c761d
...
am: a2e6d78ce6
Change-Id: I2c44fd88ff47eacd0f3696624484f866b0122357
2017-12-15 15:39:16 +00:00
Søren Gjesse
a2e6d78ce6
Merge "Revert "Enable R8 by default (second attempt)""
...
am: adcd4c761d
Change-Id: Ifa538a0985548e5188601045131022ecfe50bcf8
2017-12-15 15:33:08 +00:00
Søren Gjesse
adcd4c761d
Merge "Revert "Enable R8 by default (second attempt)""
2017-12-15 15:27:16 +00:00
Søren Gjesse
cd13676221
Revert "Enable R8 by default (second attempt)"
...
This reverts commit f2a697725c
.
Reason for revert: b/70710434
Change-Id: Ia6d42e4c2fc7e7a4ca67d42d7aaa57ab95c2cc9a
2017-12-15 15:18:57 +00:00
Søren Gjesse
529d047513
Merge "Enable R8 by default (second attempt)" am: 837408b4ca
...
am: f692713515
Change-Id: I11ce3614226ced16b0e8d335e2e394e0c22f3501
2017-12-15 11:15:28 +00:00
Søren Gjesse
f692713515
Merge "Enable R8 by default (second attempt)"
...
am: 837408b4ca
Change-Id: I1fb287f61cedbf1875c57b1d821b1179141bf950
2017-12-15 11:10:26 +00:00
Søren Gjesse
837408b4ca
Merge "Enable R8 by default (second attempt)"
2017-12-15 11:05:25 +00:00
TreeHugger Robot
85dcb56652
Merge "When compiling with the lite protobuf option, pass the option to aprotoc to force the lite runtime." into oc-mr1-dev-plus-aosp
2017-12-15 05:35:56 +00:00
Joe Onorato
3de3a74659
When compiling with the lite protobuf option, pass the option to aprotoc to force the lite runtime.
...
With LOCAL_PROTO_OPTIMIZE_TYPE set to one of the lite variants, the build system thinks
the proto should be compiled with lite, and will link in the line runtime libs. But if
the .proto files don't contain the directive to compile the source as lite
(option optimize_for = LITE_RUNTIME;), then the generated code will be full and the
libraries will be full, and it won't link.
Test: make
Merged-In: Ib8a135218d62fa42fa6448c49c97f7aeb2755c42
Change-Id: Ib8a135218d62fa42fa6448c49c97f7aeb2755c42
2017-12-14 19:58:43 -08:00
Dan Albert
9bd305948d
Merge "Default NDK modules to libc++_shared." am: 587ced4a80
...
am: 1316e40597
Change-Id: Ibb40392071cfba45b1a20b07c73762111841a77d
2017-12-15 02:39:12 +00:00