Commit Graph

4581 Commits

Author SHA1 Message Date
Chih-hung Hsieh 205eac92ea Merge "Emit a table of warnings by project and severity." am: 029ced528b am: ecbfa77903
am: 74a9e76175

Change-Id: I79075e55329c0c04e90de9a10d8b036c5d776f82
2016-09-14 16:57:14 +00:00
Chih-hung Hsieh 74a9e76175 Merge "Emit a table of warnings by project and severity." am: 029ced528b
am: ecbfa77903

Change-Id: Idb0cceaf1d3476e08879f1cba9986bce6ec3376b
2016-09-14 16:54:45 +00:00
Chih-hung Hsieh 029ced528b Merge "Emit a table of warnings by project and severity." 2016-09-14 16:39:27 +00:00
Chih-Hung Hsieh e41c99b721 Emit a table of warnings by project and severity.
* Use 't1' CSS class for main warning tables,
  and default table style for new warning count table.
* Count total skipped warnings.
* Append count of warnings in each severity header.
* Fix some skipped warning patterns and count/dump skipped warnings.
* Add dumpskippedanchors function to fix expand_collapse
  error when --byproject flag is used and severity.SKIP
  is not emitted.
* Minor coding style changes:
  * Loop through severity.kinds.
  * Remove unused import.
  * Add spaces around assignment operators.
  * Adjust indentation.

Bug: 31377083
Test: run warn.py with build.log
Change-Id: I68949edc4601b10ea2f7ac84e48e6c3da4ab1e4f
2016-09-13 10:18:01 -07:00
Dan Willemsen d111debc18 resolve merge conflicts of 8dadc2d to nyc-mr1-dev-plus-aosp
Change-Id: I296a81c17f9311a9425619141e1b5f5f5fb4c0dc
2016-09-12 21:43:19 -07:00
Dan Willemsen 8dadc2d2e6 Merge "Remove incremental workaround for aapt overlays" am: 946e58bdff
am: cd573e3aef

Change-Id: I7f90596676af64202fe17f76beb49f0a61a0dc1b
2016-09-13 04:38:22 +00:00
Dan Willemsen 8e6e6fdba9 Remove incremental workaround for aapt overlays
This workaround to clean package intermediates is no longer necessary,
as ninja reruns commands whose command line changes.

Test: switch between product overlays that use add-resource, verify
      R.java is regenerated.
Change-Id: Icb1f76360e39882e4401180414a031956777b020
2016-09-12 20:30:12 -07:00
smain@google.com 0070d17b04 add support for constraint layout's DATA list am: 7055897faa
am: bca27e5836

Change-Id: I9689cfe6088637a6702d8bee52835eb7ff19a33c
2016-09-10 01:37:52 +00:00
smain@google.com bca27e5836 add support for constraint layout's DATA list
am: 7055897faa

Change-Id: Ibce59cf7867e6a197a39873453dae8336419e233
2016-09-10 01:33:17 +00:00
Scott Main 64bd41ff7d Merge "add support for constraint layout's DATA list" into nyc-dev 2016-09-10 01:28:09 +00:00
smain@google.com 7055897faa add support for constraint layout's DATA list
Change-Id: Ia301ad235dcfd5a5c2bb13bfa6daa753f9206800
2016-09-09 15:47:58 -07:00
Alex Klyubin d6acfd5767 Merge ""SignApk" in Created-By header" am: 6e85eeaf53 am: 1989b26783
am: c16afc3e6e

Change-Id: I87fae3aca5c6b6736620dadb8567512a6757c115
2016-09-08 17:23:01 +00:00
Alex Klyubin c16afc3e6e Merge ""SignApk" in Created-By header" am: 6e85eeaf53
am: 1989b26783

Change-Id: Ie6ba1f239e36ee671ae9b5973bef6f1b8f584b5a
2016-09-08 17:20:36 +00:00
Treehugger Robot 6e85eeaf53 Merge ""SignApk" in Created-By header" 2016-09-08 17:10:37 +00:00
Alex Klyubin 969e354b1f "SignApk" in Created-By header
The switch to apksig changed the Created-By header value in .SF file
from "1.0 (Android SignApk)" to "1.0 (Android apksigner)". This commit
reverts the value back to "1.0 (Android SignApk)".

Change-Id: I2fc462cade40a5b31bb6191996fd6f18fabbf08f
2016-09-07 13:21:00 -07:00
Casey Dahlin 2ceedbee92 Merge "Add tool to copy files in to fat16 images" am: bfea84dabc am: f061b906e4
am: 1da082d2c5

Change-Id: Ia13845de77d1750c7ba54de13d06ed0eb55b8ac9
2016-09-07 20:09:10 +00:00
Casey Dahlin 1da082d2c5 Merge "Add tool to copy files in to fat16 images" am: bfea84dabc
am: f061b906e4

Change-Id: Ia3988e59b82245ffa41b92a5df057cada1ac6154
2016-09-07 20:06:41 +00:00
Treehugger Robot bfea84dabc Merge "Add tool to copy files in to fat16 images" 2016-09-07 19:51:06 +00:00
Chih-hung Hsieh db3a22cd84 Merge "Recognize new clang-tidy and Java warnings." am: 0c9a2ee864 am: 7df7722f2a
am: 77a81d5e96

Change-Id: I9928bc1231be5df2931ec227ffdc9b2e720f34c6
2016-09-07 05:40:35 +00:00
Chih-hung Hsieh 77a81d5e96 Merge "Recognize new clang-tidy and Java warnings." am: 0c9a2ee864
am: 7df7722f2a

Change-Id: I6ee8322bea222340457ce1245844f5e2e6a426dc
2016-09-07 05:38:05 +00:00
Chih-hung Hsieh 0c9a2ee864 Merge "Recognize new clang-tidy and Java warnings." 2016-09-07 05:27:45 +00:00
Chih-Hung Hsieh 0862c48770 Recognize new clang-tidy and Java warnings.
Test: run warn.py with build.log
Change-Id: I11ff844bcfd7fb13aef8909307bc7eb1f5ee9b2a
2016-09-07 05:27:16 +00:00
smain@google.com 3b7b490ecf delete 'templates-sdk-dev', all these files were merged back into 'templates-sdk' with this CL: https://googleplex-android-review.git.corp.google.com/#/c/1394582/ and this depends on the following CL to update all the doc build targets: https://googleplex-android-review.git.corp.google.com/#/c/1406302/
am: 6c8efecbda

Change-Id: Id24a404a3944049979397d08c58ccbaeb7772e9a
2016-09-06 18:04:32 +00:00
smain@google.com 48e332d73b delete 'templates-sdk-dev', all these files were merged back into 'templates-sdk' with this CL: https://googleplex-android-review.git.corp.google.com/#/c/1394582/ and this depends on the following CL to update all the doc build targets: https://googleplex-android-review.git.corp.google.com/#/c/1406302/ am: 6c8efecbda am: 21c9005ff1 am: 22f2435e98
am: 5cdd592cf2

Change-Id: I76167406f900f2a70fe4592a463944829e199921
2016-09-02 22:04:10 +00:00
smain@google.com 5cdd592cf2 delete 'templates-sdk-dev', all these files were merged back into 'templates-sdk' with this CL: https://googleplex-android-review.git.corp.google.com/#/c/1394582/ and this depends on the following CL to update all the doc build targets: https://googleplex-android-review.git.corp.google.com/#/c/1406302/ am: 6c8efecbda am: 21c9005ff1
am: 22f2435e98

Change-Id: Id320eadbf32102a1be1b1ec2fa527ee3aa230cfc
2016-09-02 21:55:20 +00:00
smain@google.com 21c9005ff1 delete 'templates-sdk-dev', all these files were merged back into 'templates-sdk' with this CL: https://googleplex-android-review.git.corp.google.com/#/c/1394582/ and this depends on the following CL to update all the doc build targets: https://googleplex-android-review.git.corp.google.com/#/c/1406302/
am: 6c8efecbda

Change-Id: I4692f455ed30f7cbbb10c40b35718c8a8952b27e
2016-09-02 21:36:14 +00:00
Casey Dahlin 29e2b21c0a Add tool to copy files in to fat16 images
fat16copy.py can be used to copy files or directories in to the root of
a fat16 image.

Usage: fat16copy <image> <file> [<file> ...]

Test: Used to compose a Raspberry Pi 3 boot image
Bug: 28912590
Change-Id: I29c9eec3786e2c5cc94f9a160360bac850809a93
2016-09-02 14:13:47 -07:00
Sami Tolvanen 3d207c8889 Merge "build_image: add padding to match partition size" am: ef5751c1ec am: 5875285ecf
am: e261a2dc20

Change-Id: Ib396abb9f6707c984b2888b8b5a265d8ebcf76be
2016-09-02 18:24:43 +00:00
Sami Tolvanen e261a2dc20 Merge "build_image: add padding to match partition size" am: ef5751c1ec
am: 5875285ecf

Change-Id: I6b5e882c7a980d43aad310ed925061da6d3a4c4a
2016-09-02 18:21:42 +00:00
smain@google.com 6c8efecbda delete 'templates-sdk-dev', all these files were merged
back into 'templates-sdk' with this CL:
https://googleplex-android-review.git.corp.google.com/#/c/1394582/
and this depends on the following CL to update all the doc build targets:
https://googleplex-android-review.git.corp.google.com/#/c/1406302/

Change-Id: Id38134e1d35c5235bb66241c50945b55ac9de1dd
2016-09-02 11:02:41 -07:00
Sami Tolvanen 433905f50e build_image: add padding to match partition size
For some partition sizes, we currently build an image that's 1-2
blocks smaller than the actual partition, which causes fs_mgr to
not find metadata. This change adds padding to FEC metadata that
correctly positions the metadata header at the end.

Bug: 28865197
Change-Id: Ie0e044715a9c5ae8ba395e7d2ff9fbd7cffc0b4c
2016-09-02 10:20:02 -07:00
smain@google.com 8a9d4732d2 Merge all of templates-sdk-dev into templates-sdk. I actually just deleted templates-sdk/ then made a copy of templates-sdk-dev/ and then renamed it to templates-sdk/. So this is a clean copy. Once this goes through cleanly, I'll delete templates-sdk-dev/ and update all doc targets to use templates-sdk/. am: 4f3a05a2c6
am: 0e35de1436

