OSDN Git Service

APK Signature Scheme v2 APK verifier.
authorAlex Klyubin <klyubin@google.com>
Tue, 7 Jun 2016 20:18:57 +0000 (13:18 -0700)
committerAlex Klyubin <klyubin@google.com>
Wed, 8 Jun 2016 15:23:30 +0000 (08:23 -0700)
commit8740e9df19a67e11c231596a9aa16f464679a414
treeac25aa2ce18d5efa1bb2d94729ec8ab5e602a974
parentebe68ec23764644a986a5220c325f84c0fabd682
APK Signature Scheme v2 APK verifier.

This adds the ApkVerifier class which verifies APKs using APK
Signature Scheme v2 only. In a follow-up commit this class will be
extended to verify APKs using JAR signature scheme when necessary.

The APK verifier is designed to not just verify an APK, but also
report errors, warnings, and information about signers in a structured
way, to enable tools to surface this information to users in various
ways.

Bug: 27461702
Change-Id: I10c6ba436021d86b6dbf6d3cf44494652adacb66
tools/apksigner/core/src/com/android/apksigner/core/ApkVerifier.java [new file with mode: 0644]
tools/apksigner/core/src/com/android/apksigner/core/DefaultApkSignerEngine.java
tools/apksigner/core/src/com/android/apksigner/core/internal/apk/v2/ContentDigestAlgorithm.java
tools/apksigner/core/src/com/android/apksigner/core/internal/apk/v2/SignatureAlgorithm.java
tools/apksigner/core/src/com/android/apksigner/core/internal/apk/v2/V2SchemeSigner.java
tools/apksigner/core/src/com/android/apksigner/core/internal/apk/v2/V2SchemeVerifier.java [new file with mode: 0644]
tools/apksigner/core/src/com/android/apksigner/core/internal/util/DelegatingX509Certificate.java [new file with mode: 0644]
tools/apksigner/core/src/com/android/apksigner/core/internal/util/MessageDigestSink.java [moved from tools/apksigner/core/src/com/android/apksigner/core/internal/apk/v2/MessageDigestSink.java with 97% similarity]
tools/apksigner/core/src/com/android/apksigner/core/internal/zip/ZipUtils.java