Commit Graph

4255 Commits

Author SHA1 Message Date
Wei Wang
05e6f679e6 Revert "Include vendor partitions in target zip generation"
This reverts commit 421fe44ae8.

Change-Id: Id45781de73735783bc7dfb6fc2838957578d00d3
2016-05-11 14:49:50 +00:00
Ian Rogers
f382973250 Add code search links to warnings.
Add argument parsing using the argparse library.
Make HTML easier to read by adding a \n after each table row.

Change-Id: I6b745fc60afb96fb51e5f69df7d607b5fb8da0e5
2016-05-10 22:36:38 -07:00
Dirk Dougherty
ceb4a59409 Custom data names for reference extensions.
Change-Id: I55088a1ddb40fc3648dc8b983c94330084bb65f1
2016-05-10 20:28:58 -07:00
Wei Wang
90b4658904 Merge "Include vendor partitions in target zip generation" am: bb05fd768c
am: eb06b4d3b3

* commit 'eb06b4d3b3862759ca15e9c52802808debc0a295':
  Include vendor partitions in target zip generation

Change-Id: I9646c90fbe5c57a1f8c6022b8aad03f4e19f56e7
2016-05-11 02:27:00 +00:00
Treehugger Robot
bb05fd768c Merge "Include vendor partitions in target zip generation" 2016-05-11 02:18:58 +00:00
Dirk Dougherty
7423e9374d For reference extension builds, update book_path to reference the appropriate file location. am: 8dbd7b96cf am: ce46b86219 am: 1d2dbfe4f5
am: 6598f78068

* commit '6598f78068106179d31b0a8ccdddeb602ad12942':
  For reference extension builds, update book_path to reference the appropriate file location.

Change-Id: I733fca19cdd5119414ad1febea704b5ba979215d
2016-05-11 02:04:41 +00:00
Dirk Dougherty
6598f78068 For reference extension builds, update book_path to reference the appropriate file location. am: 8dbd7b96cf am: ce46b86219
am: 1d2dbfe4f5

* commit '1d2dbfe4f5d929d5c671a1d73ec38d8246b1b17a':
  For reference extension builds, update book_path to reference the appropriate file location.

Change-Id: Id5ddec169d92b36f05a1d29b189b92f74396acb5
2016-05-11 02:01:49 +00:00
Dirk Dougherty
1d2dbfe4f5 For reference extension builds, update book_path to reference the appropriate file location. am: 8dbd7b96cf
am: ce46b86219

* commit 'ce46b86219b973a5f90d16e5e59073952ef01519':
  For reference extension builds, update book_path to reference the appropriate file location.

Change-Id: Icc7e68ec871661b3d2824452a4c12b24f9a83aee
2016-05-11 01:58:57 +00:00
Dirk Dougherty
8dbd7b96cf For reference extension builds, update book_path to reference the appropriate file location.
Change-Id: I1eab8fcde8348e7cd7efa90c5c1768b1103e5b97
2016-05-10 17:56:19 -07:00
Ian Rogers
bae8d1cd18 Merge "Add error prone patterns to warn.py" am: 620cbb1652
am: 02c316e982

* commit '02c316e9826e32b479111e53edea52d96cce0add':
  Add error prone patterns to warn.py

Change-Id: I56e90d524b7b9810b6c24f96685a5f791ea91877
2016-05-10 22:14:17 +00:00
Ian Rogers
32bb9bd03a Add error prone patterns to warn.py
Bug: 28681096

(cherry picked from commit df79adacab)
Change-Id: I06ac0ed4593b03cea0a8163ca85e393ff1358855
2016-05-10 13:54:36 -07:00
Alex Klyubin
1ec0bb3506 Merge "ApkSignerEngine abstraction for apksigner-core library." am: afd3d55261
am: 92fc359815

* commit '92fc3598154e04a8fcba71e227d0a4fe68138220':
  ApkSignerEngine abstraction for apksigner-core library.