Change-Id: I7b0a435755ad7a18acbd83bdb30fd3e9bee4577f
2016-08-31 22:19:29 +00:00
smain@google.com 5b5e03c2e6 Merge all of templates-sdk-dev into templates-sdk. I actually just deleted templates-sdk/ then made a copy of templates-sdk-dev/ and then renamed it to templates-sdk/. So this is a clean copy. Once this goes through cleanly, I'll delete templates-sdk-dev/ and update all doc targets to use templates-sdk/. am: 4f3a05a2c6 am: 5c7588bd37
am: 26ded8766f

Change-Id: I92814d1ad60bb0417a3b4d1165dd13924b0e7ad2
2016-08-31 22:19:24 +00:00
smain@google.com 0e35de1436 Merge all of templates-sdk-dev into templates-sdk. I actually just deleted templates-sdk/ then made a copy of templates-sdk-dev/ and then renamed it to templates-sdk/. So this is a clean copy. Once this goes through cleanly, I'll delete templates-sdk-dev/ and update all doc targets to use templates-sdk/.
am: 4f3a05a2c6

Change-Id: Icd5ae3ecdeb840c347c6bedcfc802fe2e6c4a76f
2016-08-31 22:17:16 +00:00
smain@google.com 5c7588bd37 Merge all of templates-sdk-dev into templates-sdk. I actually just deleted templates-sdk/ then made a copy of templates-sdk-dev/ and then renamed it to templates-sdk/. So this is a clean copy. Once this goes through cleanly, I'll delete templates-sdk-dev/ and update all doc targets to use templates-sdk/.
am: 4f3a05a2c6

Change-Id: I11564954529ed7a1cd1098c66b052190f3d3d6f6
2016-08-31 22:13:34 +00:00
smain@google.com 4f3a05a2c6 Merge all of templates-sdk-dev into templates-sdk.
I actually just deleted templates-sdk/ then made a copy of templates-sdk-dev/
and then renamed it to templates-sdk/. So this is a clean copy.
Once this goes through cleanly, I'll delete templates-sdk-dev/ and update
all doc targets to use templates-sdk/.

Change-Id: I276695969e02fcf718370564e84b077a9d43725e
2016-08-31 11:30:02 -07:00
smain@google.com 03562cb191 delete templates-ds (the original attempt to template docs for devsite) delete templates-sdk-refonly (the "dev branch" for the reference only flag) am: 6d00e69c3f
am: 034014d684

Change-Id: Ib54979e22225c271579390dc55c7c4d32a067d13
2016-08-31 15:14:54 +00:00
smain@google.com f81ba20ad8 delete templates-ds (the original attempt to template docs for devsite) delete templates-sdk-refonly (the "dev branch" for the reference only flag) am: 6d00e69c3f am: e4b21d82eb
am: f1d6b8f2a8

Change-Id: I4597218a0cba21b7a1f6ca4eaebccdc459e107b6
2016-08-31 15:11:54 +00:00
smain@google.com 034014d684 delete templates-ds (the original attempt to template docs for devsite) delete templates-sdk-refonly (the "dev branch" for the reference only flag)
am: 6d00e69c3f

Change-Id: I5489a9a32196c21f98bbd4e3e98bc484fe5710e1
2016-08-31 15:09:46 +00:00
smain@google.com e4b21d82eb delete templates-ds (the original attempt to template docs for devsite) delete templates-sdk-refonly (the "dev branch" for the reference only flag)
am: 6d00e69c3f

Change-Id: Id709e0c519d6a79e45f6865f7fac200762501091
2016-08-31 15:05:54 +00:00
smain@google.com 9dbf2bb569 delete no-longer-used custom sdkpage template. depends on https://googleplex-android-review.git.corp.google.com/#/c/1389393/ am: 42859fae46 am: 618756ab95
am: 6deecc4c35

Change-Id: Ice5d1c76feda0f189f50ecada155ae97f4fc7e8b
2016-08-30 20:55:43 +00:00
smain@google.com 405a2084e5 update templates-sdk-dev to support the referenceonly build. includes an updated snapshot of the css and js files from devsite am: eeeb9b832a am: 7501218e40
am: 9674a9975a

Change-Id: I0d3c5c49c033845f40b581c439ebbde12212e15f
2016-08-30 20:55:41 +00:00
smain@google.com 6d00e69c3f delete templates-ds (the original attempt to template docs for devsite)
delete templates-sdk-refonly (the "dev branch" for the reference only flag)

Change-Id: I73e2760fcca76b7242be9aefa92006df3a555a03
2016-08-30 13:55:16 -07:00
smain@google.com 57f9a69a03 delete no-longer-used custom sdkpage template. depends on https://googleplex-android-review.git.corp.google.com/#/c/1389393/ am: 42859fae46
am: 5ba1d83e01

Change-Id: Iea623c514250e670752fba76cce7a7ef018ebe18
2016-08-30 20:52:44 +00:00
smain@google.com 3dbf7a81e0 update templates-sdk-dev to support the referenceonly build. includes an updated snapshot of the css and js files from devsite am: eeeb9b832a
am: 86f20d0dd6

Change-Id: I6e916b21a4c28f40fd0497daa84279a472fb974e
2016-08-30 20:52:41 +00:00
smain@google.com 5ba1d83e01 delete no-longer-used custom sdkpage template. depends on https://googleplex-android-review.git.corp.google.com/#/c/1389393/
am: 42859fae46

Change-Id: I5e72be2acf921383733eeb09137be72786520325
2016-08-30 20:47:13 +00:00
smain@google.com 618756ab95 delete no-longer-used custom sdkpage template. depends on https://googleplex-android-review.git.corp.google.com/#/c/1389393/
am: 42859fae46

Change-Id: I0a5a870f5cbc5c0ba2e620a8cf2cb8b497bbec1d
2016-08-30 20:47:12 +00:00
smain@google.com 86f20d0dd6 update templates-sdk-dev to support the referenceonly build. includes an updated snapshot of the css and js files from devsite
am: eeeb9b832a

Change-Id: I69c2bd63fdf1b894707ec911a65144ec38a2f07c
2016-08-30 20:47:11 +00:00
smain@google.com 7501218e40 update templates-sdk-dev to support the referenceonly build. includes an updated snapshot of the css and js files from devsite
am: eeeb9b832a

Change-Id: Ieed1beceb693ecae6be25c878b40bd6dd697aad2
2016-08-30 20:47:10 +00:00
Scott Main 1b1c5c5ebc Merge "delete no-longer-used custom sdkpage template. depends on https://googleplex-android-review.git.corp.google.com/#/c/1389393/" into nyc-dev 2016-08-30 20:39:44 +00:00
Scott Main a7e978b6b6 Merge "update templates-sdk-dev to support the referenceonly build. includes an updated snapshot of the css and js files from devsite" into nyc-dev 2016-08-30 20:39:20 +00:00
smain@google.com 42859fae46 delete no-longer-used custom sdkpage template.
depends on https://googleplex-android-review.git.corp.google.com/#/c/1389393/

Change-Id: Idd8f039294fe8c2c6dddf6d8a00a196222154d58
2016-08-30 10:52:40 -07:00
smain@google.com eeeb9b832a update templates-sdk-dev to support the referenceonly build.
includes an updated snapshot of the css and js files from devsite

Change-Id: Ib597c1dd488347795e02e1d09880559ead1d54e0
2016-08-30 10:22:51 -07:00
Amanda Kassay a7776e5bb9 Remove hard coded leading slash in head_tag.cs for DevSite image_path meta tag. am: c9ef9fea7f am: ea99b7d8bd
am: 065e5e3fac

Change-Id: I7fc8d83b96113a555c13d2b1571d24a7b13946b5
2016-08-30 16:58:25 +00:00
Amanda Kassay ea99b7d8bd Remove hard coded leading slash in head_tag.cs for DevSite image_path meta tag.
am: c9ef9fea7f

Change-Id: I9a4bde7048fc92fe694175bb349b0a82700e3da4
2016-08-30 16:52:54 +00:00
Amanda Kassay b3fcd6ff9b Remove hard coded leading slash in head_tag.cs for DevSite image_path meta tag. am: c9ef9fea7f
am: 582c52df07

Change-Id: I1b469bb8d3d86d91f17219cb971564c379642b08
2016-08-30 16:52:54 +00:00
Amanda Kassay 582c52df07 Remove hard coded leading slash in head_tag.cs for DevSite image_path meta tag.
am: c9ef9fea7f

Change-Id: I05f1fe5a3e3bdfd197fbaf84de9dff3567a0279b
2016-08-30 16:49:54 +00:00
Amanda Kassay c9ef9fea7f Remove hard coded leading slash in head_tag.cs for DevSite image_path meta tag.
Change-Id: I994148882b2f4fbe233f02eb8e35c335af0c32f8
2016-08-29 17:13:49 -04:00
Tianjie Xu 8c3ddab1c5 Don't regenerate userdata.img when signing
The userdata.img and cache.img entries are not useful in signed builds;
because fastboot doesn't look at these two entries in the *img.zip when
flashing a device. And they aren't used elsewhere. Therefore, skip
building the image files for them when signing the target files with
sign_target_files_apks. Also, add an option "--is_signing" to avoid
adding these two images when we call add_img_to_target_files.

Change-Id: I39ba91a86d9a856d7d01771f6d1403dbf21f2011
Test: Run sign_target_files_apks on a target file and userdata/cache.img doesn't not generate.
Bug: 30642470
(cherry picked from commit b48589af57)
2016-08-29 19:34:18 +00:00
Dan Willemsen b2bf9125f2 Merge "Identify modules ready to be converted to Soong" am: c6bada8acd am: 6596082d00
am: 52438f9fcf

Change-Id: I3d2aec41ae42b05006cea2837968174edd97817a
2016-08-26 22:54:34 +00:00
Dan Willemsen 52438f9fcf Merge "Identify modules ready to be converted to Soong" am: c6bada8acd
am: 6596082d00

