OSDN Git Service

AAPT2: Remove signatures from multi-APK artifacts.
authorShane Farmer <safarmer@google.com>
Fri, 29 Sep 2017 18:59:25 +0000 (11:59 -0700)
committerShane Farmer <safarmer@google.com>
Wed, 13 Dec 2017 00:25:26 +0000 (16:25 -0800)
commit3ff44436a10d512e25d072d51ea84bfb85d69365
tree93a0575c30f671ae9e30e99c63b06a4eda42cbe4
parent67e8a3074d7ef42734d44f3a8d87635e201bd660
AAPT2: Remove signatures from multi-APK artifacts.

Remove signer files (.SF and public key) as well as the original
manifest file from any output artifacts. Since the artifacts are not
signed, we want to remove the original signature and manifest. The APK
signer tool will add these back later.

Updated the context wrapper to enable verbose mode to be cleared. This
lets us have more specific log messages when splitting an APK as at this
point the artifacts and filters are more interesting than the files removed.

Test: Manually split an APK and verified the filles were removed while
      leaving the other META-INF entries.
Test: Unit tests

Change-Id: Ia59993b5570f802130c6e3ba42398a00821061ea
tools/aapt2/optimize/MultiApkGenerator.cpp