Change-Id: I216f18142f8da0cc5fc08d9e165ff36ec93aec92
2016-05-10 19:22:31 +00:00
Treehugger Robot
afd3d55261 Merge "ApkSignerEngine abstraction for apksigner-core library." 2016-05-10 19:13:41 +00:00
Wei Wang
421fe44ae8 Include vendor partitions in target zip generation
This change will enable the target zip to include partition defined in
BRILLO_VENDOR_PARTITIONS. This is necessary for OTA to support
partitions other than boot and system in ab_partitions.txt.

BUG: 28623063
Change-Id: I6e0969c31c9ad2e8285c6f560825c160aa8c4d55
2016-05-10 11:00:09 -07:00
Ian Rogers
5de3974b2c Merge "Sort warnings with most frequent first." am: 2e1409538c
am: 075b118fc6

* commit '075b118fc6b080695fa302883f8c904d36d8f622':
  Sort warnings with most frequent first.

Change-Id: Ib94785804d0fc9553855d08bf0e922f742cfd1c8
2016-05-10 17:46:49 +00:00
Ian Rogers
2f4ce82d13 Sort warnings with most frequent first.
Change-Id: Id608c20d065bec83dcb2993658cc743d5e9dcb46
2016-05-10 09:34:29 -07:00
Alex Klyubin
8d894edad7 Merge "APK Signature Scheme v2 signing logic for apksigner-core." am: 2627b4199f
am: c65bc9ea52

* commit 'c65bc9ea52e431d7ee957ad4b41c7e01f0a543c2':
  APK Signature Scheme v2 signing logic for apksigner-core.

Change-Id: I75807555d9066ce4acf961d811bc2ad9b7eeea08
2016-05-09 20:27:20 +00:00
Alex Klyubin
5f987967da ApkSignerEngine abstraction for apksigner-core library.
This adds the ApkSignerEngine abstraction to the apksigner-core
library. This abstraction enables the separation of
parsing/building/writing of an APK from signing the APK.

Users of ApkSignerEngine invoke it during specific I/O events (e.g.,
JAR entry encountered in input APK, all output JAR entries ready).
The engine responds by occasionally providing instructions about what
to do next. For example, it may provide JAR entries to be added to
the output APK, thus making the output APK signed.

The default implementation of ApkSignerEngine will be provided in  a
follow-up commit.

Bug: 26516150
Bug: 27461702
Change-Id: Ia85fd09497a6e2ff3103ba10c53a1848ba731f7b
2016-05-09 13:20:03 -07:00
Alex Klyubin
265db0826e APK Signature Scheme v2 signing logic for apksigner-core.
apksigner-code library will offer a high-level primitive (future
commit) for signing APKs. This is meant to be used by
build/tools/signapk and Android Studio's APK builder/signer.

This commit adds a lower-level APK Signature Scheme v2 (aka v2
signing) code which will be used by the future APK signing abstraction
exposed by this library.

All classes (except DataSource and DataSources) added by this commit
are internal (i.e., implementation details of this library). Clients
of this library should not be using these classes.

Bug: 26516150
Change-Id: I98d4da0666cf122667c67565108ea4fb28ac51e6
2016-05-09 12:16:33 -07:00
Scott Main
a39058abcb Revert "add studio survey button to header." 40k responses is probably enough. am: 4d6e15df03 am: fa46661aa7 am: 3ff492deee am: 20324e21f9
am: 3ce1a3ba57

* commit '3ce1a3ba578f79494bf47756871973d38ce9529d':
  Revert "add studio survey button to header." 40k responses is probably enough.

Change-Id: Ic221e35999154134ba9bf9b9e3efaa86d4b12781
2016-05-06 16:41:52 +00:00
Scott Main
3ce1a3ba57 Revert "add studio survey button to header." 40k responses is probably enough. am: 4d6e15df03 am: fa46661aa7 am: 3ff492deee
am: 20324e21f9

* commit '20324e21f9752fcae8775f1a65dc24ffffe592e7':
  Revert "add studio survey button to header." 40k responses is probably enough.

Change-Id: I22deb175299dd6614dc72c6daaa5baf2fab9342a
2016-05-06 16:37:05 +00:00
Scott Main
20324e21f9 Revert "add studio survey button to header." 40k responses is probably enough. am: 4d6e15df03 am: fa46661aa7
am: 3ff492deee