Change-Id: I2e814051643c339054ccc02ae2823a6c2fd80e46
2016-08-26 22:52:02 +00:00
Dan Willemsen fc92fb2b9b Identify modules ready to be converted to Soong
The output will be in the `m dist` results as soong_to_convert.txt, or
can be built using:

  $ m $OUT/soong_to_convert.txt

The output is a list of modules that are probably ready to convert to
Soong:

  # Blocked on Module (potential problems)
           283 libEGL (srcs_dotarm)
           246 libicuuc (dotdot_incs dotdot_srcs)
           221 libspeexresampler
           215 libcamera_metadata
               ...
             0 zram-perf (dotdot_incs)

The number at the beginning of the line shows how many native modules
depend on that module.

All of their dependencies have been satisfied, and any potential
problems that Make can detect are listed in parenthesis after the
module:

  dotdot_srcs: LOCAL_SRC_FILES contains paths outside $(LOCAL_PATH)
  dotdot_incs: LOCAL_C_INCLUDES contains paths include '..'
  srcs_dotarm: LOCAL_SRC_FILES contains source files like <...>.c.arm
  aidl: LOCAL_SRC_FILES contains .aidl sources
  dbus: LOCAL_SRC_FILES contains .dbus-xml sources
  objc: LOCAL_SRC_FILES contains Objective-C sources
  proto: LOCAL_SRC_FILES contains .proto sources
  rs: LOCAL_SRC_FILES contains renderscript sources
  vts: LOCAL_SRC_FILES contains .vts sources

Not all problems can be discovered, but this is a starting point.

Change-Id: I45674fe93fd267d4d1fb0bc3bc9aa025e20c5ac6
2016-08-26 13:33:31 -07:00
Tianjie Xu 94a41630ef resolve merge conflicts of 8532aa4 to nyc-mr1-dev-plus-aosp
Change-Id: I104192d50552612d10e418791515a834266a8262
2016-08-24 16:28:23 -07:00
Tianjie Xu 8532aa4c42 Merge "Don't regenerate userdata.img when signing" am: a7adc06e68
am: bdd89369d9

Change-Id: Ia22016998e26c0e1e4b8ae66c035a93a8df6a993
2016-08-24 21:18:30 +00:00
Treehugger Robot a7adc06e68 Merge "Don't regenerate userdata.img when signing" 2016-08-24 21:10:08 +00:00
Chih-hung Hsieh 8514848ae2 Merge "Recognize new warning messages." am: b8f6f5dced am: 70a851d9c5
am: 4b62375ee1

Change-Id: Icdd94c9a133c791b417e75790b512701557b3f8b
2016-08-24 21:06:00 +00:00
Chih-hung Hsieh 4b62375ee1 Merge "Recognize new warning messages." am: b8f6f5dced
am: 70a851d9c5

Change-Id: If13c32d6bd39bebd9534145b34a7af2d8175a70d
2016-08-24 21:02:59 +00:00
Chih-hung Hsieh b8f6f5dced Merge "Recognize new warning messages." 2016-08-24 20:56:36 +00:00
Chih-Hung Hsieh 01530a6ff2 Recognize new warning messages.
* Generalize regular expression to match new warning messages.
* Remove old unused pattern.

Change-Id: I54f2e5bdb255b290cb3751ba56558f5fe8d7245e
Test: Run warn.py with build.log
2016-08-24 20:53:27 +00:00
Tianjie Xu b48589af57 Don't regenerate userdata.img when signing
The userdata.img and cache.img entries are not useful in signed builds;
because fastboot doesn't look at these two entries in the *img.zip when
flashing a device. And they aren't used elsewhere. Therefore, skip
building the image files for them when signing the target files with
sign_target_files_apks. Also, add an option "--is_signing" to avoid
adding these two images when we call add_img_to_target_files.

Change-Id: I39ba91a86d9a856d7d01771f6d1403dbf21f2011
Test: Run sign_target_files_apks on a target file and userdata/cache.img doesn't not generate.
Bug: 30642470
2016-08-24 12:50:35 -07:00
Dirk Dougherty 889484527d Misc cleanup for static doc pages. Remove extra line breaks in output, clean up formatting, remove elements and attrs not needed in ds builds. am: baa86c7bfe
am: 15193e8200

Change-Id: If91629ad1e6a29fe82c0b5d48679d4321766560d
2016-08-22 23:23:16 +00:00
Dirk Dougherty 6903dc6a4b Misc cleanup for static doc pages. Remove extra line breaks in output, clean up formatting, remove elements and attrs not needed in ds builds.
am: baa86c7bfe

Change-Id: I8529b06551f79b696c40d10a26f9ea94f10a0a47
2016-08-22 23:23:15 +00:00
Dirk Dougherty 15193e8200 Misc cleanup for static doc pages. Remove extra line breaks in output, clean up formatting, remove elements and attrs not needed in ds builds.
am: baa86c7bfe

Change-Id: I2e03858f2cf6af6bd418775befb683c124085678
2016-08-22 23:18:41 +00:00
Tao Bao ae3fdd2436 Merge "releasetools: Allow creating target_files with ZIP64." am: 794c69e603 am: cfab69eb32
am: 59c8c55611

Change-Id: Ibf5b7b4abbb4477fa1d23f15af443ad66772e906
2016-08-22 19:18:21 +00:00
Tao Bao 59c8c55611 Merge "releasetools: Allow creating target_files with ZIP64." am: 794c69e603
am: cfab69eb32

Change-Id: Ia63006b29593301c8e5a4f5bfec28eb515d43e60
2016-08-22 19:14:21 +00:00
Tao Bao cfab69eb32 Merge "releasetools: Allow creating target_files with ZIP64."
am: 794c69e603

Change-Id: I94eac12de16cac4e4034d933f83fbfa61ca20591
2016-08-22 19:09:55 +00:00
Tao Bao 9c84e50f4c releasetools: Allow creating target_files with ZIP64.
add_img_to_target_files.py fails when the target_files.zip is over 4GiB
when adding IMAGES/ folder. Specify the flag to allow creating
target_files.zip with ZIP64 extension.

Other zip artifacts (-img.zip, -ota.zip etc) remain in non-ZIP64 format.
zip2zip is not affected, which still creates non-ZIP64 zips even when
copying from target_files in ZIP64.

Bug: 30961841
Test: "make dist" with large system image and check the artifacts.

Change-Id: I0568745f01ef8f0239081f783eac92288d4fdd84
2016-08-22 10:40:24 -07:00
Dirk Dougherty baa86c7bfe Misc cleanup for static doc pages. Remove extra line breaks in output, clean up formatting, remove elements and attrs not needed in ds builds.
Change-Id: Iceea38241b08fd9571d26862f0468f8b25da7f1c
2016-08-21 11:40:19 -07:00
Dirk Dougherty 6b9694b5f9 update dac legacy templates for N release. am: 8aec568883
am: 75106bc9f1

Change-Id: I9c350b98c5941ca424897b1c2b7e62356ec579f0
2016-08-19 05:34:18 +00:00
Dirk Dougherty 75106bc9f1 update dac legacy templates for N release.
am: 8aec568883

Change-Id: I34cd948facfc7e2ba8e8056475628f670061193e
2016-08-19 05:31:18 +00:00
Dirk Dougherty 4bf80111a2 update dac legacy templates for N release.
am: 8aec568883

Change-Id: Ic392b6ff4b35cc9ede8f2b61a50ae12190443486
2016-08-19 05:31:18 +00:00
Dirk Dougherty 8aec568883 update dac legacy templates for N release.
Change-Id: I746e5cd15ff7485a69df6006a9302408e9e38c5b
2016-08-18 19:34:32 -07:00
Amanda Kassay 152f2edd3c Adding project path metadata to head_tag.cs am: 594392adec
am: 9ca8e8693c

Change-Id: I7184bf55c6fe843ceb7884472a1460048e4ef8fb
2016-08-16 13:54:49 +00:00
Amanda Kassay 9ca8e8693c Adding project path metadata to head_tag.cs
am: 594392adec

Change-Id: I8b6475e58af84cade97992c1fecb1444d0a13c15
2016-08-16 13:47:43 +00:00
Amanda Kassay a11558f9cc Adding project path metadata to head_tag.cs
am: 594392adec

Change-Id: Ie7d4912990f8d904cdd4d6633336ad16c2c36dbd
2016-08-16 13:47:09 +00:00
Amanda Kassay 594392adec Adding project path metadata to head_tag.cs
Change-Id: I031e5c1f1c2dd4763c43f0bfde03eb2fa8831472
2016-08-16 13:38:33 +00:00
Tianjie Xu 28375950c2 Replace META/care_map.txt when signing target files
Do not copy the "META/care_map.txt" from the source zipfile when
signing the target files with sign_target_files_apks. Because we'll
generate a new care_map after rebuilding the system/vendor images;
and we'll write the new "META/care_map.txt" to the signed-target-file.

Change-Id: I6919cfdf8314a4084b5f612a9c89469f391486a4
Test: Run sign_target_files_apks locally, and the entry is updated.
Bug: 30812253
(cherry picked from commit 4f09900e67)
2016-08-12 11:35:31 -07:00
Tianjie Xu b4e4adc195 Merge "Replace META/care_map.txt when signing target files" am: 7b11cacbba am: bf5e3d168d
am: 4f4fb6ce45

Change-Id: If8dd9a34ad92a8d951332376273735573ea8a4c6
2016-08-12 18:13:06 +00:00
Tianjie Xu 4f4fb6ce45 Merge "Replace META/care_map.txt when signing target files" am: 7b11cacbba
am: bf5e3d168d

Change-Id: I6476c710a220e2fe91dd06203ee418665ebd1a37
2016-08-12 18:10:07 +00:00
Tianjie Xu bf5e3d168d Merge "Replace META/care_map.txt when signing target files"
am: 7b11cacbba

Change-Id: Ia8e888a0f330d00f6518e352356ca480819586db
2016-08-12 18:06:41 +00:00
Alex Deymo cb69ac6c65 Merge changes from topic 'nyc-mr1-ue_sideload_recovery' into nyc-mr1-dev
* changes:
  Replace OTA sideload verification key when signing A/B devices.
  Install the update-payload-key in the recovery image as well.
