OSDN Git Service

ApkSignerEngine abstraction for apksigner-core library.
authorAlex Klyubin <klyubin@google.com>
Thu, 5 May 2016 21:42:53 +0000 (14:42 -0700)
committerAlex Klyubin <klyubin@google.com>
Mon, 9 May 2016 20:20:03 +0000 (13:20 -0700)
commit5f987967da8cf936dd5dc402a1d9c2f2235d7dda
tree6a500ed535b32cb47e3285497e7daa9a4643f7cc
parent2627b4199f539e62a2c96c6c445b187df2177d9b
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
tools/apksigner/core/src/com/android/apksigner/core/ApkSignerEngine.java [new file with mode: 0644]