* commit '3ff492deee3df77f6a1ce8afa0fc8ac75d8808c2':
  Revert "add studio survey button to header." 40k responses is probably enough.

Change-Id: Ib0bfd417c340f1f5d734f4551813cd6079b28f3e
2016-05-06 16:32:20 +00:00
Scott Main
fa46661aa7 Revert "add studio survey button to header." 40k responses is probably enough.
am: 4d6e15df03

* commit '4d6e15df032f561d64a11190df052aec364a3d47':
  Revert "add studio survey button to header." 40k responses is probably enough.

Change-Id: I7fd13ab441835b3515e5a66aeda8e27ce748c8a8
2016-05-06 16:22:24 +00:00
Scott Main
4d6e15df03 Revert "add studio survey button to header."
40k responses is probably enough.

This reverts commit 075aad742a.

Change-Id: I0c1964fda243c32f57156e762edec511314d9cb5
2016-05-06 16:08:56 +00:00
Alex Klyubin
6db860a1d7 Merge "JAR signing logic for the apksigner-core library." am: b60b340597
am: b0c9166c04

* commit 'b0c9166c040f1f65adab6725a559802c31011401':
  JAR signing logic for the apksigner-core library.

Change-Id: I40cfec9dbbff4c0d70fec7df3ce926af5a62b3a3
2016-05-05 23:00:17 +00:00
Treehugger Robot
b60b340597 Merge "JAR signing logic for the apksigner-core library." 2016-05-05 22:42:43 +00:00
Alex Klyubin
f2ea61304a Merge "SHA-256 with ECDSA supported only on API Level 21 and higher." am: 33d34ae236
am: 5536a1bced

* commit '5536a1bced72d7322ead552643b28f4847c11640':
  SHA-256 with ECDSA supported only on API Level 21 and higher.

Change-Id: I20d1db835482a619c290064408d0163fb46f655d
2016-05-05 19:56:52 +00:00
Alex Klyubin
85b8a0146e JAR signing logic for the apksigner-core library.
apksigner-code library will offer a high-level primitive (future
commit) for signing APKs. This is meant to be used by
build/tools/signapk and Android Studio's APK builder/signer.

This commit adds a lower-level JAR signing (aka v1 signing) code which
will be used by the future APK signing abstraction exposed by this
library.

All classes added by this commit are internal (i.e., implementation
details of this library). Clients of this library should not be using
these classes.

Bug: 26516150
Change-Id: I5cecd435e63aab206d63868be5e0d0e289e7c423
2016-05-05 10:53:56 -07:00
Amanda Kassay
c1d4c9fd8c Update to reference templates to include resources to fix navigation highlighting issues. b/28560594 b/28586131 am: 307d36d9d4 am: aa012638d6 am: 69ef986675
am: 5461c2f0cb

* commit '5461c2f0cb4156b71f854c03f8516ff1ac9e5964':
  Update to reference templates to include resources to fix navigation highlighting issues. b/28560594 b/28586131

Change-Id: Iec6afc96e082bcf3131e560873c686a0eea802d9
2016-05-05 14:04:25 +00:00
Amanda Kassay
5461c2f0cb Update to reference templates to include resources to fix navigation highlighting issues. b/28560594 b/28586131 am: 307d36d9d4 am: aa012638d6
am: 69ef986675

* commit '69ef986675f98d48f98c2d8a28492a5b636ef2da':
  Update to reference templates to include resources to fix navigation highlighting issues. b/28560594 b/28586131

Change-Id: Id3e9210f4c704e13b1c3c5a6cf8219f2d83080a8
2016-05-05 14:02:00 +00:00
Amanda Kassay
69ef986675 Update to reference templates to include resources to fix navigation highlighting issues. b/28560594 b/28586131 am: 307d36d9d4
am: aa012638d6

* commit 'aa012638d607cd8d0dc919ffcffd8009bcc389e4':
  Update to reference templates to include resources to fix navigation highlighting issues. b/28560594 b/28586131

Change-Id: Ib64ca322b4a86f8ae4cd55e087bce7ab74720963
2016-05-05 13:59:33 +00:00
Amanda Kassay
307d36d9d4 Update to reference templates to include resources to fix navigation highlighting issues.
b/28560594
b/28586131