2016-08-12 17:59:56 +00:00
Tianjie Xu 4f09900e67 Replace META/care_map.txt when signing target files
Do not copy the "META/care_map.txt" from the source zipfile when
signing the target files with sign_target_files_apks. Because we'll
generate a new care_map after rebuilding the system/vendor images;
and we'll write the new "META/care_map.txt" to the signed-target-file.

Change-Id: I6919cfdf8314a4084b5f612a9c89469f391486a4
Test: Run sign_target_files_apks locally, and the entry is updated.
Bug: 30812253
2016-08-11 18:04:27 -07:00
Tao Bao 6a0451f4e1 Merge "releasetools: Update the path to /default.prop for A/B devices." am: 6d64ff1bf7 am: 6eb5564025
am: cd6ce6182b

Change-Id: I53fffa12f748ebf97462cd0f5bc70d4478e027d5
2016-08-11 20:49:12 +00:00
Tao Bao cd6ce6182b Merge "releasetools: Update the path to /default.prop for A/B devices." am: 6d64ff1bf7
am: 6eb5564025

Change-Id: Icd75b3de56e129cc932445b9ec5a00e0ec8525b6
2016-08-11 20:45:46 +00:00
Tao Bao 6eb5564025 Merge "releasetools: Update the path to /default.prop for A/B devices."
am: 6d64ff1bf7

Change-Id: I1deeff5d22454c1fae5b450dbf2e6a35ffbc6227
2016-08-11 20:42:34 +00:00
Tao Bao 145cb2eaef releasetools: Update the path to /default.prop for A/B devices.
On A/B devices (i.e. system_root_image="true"), /default.prop is
packaged at ROOT/default.prop (as opposed to BOOT/RAMDISK/default.prop
for non-A/B devices). Update the path so that we handle properties like
ro.bootimage.build.fingerprint properly.

The one for recovery is not affected, which stays at
BOOT/RAMDISK/default.prop for A/B devices and gets updated correctly.

Bug: 30811237
Test: Verify the property in the generated signed-TF.zip.
Change-Id: Id201a042d7ea988a64f89c6d04f43326a9851e27
(cherry picked from commit 28e2fa1726)
2016-08-11 13:40:59 -07:00
Tao Bao 28e2fa1726 releasetools: Update the path to /default.prop for A/B devices.
On A/B devices (i.e. system_root_image="true"), /default.prop is
packaged at ROOT/default.prop (as opposed to BOOT/RAMDISK/default.prop
for non-A/B devices). Update the path so that we handle properties like
ro.bootimage.build.fingerprint properly.

The one for recovery is not affected, which stays at
BOOT/RAMDISK/default.prop for A/B devices and gets updated correctly.

Bug: 30811237
Test: Verify the property in the generated signed-TF.zip.
Change-Id: Id201a042d7ea988a64f89c6d04f43326a9851e27
2016-08-11 11:28:51 -07:00
Alex Deymo 95cc84a785 Replace OTA sideload verification key when signing A/B devices.
The update-payload-key is used by update_engine_sideload from recovery
to verify an update payload.

Bug: 27178350

(cherry picked from commit b3e8ce6d1d)

Change-Id: Iac239732251e550e9966bf284b68bc9d578f22ff
2016-08-10 11:10:24 -07:00
Alex Deymo e8fbea342f Merge changes from topic 'ab_sideload' am: 3750ed3e17 am: 93ff77ad1a
am: 820bc82bed

Change-Id: I0dcac2e3cdbc3114a88d7ca49054a15bd9ccb292
2016-08-10 05:07:24 +00:00
Alex Deymo 820bc82bed Merge changes from topic 'ab_sideload' am: 3750ed3e17
am: 93ff77ad1a

Change-Id: Idbe285c05dfb9b4b6252ef87a3066f8a41f13044
2016-08-10 05:04:23 +00:00
Alex Deymo 93ff77ad1a Merge changes from topic 'ab_sideload'
am: 3750ed3e17

Change-Id: I4afbecc40068c7a87c7532b22a404319c24e2c05
2016-08-10 05:00:57 +00:00
Alex Deymo 3750ed3e17 Merge changes from topic 'ab_sideload'
* changes:
  Replace OTA sideload verification key when signing A/B devices.
  Install the update-payload-key in the recovery image as well.
2016-08-10 03:55:24 +00:00
Alex Deymo b3e8ce6d1d Replace OTA sideload verification key when signing A/B devices.
The update-payload-key is used by update_engine_sideload from recovery
to verify an update payload.

Bug: 27178350
Change-Id: I7a0a307ae565e5e9cbf2c9b58fbcc055e87771ce
2016-08-04 16:06:12 -07:00
Chih-Hung Hsieh 1116869c6b Merge "Issue warning on projects with LOCAL_CLANG set to false." am: e71cdfbdee am: f43279a359
am: f7de7370ac

Change-Id: If29b3e52827f238c4738eacbcc811acd39114808
2016-08-03 16:56:02 +00:00
Chih-hung Hsieh f7de7370ac Merge "Issue warning on projects with LOCAL_CLANG set to false." am: e71cdfbdee
am: f43279a359

Change-Id: I0d42d2f4fcc87303064ad4b7026f46573eb31efe
2016-08-03 16:53:20 +00:00
Chih-Hung Hsieh f43279a359 Merge "Issue warning on projects with LOCAL_CLANG set to false."
am: e71cdfbdee

Change-Id: Icb5708eb58f3c8e54b60538377b6afba5eb04de5
2016-08-03 16:50:52 +00:00
Chih-Hung Hsieh d9cd1fafb5 Issue warning on projects with LOCAL_CLANG set to false.
* LOCAL_CLANG_EXCEPTION_PROJECTS is the list of project prefixes.
* New warning message is detected by warn.py as high severity.

Bug: 30575506
Change-Id: I87a38b2ba6bab1d2e5e7a9d5ec9557f0e609727c
Test: build and find new warning in build.log
2016-08-02 16:10:49 -07:00
Joe Fernandez 74d7423fe9 docs: Add TOC template logic for ARC docs am: 99aacfe834 am: 12636da2e0
am: d28a2c9ea6

Change-Id: Ieff03d33e3477204e2c5af6c2b9c97569bfc4108
2016-08-02 01:05:28 +00:00
Joe Fernandez 12636da2e0 docs: Add TOC template logic for ARC docs
am: 99aacfe834

Change-Id: I2831d967cbb2c1c5733ef3b6f235dbe96e75c565
2016-08-02 00:39:13 +00:00
Joe Fernandez 6e9a89c5c6 docs: Add TOC template logic for ARC docs
am: 99aacfe834

Change-Id: I9418fc551965e1d60bb631f0a31c08f0a7cda7ce
2016-08-02 00:38:41 +00:00
Joe Fernandez 99aacfe834 docs: Add TOC template logic for ARC docs
b/30114799

Change-Id: If36c3f9d46bf916b56b2884446451d423565606c
2016-08-01 17:15:14 -07:00
Chih-Hung Hsieh 28b71f0005 Merge "Fix clang-tidy performance warnings." am: 240faf5ef0 am: 644526cfa5
am: 068f33b95f

Change-Id: Ic1dcb417a1c29bdfcca59c651b8a3a5481773d43
2016-08-01 21:19:53 +00:00
Chih-Hung Hsieh 068f33b95f Merge "Fix clang-tidy performance warnings." am: 240faf5ef0
am: 644526cfa5

Change-Id: Ic940bfb924b29fb8d033bd0f843492704a2607d8
2016-08-01 21:17:21 +00:00
Chih-Hung Hsieh 644526cfa5 Merge "Fix clang-tidy performance warnings."
am: 240faf5ef0

Change-Id: I161e035f9ef297635baa8cd97bbc9860e5852b5c
2016-08-01 21:13:54 +00:00
Treehugger Robot 240faf5ef0 Merge "Fix clang-tidy performance warnings." 2016-08-01 21:04:20 +00:00
Tao Bao 9220a725bd Merge \\\"Handle multiple APKs from the same package in check_target_files_signatures.py.\\\" am: 653980bfe4 am: 88f7e6a867
am: c57f2e6f65

Change-Id: I8a634684509bbb91f6311a1e8ffb0e95174af5e5
2016-07-28 04:46:47 +00:00
Tao Bao c57f2e6f65 Merge \\"Handle multiple APKs from the same package in check_target_files_signatures.py.\\" am: 653980bfe4
am: 88f7e6a867

Change-Id: Ie175a7ae9c6fc4fcefecd0e7090acdad25157f47
2016-07-28 04:43:47 +00:00
Tao Bao 88f7e6a867 Merge \"Handle multiple APKs from the same package in check_target_files_signatures.py.\"
am: 653980bfe4

Change-Id: I9b47c241b8d8c879b6e1794e5c84ad9fd8541613
2016-07-28 04:41:18 +00:00
Tao Bao 1a75fa6493 Handle multiple APKs from the same package in check_target_files_signatures.py.
We were using the package name as the key to index APKs. APKs from the
same package got messed up and gave wrong signature summary. Switch to
using the package filename as the key, which is identical in a given build.

Also fix the trailing space when printing the signature summary.

Bug: 30418268
Test: Run with a target_files.zip that has multiple APKs from the same package.

Change-Id: I6317e8c05e987c5690915e05c294153d10e2f0ab
(cherry picked from commit 6a54299fbd)
2016-07-27 21:30:16 -07:00
Tao Bao 6a54299fbd Handle multiple APKs from the same package in check_target_files_signatures.py.
We were using the package name as the key to index APKs. APKs from the
same package got messed up and gave wrong signature summary. Switch to
using the package filename as the key, which is identical in a given build.

Also fix the trailing space when printing the signature summary.

Bug: 30418268
Test: Run with a target_files.zip that has multiple APKs from the same package.

Change-Id: I6317e8c05e987c5690915e05c294153d10e2f0ab
2016-07-27 19:52:28 -07:00
Chih-Hung Hsieh 6c083acf2a Fix clang-tidy performance warnings.
* Use const reference parameter type to avoid unnecessary copy.

