Add argument parsing using the argparse library.
Make HTML easier to read by adding a \n after each table row.
Change-Id: I6b745fc60afb96fb51e5f69df7d607b5fb8da0e5
am: eb06b4d3b3
* commit 'eb06b4d3b3862759ca15e9c52802808debc0a295':
Include vendor partitions in target zip generation
Change-Id: I9646c90fbe5c57a1f8c6022b8aad03f4e19f56e7
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
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
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
am: b0c9166c04
* commit 'b0c9166c040f1f65adab6725a559802c31011401':
JAR signing logic for the apksigner-core library.
Change-Id: I40cfec9dbbff4c0d70fec7df3ce926af5a62b3a3
am: 5536a1bced
* commit '5536a1bced72d7322ead552643b28f4847c11640':
SHA-256 with ECDSA supported only on API Level 21 and higher.
Change-Id: I20d1db835482a619c290064408d0163fb46f655d
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
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
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
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
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
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
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
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
am: 6d50e5b5fe
* commit '6d50e5b5fee8e3c30c6fb300fd902b8afb3562e6':
Update path to be absolute instead of relative
Change-Id: I9220b30ec4484b39a6123888ed759e6b00da2ed1
am: cb380fcbe3
* commit 'cb380fcbe35399226b51055bdffc38b2952a557d':
Update path to be absolute instead of relative
Change-Id: I911f81de6c66d0827ab9b0571599d1a13582025e
am: bd5a129e00
* commit 'bd5a129e0092cbecfa29c970d9055302b9596961':
Update path to be absolute instead of relative
Change-Id: Ieab3056e0f5531a6556a8d49e6b50dd1f2a88c82
am: 459b93d6f8
* commit '459b93d6f84a17c0f00394d24eb8250a73391eee':
Separate logic for alg selection for OTA and APK signing.
Change-Id: I9f351f29f01212b57e6d75dc8d6bc588dd2dc648