Staged:
http://akassay.nyc.corp.google.com:8080/reference/android/Manifest.permission_group.html?tenant=android

Change-Id: I6cefa0014a308e571f88b0635f6bdae21b4276cb
2016-05-05 02:35:22 +00:00
Tao Bao
ce0c7f8840 Merge "releasetools: Perform erase commands first." into nyc-dev
am: 25fe877c61

* commit '25fe877c6138afc122331038a271cc80bd78f394':
  releasetools: Perform erase commands first.

Change-Id: Ia8b081097bb98adbf5acfd57d05368f9ca7eb4fa
2016-05-04 22:36:15 +00:00
Tao Bao
25fe877c61 Merge "releasetools: Perform erase commands first." into nyc-dev 2016-05-04 22:32:39 +00:00
Tao Bao
66f1fa6565 releasetools: Perform erase commands first.
We used to erase all the unused blocks at the end of an update. In order
to work around the eMMC issue in b/28347095, we move part of the erase
commands, which won't be used during the update, to the beginning. The
reset would be erased at the end. This is in hopes of avoiding eMMC
getting starved for clean blocks which would otherwise fail an OTA.

Bug: 28347095
Change-Id: Ia96b06216b35d6700858687a66734af36d0ec213
2016-05-04 12:21:42 -07:00
smain@google.com
35db95c379 Merge "remove left nav from any remaining sdk/ and tools/ pages. There are still some sdk/ pages but all tools/ pages are gone, so although we could just ignore such pages, better safe than sorry, so going to catch those too." into mnc-mr-docs am: 7204a974dc am: a4da48a31f am: 68d68d9f0f
am: fc992dd29a

* commit 'fc992dd29a52d2267f2d8928c4ebfdf4a7690837':
  remove left nav from any remaining sdk/ and tools/ pages. There are still some sdk/ pages but all tools/ pages are gone, so although we could just ignore such pages, better safe than sorry, so going to catch those too.

Change-Id: I01d8d62720989a5cdd5bb402c58cafbc3257630b
2016-05-04 18:44:03 +00:00
smain@google.com
fc992dd29a Merge "remove left nav from any remaining sdk/ and tools/ pages. There are still some sdk/ pages but all tools/ pages are gone, so although we could just ignore such pages, better safe than sorry, so going to catch those too." into mnc-mr-docs am: 7204a974dc am: a4da48a31f
am: 68d68d9f0f

* commit '68d68d9f0f4434abb861a90bf5ff6ba5b1c98321':
  remove left nav from any remaining sdk/ and tools/ pages. There are still some sdk/ pages but all tools/ pages are gone, so although we could just ignore such pages, better safe than sorry, so going to catch those too.

Change-Id: If633ef35502fb79d0735d7bf39862e2d7a715938
2016-05-04 18:40:35 +00:00
smain@google.com
68d68d9f0f Merge "remove left nav from any remaining sdk/ and tools/ pages. There are still some sdk/ pages but all tools/ pages are gone, so although we could just ignore such pages, better safe than sorry, so going to catch those too." into mnc-mr-docs am: 7204a974dc
am: a4da48a31f

* commit 'a4da48a31f52c9ea98855a2af4f5a7f9f405d13c':
  remove left nav from any remaining sdk/ and tools/ pages. There are still some sdk/ pages but all tools/ pages are gone, so although we could just ignore such pages, better safe than sorry, so going to catch those too.

Change-Id: I055deb6bfb3761b0e6486cfe6b9c4c311f20e0c8
2016-05-04 18:37:15 +00:00
Scott Main
7204a974dc Merge "remove left nav from any remaining sdk/ and tools/ pages. There are still some sdk/ pages but all tools/ pages are gone, so although we could just ignore such pages, better safe than sorry, so going to catch those too." into mnc-mr-docs 2016-05-04 18:31:39 +00:00
Andrew Solovay
5396403b6d doc: Changed go/ category etc. to topic/ am: 36af4d4d08 am: dae70906a5 am: fd017785eb
am: 5ca0e984cb

* commit '5ca0e984cb75c65451ccf8e5be561c5b730323fa':
  doc: Changed go/ category etc. to topic/