Bug: 30407689
Change-Id: Iefab05c077367f272abf545036b853e8a295c8cd
Test: build with WITH_TIDY=1
2016-07-27 10:28:33 -07:00
Chih-Hung Hsieh 7d23423a0f Merge \\\"Add option to dump HTML warnings per project.\\\" am: 620ce44a7a am: 1955ea00a0
am: 8dcdbff9e7

Change-Id: I153069e64ad6eccf0eb43484931370572318b990
2016-07-27 00:51:41 +00:00
Chih-Hung Hsieh 431b6d19fe Merge \\\"Add performance* to default global tidy checks.\\\" am: 32c8bcf0bd am: ff71afa4e0
am: 3453a0ec29

Change-Id: I178e56d1ff3897e391183b123f81db301b377cd8
2016-07-27 00:51:40 +00:00
Chih-Hung Hsieh 8dcdbff9e7 Merge \\"Add option to dump HTML warnings per project.\\" am: 620ce44a7a
am: 1955ea00a0

Change-Id: I3dccd381867cf1fdb97cebbca5bb96ee67921acd
2016-07-27 00:48:10 +00:00
Chih-Hung Hsieh 3453a0ec29 Merge \\"Add performance* to default global tidy checks.\\" am: 32c8bcf0bd
am: ff71afa4e0

Change-Id: I01d779f77b8b1fc7fba7cabf9989c4ece133955f
2016-07-27 00:48:10 +00:00
Chih-Hung Hsieh 1955ea00a0 Merge \"Add option to dump HTML warnings per project.\"
am: 620ce44a7a

Change-Id: If37ceb0cbbf43356a9df2681eb192b09c2c6a551
2016-07-27 00:45:13 +00:00
Chih-Hung Hsieh ff71afa4e0 Merge \"Add performance* to default global tidy checks.\"
am: 32c8bcf0bd

Change-Id: I9bb84dd4e53d84c3c9ad228616fa7f7839075128
2016-07-27 00:45:11 +00:00
Treehugger Robot 620ce44a7a Merge "Add option to dump HTML warnings per project." 2016-07-26 23:04:29 +00:00
Chih-Hung Hsieh 4354a33874 Add option to dump HTML warnings per project.
* Use --byproject flag to dump warnings in HTML file by projects.
* Add external/google and vendor/google projects, vs other
  external/non-google and vendor/non-google projects.
* Refactor code in dumpcategory to dump warnings by projects
  when --byproject is specified.
* Recognize new compiler -Wvarargs warning pattern.
* No change to default HTML output format.

Change-Id: I2406ad392ab18683357ff0ee0cf6c41f87cf399c
Test: run through current build.log files.
2016-07-26 14:53:28 -07:00
Chih-Hung Hsieh c868293abc Add performance* to default global tidy checks.
* This enables 5 performance related checks:
    performance-faster-string-find
    performance-for-range-copy
    performance-implicit-cast-in-loop
    performance-unnecessary-copy-initialization
    performance-unnecessary-value-param
* Recognize these new warnings in warn.py.

Bug: http://b/27779618
Change-Id: I7af3fdc262dd44db90d3b62eb37c5eac5a2eaa01
Test: build with WITH_TIDY=1 and run warn.py with build.log
2016-07-26 14:36:54 -07:00
Chih-Hung Hsieh 5d1c243742 Merge \\\"Count warnings per project and dump out CSV format.\\\" am: 053c54b554 am: d59fe53668
am: 94861af0ec

Change-Id: I20abff9a543d42dc7217d396b0cc9234ce86906f
2016-07-22 01:07:45 +00:00
Chih-hung Hsieh 94861af0ec Merge \\"Count warnings per project and dump out CSV format.\\" am: 053c54b554
am: d59fe53668

Change-Id: I8eef3954ca560feabf6fcba46a89a3aaa18d88c3
2016-07-22 01:05:15 +00:00
Chih-Hung Hsieh d59fe53668 Merge \"Count warnings per project and dump out CSV format.\"
am: 053c54b554

Change-Id: I22315bc641d501e74b995ddde8d7624fa9a6b883
2016-07-22 01:02:47 +00:00
Chih-Hung Hsieh 48a16ba709 Count warnings per project and dump out CSV format.
* No change to html output, except removing unused "PageTop" anchor.
* Add --gencsv flag to output a CSV file instead of html file.
  CSV files are combined to a table for dashboard charts.
* Count warnings from selected source project directories.
* CSV output lines are:
   num_of_warnings,project_name,warning_description
* project_name is empty for sum of warnings from all projects.
* warning_description could be:
  (1) "<severity>: <warning type description>"
      for one warning type, or
  (2) "<severity> warnings"
      for all warning types of the severity.

Change-Id: I1cf976ed0cf142091226b22665b7f28d383608fd
Test: run through current build.log files.
2016-07-21 14:43:02 -07:00
Chih-Hung Hsieh df57a4ccf4 Merge \\\"Recognize new clang and clang-tidy warnings.\\\" am: 6131119708 am: bdcc181588
am: 586eecfb44

Change-Id: Iedcb6623ad057a0a04485468193efde425e767f7
2016-07-20 23:14:05 +00:00
Chih-Hung Hsieh 586eecfb44 Merge \\"Recognize new clang and clang-tidy warnings.\\" am: 6131119708
am: bdcc181588

Change-Id: I38ded1b02d69b98e7d519cf7c382e7f227c32ba5
2016-07-20 23:11:07 +00:00
Chih-Hung Hsieh bdcc181588 Merge \"Recognize new clang and clang-tidy warnings.\"
am: 6131119708

Change-Id: If307f868da5d961ad3c1cac371ca3e5a42a6b652
2016-07-20 23:08:36 +00:00
Chih-Hung Hsieh c21ddbdcce Recognize new clang and clang-tidy warnings.
* Count new clang-tidy warnings:
    google-runtime-references
    google-runtime-operator
* Count new clang warnings:
    -Wconst-conversion similar to -Wliteral-conversion
    -Wundefined-var-template
* Modified static analyzer warning message about
    "Null passed to a callee that requires a non-null ..."
* Disable google-runtime-references by default and
  disable misc-macro-parentheses in vendor projects;
  too many old C/C++ code have this warning.

Change-Id: Ib35e0af85875aada17c92b0237b76cd5ae3bfcc8
Test: build with clang-tidy.
2016-07-20 14:45:01 -07:00
Chih-Hung Hsieh cb4abef6cb Merge \\\"Avoid matching the same warning line twice.\\\" am: 0cbba3df2a am: 472589e1cb
am: bac87ed68b

Change-Id: Id106004dc254c450d20d5bca5e97857f727b97f6
2016-07-18 23:42:52 +00:00
Chih-Hung Hsieh bac87ed68b Merge \\"Avoid matching the same warning line twice.\\" am: 0cbba3df2a
am: 472589e1cb

Change-Id: I81b387ec3e2892f7f6854482050dc65adf0c277f
2016-07-18 23:40:22 +00:00
Chih-Hung Hsieh 472589e1cb Merge \"Avoid matching the same warning line twice.\"
am: 0cbba3df2a

Change-Id: I641fa895ac7033056833107bf062015987965632
2016-07-18 23:38:24 +00:00
Chih-Hung Hsieh 5ecafd1260 Avoid matching the same warning line twice.
Used to skip only immediately followed identical warning lines.
Now classifywarning is called only once for each unique warning line.

Change-Id: Ie3b77ded70b41dafad91c042dbe15ad2be119e62
Test: run through build.log file
2016-07-18 15:27:02 -07:00
Gaelle Nassiet 5738984509 Merge \\\"Fix root_filesystem_config.txt generation\\\" am: 461a3283d9 am: f464d8e7d4
am: 32aba08598

Change-Id: Ic2a6ea0ced46acabcb2d0410ba0925fbe8075d21
2016-07-13 23:20:41 +00:00
Tao Bao 32aba08598 Merge \\"Fix root_filesystem_config.txt generation\\" am: 461a3283d9
am: f464d8e7d4

Change-Id: I688d6b43735adda95c0fea4db32bb71725e12250
2016-07-13 23:17:58 +00:00
Gaelle Nassiet f464d8e7d4 Merge \"Fix root_filesystem_config.txt generation\"
am: 461a3283d9

Change-Id: I07ebb4520d02948bff90911d03692d7896dff89c
2016-07-13 23:15:12 +00:00
Tao Bao 461a3283d9 Merge "Fix root_filesystem_config.txt generation" 2016-07-13 23:04:10 +00:00
Tianjie Xu 737afb98c9 resolve merge conflicts of 333df6c to nyc-mr1-dev-plus-aosp
Change-Id: Ibe66a7c78073a9c3e9f139bd6b00a0afab075190
2016-07-11 11:42:53 -07:00
Tianjie Xu 333df6c1d1 Merge "Add care_map to target_files package" into nyc-mr1-dev 2016-07-11 17:59:47 +00:00
Tao Bao 4a673770cb resolve merge conflicts of 4058a71 to stage-aosp-master
am: 538ed261eb

Change-Id: I2ef81a2279ba62bc00c2a40d703666411877058f
2016-07-11 16:16:10 +00:00
Tao Bao 538ed261eb resolve merge conflicts of 4058a71 to stage-aosp-master
Change-Id: I0816bfc5d8adb20e175617d97651f1474ce4e916
2016-07-11 09:08:24 -07:00
Tao Bao 62a6c464a2 releasetools: Fix the detection of using squashfs.
We should disable using imgdiff if *any* of the source and target
partitions uses squashfs.

Bug: 30004734
Test: Create an incremental with two builds with one of them uses squashfs.
Change-Id: I826cd13d7b852c548e4b45e61f5ae00f6407cac3
(cherry picked from commit f8acad1480)
2016-07-10 23:16:14 -07:00
Tao Bao b6568cd4be releasetools: Disable using imgdiff for squashfs.
We use imgdiff to handle files in zip format (e.g. jar/zip/apk) for
higher compression ratio.

For system/vendor in squashfs, a) all files are compressed in LZ4
format; b) we use 4096-byte block size in their sparse images, but the
files in squashfs may not be laid out as 4K-aligned. So the blocks for
a given file as listed in block map may not form a valid zip file, which
may fail the patch generation with imgdiff.

Disable using imgdiff for squashfs images, and use bsdiff instead.

Bug: 22322817
Change-Id: Ie76aa4cece5c9d38cb1d1a34c505a4a8f37512d3
(cherry picked from commit 293fd135c7)
2016-07-10 23:15:48 -07:00
Tianjie Xu cfa86223d6 Add care_map to target_files package
Generate a new file containing care_data of system (and vendor)
partition, and add it under META/ of target file package. For
A/B update, copy this file to OTA package for later use by
update_verifier.

Bug: 27175949

Change-Id: I90bb972703afaeb94bc3efe718fd81b1cfbcabcc
2016-07-08 16:53:59 -07:00
Tao Bao dd740c6817 Merge \\"releasetools: Fix the payload public key replacement.\\" am: 8a09095c34
am: c4449f819c

Change-Id: I1614d0af292c4cb0b6c9b9bc208194c30179c7b9
2016-07-08 21:12:58 +00:00
Tao Bao c4449f819c Merge \"releasetools: Fix the payload public key replacement.\"
am: 8a09095c34

Change-Id: I464ec9dd1a12dcb06bc1dcbf340fdcbac04b9575
2016-07-08 21:09:20 +00:00
Tao Bao 98c90d1efa Merge \"releasetools: Fix the payload public key replacement.\" into nyc-mr1-dev
am: 0821fab13a

Change-Id: I15ef57cc520cc2d55ea382688da737d57281358b
2016-07-08 20:02:20 +00:00
Tao Bao 13b6962e8d releasetools: Fix the payload public key replacement.
update_engine expects the extracted public key instead of the
certificate.

Bug: 28701652
Change-Id: I292d39da9e039f96d01a4214226aeb46f8cb881d
(cherry picked from commit afaf295cb8)
2016-07-08 12:52:45 -07:00
Tao Bao 0821fab13a Merge "releasetools: Fix the payload public key replacement." into nyc-mr1-dev 2016-07-08 19:47:10 +00:00
Gaelle Nassiet aa8f2f65a0 Fix root_filesystem_config.txt generation
The first line returned by awk is empty. In consequence, when
fs_config computes its mode it will consider this line as a file (no
trailing slash) and affect the default android_files mode which is
0644. The mode for the root directory should be the default
android_dirs mode 0755.
Add a special case in fs_config to consider empty line as a directory.

Change-Id: I9f33f6fcf4be05c31914db898e65c92b0a611518
Signed-off-by: Gaelle Nassiet <gaellex.nassiet@intel.com>
2016-07-08 10:40:06 +02:00
Alex Klyubin 7f1782342f Merge \\\"Move apksigner library to tools/apksig.\\\" am: c78147c650 am: ee7d7e3506
am: 188a4191d9

Change-Id: Id2ba6ab6a50d7cdea5fbcc172e0bb030aff3586e
2016-07-07 20:46:47 +00:00
Alex Klyubin 188a4191d9 Merge \\"Move apksigner library to tools/apksig.\\" am: c78147c650
am: ee7d7e3506

Change-Id: Ic11bee7e6e0fabfd1849ea9dc47fcd6dc5772d1f
2016-07-07 20:43:07 +00:00
Alex Klyubin ee7d7e3506 Merge \"Move apksigner library to tools/apksig.\"
am: c78147c650

Change-Id: I34e66d67736fb0a671f8030b4c94983a908e5d8c
2016-07-07 20:40:05 +00:00
Treehugger Robot c78147c650 Merge "Move apksigner library to tools/apksig." 2016-07-07 20:33:05 +00:00
Chih-Hung Hsieh 4da10cf1cc Merge \\\"Recognize new C/C++ compiler and static analyzer warnings.\\\" am: 1734523900 am: 6beef3807d
am: d04cbc6f76

Change-Id: I174e89c9b963cd2c4173ec7dbcfb769f6d443ff0
2016-07-07 18:39:06 +00:00
Chih-Hung Hsieh d04cbc6f76 Merge \\"Recognize new C/C++ compiler and static analyzer warnings.\\" am: 1734523900
am: 6beef3807d

Change-Id: I0452a12af98ef1ea8426c0a54211186e4123afdd
2016-07-07 18:28:56 +00:00
Chih-Hung Hsieh 6beef3807d Merge \"Recognize new C/C++ compiler and static analyzer warnings.\"
am: 1734523900

Change-Id: I71b8f324ad88ff38b077ba1763c163f9d80a30fa
2016-07-07 18:24:12 +00:00
Tao Bao ae974f289b releasetools: Fix the detection of using squashfs.
am: f8acad1480

Change-Id: I654730ef8566d12ad17a81261b450a695b79686d
2016-07-07 18:24:12 +00:00
Treehugger Robot 1734523900 Merge "Recognize new C/C++ compiler and static analyzer warnings." 2016-07-07 18:07:21 +00:00
Alex Klyubin 1b09a508ba Move apksigner library to tools/apksig.
This moves build/tools/apksigner/core to its own project tools/apksig.
The move also renames the moved Java packages from
com.android.apksigner.core.* to com.android.apksig.* to reflect the
new name of the library.

Bug: 27461702
Change-Id: Iab812ae2b8f0a741014f842460c78e35bc249d43
2016-07-07 10:53:14 -07:00
Tao Bao f8acad1480 releasetools: Fix the detection of using squashfs.
We should disable using imgdiff if *any* of the source and target
partitions uses squashfs.

Bug: 30004734
Test: Create an incremental with two builds with one of them uses squashfs.
Change-Id: I826cd13d7b852c548e4b45e61f5ae00f6407cac3
2016-07-07 09:10:25 -07:00
Alex Klyubin 68a4e8b78d Merge \\\"APK signer primitive.\\\" am: d81beca2b2 am: 69c8c38f63
am: a03dc9cab6

Change-Id: Ib51b981eeb4c924dda386481cb0f8b5ecbc80393
2016-07-06 23:26:22 +00:00
Alex Klyubin a03dc9cab6 Merge \\"APK signer primitive.\\" am: d81beca2b2
am: 69c8c38f63

Change-Id: I296cabea0366e48f1ddaa7abcc189a74b90e529d
2016-07-06 23:16:52 +00:00
Alex Klyubin 69c8c38f63 Merge \"APK signer primitive.\"
am: d81beca2b2

Change-Id: I9570df7b5f7a70b4fdd04cbbdeae80d3e5bf9616
2016-07-06 23:14:09 +00:00
Treehugger Robot d81beca2b2 Merge "APK signer primitive." 2016-07-06 22:59:32 +00:00
Tao Bao afaf295cb8 releasetools: Fix the payload public key replacement.
update_engine expects the extracted public key instead of the
certificate.

Bug: 28701652
Change-Id: I292d39da9e039f96d01a4214226aeb46f8cb881d
2016-07-06 15:31:36 -07:00
Chih-Hung Hsieh 8d14543a9b Recognize new C/C++ compiler and static analyzer warnings.
Change-Id: I5f47c45498c640702922704aa5305a85e9493fcc
Test: run with Android build.log.
2016-07-06 10:22:23 -07:00
David Friedman 17e29c2037 Merge \"Docs: Adding info in support of TOC for new Performance section.\" into nyc-dev
am: 77a4215191

Change-Id: If71aa4f05bd7d0f732cf91c1835db95ffab47b64
2016-07-01 22:42:03 +00:00
Joe Fernandez e2fa2d685b Merge \\"Docs: Adding info in support of TOC for new Performance section.\\" into nyc-dev am: 77a4215191
am: c746bd459c

Change-Id: Ifefa153a8e15e6bba668cf1f39d607376b2efbd7
2016-07-01 22:42:03 +00:00
David Friedman c746bd459c Merge \"Docs: Adding info in support of TOC for new Performance section.\" into nyc-dev
am: 77a4215191

Change-Id: I83cd35ea59fd61d9aeac5961a98970531c68278c
2016-07-01 22:37:09 +00:00
Alex Light a3e8e9c6f3 resolve merge conflicts of 3f7c348 to nyc-mr1-dev-plus-aosp
Bug: 29278988

Change-Id: Icffb9a280311c7d3c45f096243ddf18f7ebecd9d
2016-06-29 15:43:54 -07:00
Alex Light 3f7c34859e Merge "Add system_other partition, install odex files" into nyc-mr1-dev 2016-06-29 20:26:06 +00:00
Tianjie Xu 1cfa3f05c7 Merge \\\"Skip copying existing vendor images\\\" am: 1767d3f918 am: 85da4d3566
am: 317d1594e4

Change-Id: I609170449d1312537fd40496075c0b60a2bf9e13
2016-06-29 18:50:53 +00:00
Tianjie Xu 85da4d3566 Merge \"Skip copying existing vendor images\"
am: 1767d3f918

Change-Id: I5f929adedb17b6d32d2e0e284aa37c39c643c3ea
2016-06-29 18:45:57 +00:00
Tianjie Xu aaca421ec1 Skip copying existing vendor images
add_img_to_target_files.py has an option of "-a" to add missing
images only. Under this option, the script should skip copying
the radio images for A/B devices when given image exists already
under "IMAGES/".

Test: Run the command on an A/B device, the existing radio images under "IMAGES/" don't get overwritten; and missing images are added correctly.
Bug: 29608905
Change-Id: Ie034b85a5d777d53e367f99470cea4d19cb1aaaf
2016-06-29 18:32:30 +00:00
Ethan Xia 886846300d Merge \\\"releasetools: Change the default key path for bvbtool\\\" am: 7c7571d510 am: 090e8eff5e
am: e4efe69fae

Change-Id: If1d96c88a42d3894d7c9bccef6064f159bf185d2
2016-06-28 02:02:12 +00:00
Ethan Xia e4efe69fae Merge \\"releasetools: Change the default key path for bvbtool\\" am: 7c7571d510
am: 090e8eff5e

Change-Id: I34f3cc1a38b860fd3100548f55a38af9faf69e19
2016-06-28 01:59:47 +00:00
Ethan Xia 090e8eff5e Merge \"releasetools: Change the default key path for bvbtool\"
am: 7c7571d510