Change-Id: Ice81b3bc310ce85690201eee31ef685d4d5af948
2016-05-04 18:26:21 +00:00
Andrew Solovay
5ca0e984cb doc: Changed go/ category etc. to topic/ am: 36af4d4d08 am: dae70906a5
am: fd017785eb

* commit 'fd017785eb412e0a754de9104391274b084a93f0':
  doc: Changed go/ category etc. to topic/

Change-Id: I1b686880d3a376b991dadd84f7ee0a07633aef64
2016-05-04 18:22:51 +00:00
Andrew Solovay
fd017785eb doc: Changed go/ category etc. to topic/ am: 36af4d4d08
am: dae70906a5

* commit 'dae70906a53c692daee4d3ae92efe2166a01fec2':
  doc: Changed go/ category etc. to topic/

Change-Id: I5356efde244ffdb17b65199689a8e9255724bd7e
2016-05-04 18:19:08 +00:00
smain@google.com
cff93c3f81 remove left nav from any remaining sdk/ and tools/ pages.
There are still some sdk/ pages but all tools/ pages are gone,
so although we could just ignore such pages, better safe than sorry,
so going to catch those too.

Change-Id: Iaa16fcbf88db39f38b8d5f0dee5f8ab068664f3c
2016-05-04 10:19:00 -07:00
Alex Klyubin
b141ded82b SHA-256 with ECDSA supported only on API Level 21 and higher.
Turns out APK signatures using SHA-256 with ECDSA are accepted only by
platforms with API Level 21 and higher, not 18 and higher.

Bug: 28296599

Change-Id: I3fab5be17bf3a9bdbf4d84d90d51448027c7e761
2016-05-03 18:15:39 -07:00
Andrew Solovay
36af4d4d08 doc: Changed go/ category etc. to topic/
Per instructions from DD and JF, changing the top-level go/
directory to topic/ ; as a result, I'm going into AK's recent CLs
(in which she added infrastructure for the new go/ directory)
and changing those too.

See first comment for doc stage location.

bug: 28558659
Change-Id: Iaa10f1a9f7477b00f6bfaa748039d146dfb292fe
2016-05-03 16:09:21 -07:00
Amanda Kassay
9f329b5a26 Update path to be absolute instead of relative am: 6da868246b am: bd5a129e00 am: cb380fcbe3
am: 6d50e5b5fe

* commit '6d50e5b5fee8e3c30c6fb300fd902b8afb3562e6':
  Update path to be absolute instead of relative

Change-Id: I9220b30ec4484b39a6123888ed759e6b00da2ed1
2016-05-03 22:26:47 +00:00
Amanda Kassay
6d50e5b5fe Update path to be absolute instead of relative am: 6da868246b am: bd5a129e00
am: cb380fcbe3

* commit 'cb380fcbe35399226b51055bdffc38b2952a557d':
  Update path to be absolute instead of relative

Change-Id: I911f81de6c66d0827ab9b0571599d1a13582025e
2016-05-03 22:24:23 +00:00
Amanda Kassay
cb380fcbe3 Update path to be absolute instead of relative am: 6da868246b
am: bd5a129e00

* commit 'bd5a129e0092cbecfa29c970d9055302b9596961':
  Update path to be absolute instead of relative

Change-Id: Ieab3056e0f5531a6556a8d49e6b50dd1f2a88c82
2016-05-03 22:22:03 +00:00
Amanda Kassay
6da868246b Update path to be absolute instead of relative
Staged:
http://akassay.nyc.corp.google.com:8080/reference/packages.html?tenant=android

b/28560594


Change-Id: I7a13aebf0932a8a37fcc09bad4dcbe4cc5252bb3
2016-05-03 22:11:18 +00:00
Alex Klyubin
2d2648643b Merge "Separate logic for alg selection for OTA and APK signing." am: cc3440cc1d
am: 459b93d6f8

* commit '459b93d6f84a17c0f00394d24eb8250a73391eee':
  Separate logic for alg selection for OTA and APK signing.

Change-Id: I9f351f29f01212b57e6d75dc8d6bc588dd2dc648
2016-05-03 21:00:22 +00:00