Change-Id: Ic02f432c689edba37ecce684662d8f5f1cfc32b6
2016-06-28 01:57:26 +00:00
David Friedman e0b9229915 Docs: Adding info in support of TOC for new Performance section.
Bug:
Change-Id: Iad34b8d3294ddea714c8933a60fb2615811ac019
2016-06-27 16:40:20 -07:00
Alex Klyubin 819e8485e4 APK signer primitive.
This adds an APK signer primitive which preserves as much of the input
APK as possible. For example, it preserves the order of APK entries
and preserves their contents, including compressed form and alignment
of data.

Bug: 27461702
Change-Id: I51d07c530480182a66379e70a00f680544ff6214
2016-06-27 11:28:08 -07:00
Ethan Xia 37b4a9819b releasetools: Change the default key path for bvbtool
The bvb path has been changed from 'system/bvb' to 'external/bvb'

Change-Id: I8587351b7d702a287883c6bd3c9de1cd3540435b
2016-06-27 17:19:01 +08:00
Chih-Hung Hsieh 1a256fac08 Merge \\\"Add +/- buttons to expand/collapse warning categories.\\\" am: 4837ce8ca6 am: 320d126394
am: a612b58464

Change-Id: I3b1bc8ad038e92c2fec7029f2ecc526629424ae2
2016-06-24 18:21:46 +00:00
Chih-hung Hsieh a612b58464 Merge \\"Add +/- buttons to expand/collapse warning categories.\\" am: 4837ce8ca6
am: 320d126394

Change-Id: I637c546da197a7d9cc6b1ea91dc6f45f51f7ecda
2016-06-24 18:17:05 +00:00
Tianjie Xu 5af8cf9732 Merge \"Avoid writing too much new data per transfer\" into nyc-mr1-dev
am: 21e6dde63c

Change-Id: I4d9fae702e81cea01a0a602247e629e71dd4efc7
2016-06-24 18:12:13 +00:00
Chih-Hung Hsieh 320d126394 Merge \"Add +/- buttons to expand/collapse warning categories.\"
am: 4837ce8ca6

Change-Id: I56057da6bae847533cc59e9881e364f632927cd9
2016-06-24 18:12:10 +00:00
Chih-hung Hsieh 4837ce8ca6 Merge "Add +/- buttons to expand/collapse warning categories." 2016-06-24 18:07:44 +00:00
Alex Light 4e358ab2c3 Add system_other partition, install odex files
For AB devices, support flashing two system partitions for factory use.
The normal system image on one partition, but without dex preopt. And a
system_other image that just contains the odex files. The dex files will
not be stripped out of the system image, in case the second system
partition is wiped.

Setting BOARD_USES_SYSTEM_OTHER_ODEX := true in the BoardConfig.mk
enables this behavior.

One can control which directories are placed in system_other by the
SYSTEM_OTHER_ODEX_FILTER configuration variable. Currently we default
to only copying only app and priv-app odexs.

Bug: 29278988
Change-Id: I7f4e87da919e7dc6a89fd8c668193cd4e98631bc
2016-06-24 11:07:15 -07:00
Tianjie Xu 21e6dde63c Merge "Avoid writing too much new data per transfer" into nyc-mr1-dev 2016-06-24 18:06:22 +00:00
Tao Bao 1ea603491f Merge \\"Fix the path for verity_key replacement when signing.\\" am: 46abc55954
am: 5b9921369e

Change-Id: Iae1fbc6e07d1cada56d0f34b87dad2074b4664a6
2016-06-24 05:30:31 +00:00
Tao Bao c8338f1c35 Merge \\"Add ability to pass in payload_signer args\\" am: 8e6582b238
am: 8f9df9efb9

Change-Id: I3603ac55a8836406ca60c05959efffffb7ffca3a
2016-06-24 05:30:31 +00:00
Tao Bao 63cc08f93d Merge \\"releasetools: Support using payload_signer.\\" am: 983a42bdf1
am: 9322317ee7

Change-Id: I13c5eede68149c1dda6da9bb33a2527adc05dd8c
2016-06-24 05:30:31 +00:00
Tao Bao fb45739c55 Merge \\"releasetools: replace verity keyid\\" am: 6efa887f9b
am: 45d28d7392

Change-Id: I2104805b0de9ca28fde19f2c460b540977260dc2
2016-06-24 05:30:30 +00:00
Tao Bao b2814336a0 Merge \\"Replace OTA keys when signing for A/B devices.\\" am: f2c34ece3c
am: deb116a65d

Change-Id: Ib57f472bdd232a908e0399dc1365f9aaf8ddf3ba
2016-06-24 05:30:30 +00:00
Tao Bao 5b9921369e Merge \"Fix the path for verity_key replacement when signing.\"
am: 46abc55954

Change-Id: I9496d5826e077a470ac0ddd3565e3547611e6bf1
2016-06-24 05:27:03 +00:00
Baligh Uddin 8f9df9efb9 Merge \"Add ability to pass in payload_signer args\"
am: 8e6582b238

Change-Id: I83ab46e365fd09c7bf3d4a97fddf289e5d819ce0
2016-06-24 05:27:02 +00:00
Tao Bao 9322317ee7 Merge \"releasetools: Support using payload_signer.\"
am: 983a42bdf1

Change-Id: I027ae0f71c3a57ffad476791721b111605844f1d
2016-06-24 05:27:02 +00:00
Badhri Jagan Sridharan 45d28d7392 Merge \"releasetools: replace verity keyid\"
am: 6efa887f9b

Change-Id: I63b11e2e0d27100a58a05ea91c0e7c29bb0597ff
2016-06-24 05:27:01 +00:00
Tao Bao deb116a65d Merge \"Replace OTA keys when signing for A/B devices.\"
am: f2c34ece3c

Change-Id: I7eb287bd486d197b3c2c96616b558e7bc9536329
2016-06-24 05:27:00 +00:00
Tao Bao 8adcfd1688 Fix the path for verity_key replacement when signing.
system_root_image expects the key at ROOT/verity_key as opposed to
BOOT/verity_key. Also refactor the verity key replacement lines.

Bug: 29397395
Test: 'sign_target_files_apks.py --replace_verity_private_key newkey --replace_verity_public_key newkey.pub target_files.zip signed-target_files.zip' and verify the replaced key in boot.img.
Change-Id: I58a5defff4be008ad55d4b5a5b7148569c3b8d66
(cherry picked from commit e0ee794fa1)
2016-06-23 22:17:46 -07:00
Baligh Uddin 34eb000de5 Add ability to pass in payload_signer args
Bug: 28701652
Change-Id: I110d5fc14446e4a6a0f8e25dcb0d300decdf09a4
(cherry picked from commit 2abbbd0333)
2016-06-23 22:16:46 -07:00
Tao Bao 1a5e1d18a7 releasetools: Support using payload_signer.
For A/B OTAs, by default it calls 'openssl pkeyutl' to sign the payload
and metadata with the package private key. If the private key cannot be
accessed directly, a payload signer that knows how to do that should be
supplied via "--payload_signer <signer>".

The signer will be called with "-inkey <path_to_private_key>",
"-in <input_file>" and "-out <output_file>" parameters.

Test: Use a dummy signer, call 'ota_from_target_files.py --payload_signer <signer> <target_files.zip> <ota.zip>' and verify the signatures in the generated package.
Bug: 28701652
Change-Id: I26cfdd3fdba6fc90799221741b75426988e46fd3
(cherry picked from commit dea0f8bfed)
2016-06-23 22:15:30 -07:00
Badhri Jagan Sridharan 35c9b1243f releasetools: replace verity keyid
Replace verity keyid with the keyid extracted from cert
passed through --replace_verity_keyid. The veritykeyid in the
BOOT/cmdline of input target files is replaced with keyid
extracted from --replace_verity_keyid and written to the
output target files.

BUG: 28384658
Change-Id: Ic683f36f543c4fcd94b6f95e40f01200fbf45ee1
(cherry picked from commit b58d23fe00)
2016-06-23 22:13:12 -07:00
Tao Bao a80ed221b8 Replace OTA keys when signing for A/B devices.
It replaces the package verification key (change of path due to
system_root_image flag), as well as the payload verification key.

Bug: 29397395
Change-Id: I10435072aaf4356f2d8b5e1b6e82eb9cead7ad62
(cherry picked from commit 24a7206430)
2016-06-23 22:12:31 -07:00
Tao Bao 9e71a9e1a1 Merge \"Fix the path for verity_key replacement when signing.\" into nyc-mr1-dev
am: 5fdbfac337

Change-Id: Id66964a5659c17f87404baaa73f9b90b98fac7fe
2016-06-24 05:02:02 +00:00
Tao Bao b79e31756b resolve merge conflicts of 2abbbd0 to nyc-mr1-dev-plus-aosp
Change-Id: I2d06f0cec793185533ef2fc78428dfd99815030c
2016-06-23 19:48:40 -07:00
Tianjie Xu 37e29301e6 Avoid writing too much new data per transfer
Limit the number of blocks in each 'new' command to 1024. This should
decrease the chance of fsync error during an OTA update, similiar to
what we have done in b/29535618.

Bug: 29607757
Change-Id: I89f0a845d71eb810766e39860ab667c61b61a417
2016-06-23 18:00:16 -07:00
Tao Bao e0ee794fa1 Fix the path for verity_key replacement when signing.
system_root_image expects the key at ROOT/verity_key as opposed to
BOOT/verity_key. Also refactor the verity key replacement lines.

Bug: 29397395
Test: 'sign_target_files_apks.py --replace_verity_private_key newkey --replace_verity_public_key newkey.pub target_files.zip signed-target_files.zip' and verify the replaced key in boot.img.
Change-Id: I58a5defff4be008ad55d4b5a5b7148569c3b8d66
2016-06-23 16:23:14 -07:00
Chih-Hung Hsieh 465b610183 Add +/- buttons to expand/collapse warning categories.
* Add expand/collapse-all buttons to expand/collapse all warnings.
* Use HTML styles to reduce output file size.

Change-Id: Ica188cc4f123ce0ab8547f88315325c3e0560a39
Test: Checked output html file with Chrome browser.
2016-06-23 13:18:58 -07:00
Baligh Uddin 2abbbd0333 Add ability to pass in payload_signer args
Bug: 28701652
Change-Id: I110d5fc14446e4a6a0f8e25dcb0d300decdf09a4
2016-06-23 10:34:51 -07:00
Alex Klyubin e3e4b206c9 Merge \\\"Use Builder pattern for ApkVerifier parameters.\\\" am: 744e7746c4 am: 7dbd1ea408
am: ef11808f84

Change-Id: I9e851e7e32ceab8ea35b4f31bf51d63046336484
2016-06-23 00:42:43 +00:00
Alex Klyubin ef11808f84 Merge \\"Use Builder pattern for ApkVerifier parameters.\\" am: 744e7746c4
am: 7dbd1ea408

Change-Id: I425095197f451a3ea089cea75da13fbb01036f43
2016-06-23 00:40:11 +00:00
Alex Klyubin 7dbd1ea408 Merge \"Use Builder pattern for ApkVerifier parameters.\"
am: 744e7746c4

Change-Id: I36d18044ea627ff9f5f83ef8463476de07ce45ff
2016-06-23 00:37:28 +00:00
Alex Klyubin 9a41c93f41 Use Builder pattern for ApkVerifier parameters.
This should make it easier to add parameters/options without breaking
existing clients.

Bug: 27461702
Change-Id: Ia4577f78d703a6b91828dd08492c78d5e9afb110
2016-06-22 14:59:12 -07:00
Badhri Jagan Sridharan ed25565e63 Merge \"releasetools: replace verity keyid\" into nyc-mr1-dev
am: 05dcc3718a

Change-Id: I0e9e1b1b2b9ca826de09b81925760c19697b39dc
2016-06-22 20:59:55 +00:00
Badhri Jagan Sridharan 05dcc3718a Merge "releasetools: replace verity keyid" into nyc-mr1-dev 2016-06-22 20:54:21 +00:00
Tianjie Xu 5371829b86 Merge \"Limit the number of blocks in command zero\" into nyc-dev
am: 0eade3f027

Change-Id: I7f5cc1319863eb1ec1d87b6bf3e9cb62f3401e41
2016-06-22 05:17:42 +00:00
Tianjie Xu 8fe72d5479 Merge \"Limit the number of blocks in command zero\" into nyc-mr1-dev
am: 7112b50252

Change-Id: I30e4a669f0d7b819acc97ad6ca4ed5af666d994a
2016-06-21 23:37:25 +00:00
Tianjie Xu b64439b291 Limit the number of blocks in command zero
Limit the number of blocks in command zero to 1024 blocks. This
prevents the target size of one command from being too large and
might help to avoid fsync errors during the OTA update.

Bug: 29535618
Change-Id: Ic630cea2599138516162bd0029e2e4b2af75bf4f
(cherry picked from commit bb848c54a7)
2016-06-21 23:19:30 +00:00
Tianjie Xu 7112b50252 Merge "Limit the number of blocks in command zero" into nyc-mr1-dev 2016-06-21 23:19:12 +00:00
Tianjie Xu bb848c54a7 Limit the number of blocks in command zero
Limit the number of blocks in command zero to 1024 blocks. This
prevents the target size of one command from being too large and
might help to avoid fsync errors during the OTA update.

Bug: 29535618
Change-Id: Ic630cea2599138516162bd0029e2e4b2af75bf4f
2016-06-21 16:13:06 -07:00
Tao Bao 6047c24fae resolve merge conflicts of 9cbe37e to nyc-mr1-dev-plus-aosp
Change-Id: I9643386f714fe520e5732d0e6dbe821131ea6d02
2016-06-21 13:37:26 -07:00
Tao Bao dea0f8bfed releasetools: Support using payload_signer.
For A/B OTAs, by default it calls 'openssl pkeyutl' to sign the payload
and metadata with the package private key. If the private key cannot be
accessed directly, a payload signer that knows how to do that should be
supplied via "--payload_signer <signer>".

The signer will be called with "-inkey <path_to_private_key>",
"-in <input_file>" and "-out <output_file>" parameters.

Test: Use a dummy signer, call 'ota_from_target_files.py --payload_signer <signer> <target_files.zip> <ota.zip>' and verify the signatures in the generated package.
Bug: 28701652
Change-Id: I26cfdd3fdba6fc90799221741b75426988e46fd3
2016-06-20 20:32:37 -07:00
Elliott Hughes 1e070434c7 Merge \\\"Remove --no_prereq flag from OTA script.\\\" am: bc450fc9c8 am: bd30d5fa16
am: 38f9a845ca

Change-Id: Id2149bae492959ba44a520efe7ec73d55fe1e823
2016-06-21 00:10:55 +00:00
Elliott Hughes 38f9a845ca Merge \\"Remove --no_prereq flag from OTA script.\\" am: bc450fc9c8
am: bd30d5fa16

Change-Id: Ic083c9b038bd5a31f9b52ebd6fc498e0353239ca
2016-06-21 00:08:23 +00:00
Elliott Hughes bd30d5fa16 Merge \"Remove --no_prereq flag from OTA script.\"
am: bc450fc9c8

Change-Id: I35a4400afc829bf2b269135fa99f00979affd3bd
2016-06-21 00:05:51 +00:00
Badhri Jagan Sridharan b58d23fe00 releasetools: replace verity keyid
Replace verity keyid with the keyid extracted from cert
passed through --replace_verity_keyid. The veritykeyid in the
BOOT/cmdline of input target files is replaced with keyid
extracted from --replace_verity_keyid and written to the
output target files.

BUG: 28384658
Change-Id: Ic683f36f543c4fcd94b6f95e40f01200fbf45ee1
2016-06-20 21:52:32 +00:00
Elliott Hughes d8a52f9785 Remove --no_prereq flag from OTA script.
Bug: http://b/29393071
Test: aosp_flounder "make dist"
Change-Id: I9ec85210e118f7e525291e31ab4081a2bd10f998
2016-06-20 14:44:18 -07:00
Tao Bao 827e9dfd38 Merge \"Replace OTA keys when signing for A/B devices.\" into nyc-mr1-dev
am: 008babb191

Change-Id: I7062b5245187446c686ff58391dda7286e5ac887
2016-06-17 22:10:04 +00:00
Tao Bao 008babb191 Merge "Replace OTA keys when signing for A/B devices." into nyc-mr1-dev 2016-06-17 22:03:34 +00:00
Alex Klyubin 1e02291326 Merge \\\"Let caller handle NoSuchAlgorithmException.\\\" am: 8427083a26 am: a1daa9d537
am: 7f58c5d8f0

Change-Id: I46e349c6921425e6c0cdc9eb1ce14fb5d78bfd0d
2016-06-17 20:52:12 +00:00
Alex Klyubin 7f58c5d8f0 Merge \\"Let caller handle NoSuchAlgorithmException.\\" am: 8427083a26
am: a1daa9d537

Change-Id: I8d9677bdeb39d69fa1631a163229fa2b3a383d1d
2016-06-17 20:49:43 +00:00
Alex Klyubin a1daa9d537 Merge \"Let caller handle NoSuchAlgorithmException.\"
am: 8427083a26

Change-Id: I447c194f8f83cdec00760889f8c8f9278daf0ead
2016-06-17 20:47:02 +00:00
Alex Klyubin 257fe3f41a Merge \\\"maxSdkVersion can be specified for APK verification.\\\" am: 2ea2e205f4 am: d3ffd9241c
am: cbb41d2717

Change-Id: I05f5c66dbf64ec8d691bcefc0b2fdca375f68c14
2016-06-17 19:27:22 +00:00
Alex Klyubin cbb41d2717 Merge \\"maxSdkVersion can be specified for APK verification.\\" am: 2ea2e205f4
am: d3ffd9241c

Change-Id: If4dea9509b303386ccb8ae181cd98215055e9fee
2016-06-17 19:24:41 +00:00
Alex Klyubin d3ffd9241c Merge \"maxSdkVersion can be specified for APK verification.\"
am: 2ea2e205f4

Change-Id: I95cb3936c1b60a26ad4002fcb6dc551f58c0ccbd
2016-06-17 19:22:04 +00:00
Tao Bao 24a7206430 Replace OTA keys when signing for A/B devices.
It replaces the package verification key (change of path due to
system_root_image flag), as well as the payload verification key.

Bug: 29397395
Change-Id: I10435072aaf4356f2d8b5e1b6e82eb9cead7ad62
2016-06-17 12:16:31 -07:00
Alex Klyubin 05f87de7a3 Let caller handle NoSuchAlgorithmException.
This surfaces relevant NoSuchAlgorithmExceptions to the caller instead
of rethrowing as other exception types. Some setups need to be able to
distringuish issues due to their own misconfiguration
(required crypto algorithm mising -- NoSuchAlgorithmException) from
issues with the APK being signed or verified.

Bug: 27461702
Change-Id: I993f73edb29b2cd4cc485734a89a924ec357ef19
2016-06-17 12:15:32 -07:00
Alex Klyubin f31ced2e10 maxSdkVersion can be specified for APK verification.
This enables verification of APKs which are served to a specific
range of Android platform versions, or to replicate behavior of
particular platform versions.

Bug: 27461702
Change-Id: I44ab4c99419eb97d72c4ccd109137fe1efda577d
2016-06-17 10:02:47 -07:00
Alex Klyubin e01622b365 Merge \\\"Reject PKCS#7 SignerInfo with unsupported parameters.\\\" am: 21213cff9c am: 88297dac19
am: 23bd7d68f8

Change-Id: Icd37ca140db1bea63ce477fd948c1196dc1f73f9
2016-06-17 16:12:04 +00:00
Alex Klyubin 23bd7d68f8 Merge \\"Reject PKCS#7 SignerInfo with unsupported parameters.\\" am: 21213cff9c
am: 88297dac19

Change-Id: I189a0d980ec51e48237e19670bcd863fdfbd909a
2016-06-17 16:09:19 +00:00
Alex Klyubin 88297dac19 Merge \"Reject PKCS#7 SignerInfo with unsupported parameters.\"
am: 21213cff9c

Change-Id: I9bec518914d7e2eff978dc7d189eb5641148f5ad
2016-06-17 16:06:31 +00:00