commit | 78fb19f9110924b507b8e5dfb9bc858a2f1b1b9f | [log] [tgz] |
---|---|---|
author | Khaled Abdelmohsen <khelmy@google.com> | Fri Sep 25 22:01:53 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Sep 25 22:01:53 2020 +0000 |
tree | 0bc6c4a101d6b51d587738e09f63216112cafc70 | |
parent | f4463750fe06b43c57bf23aa7fa288b7e973e0fe [diff] | |
parent | 70fae881edf1c920f38460cc05eab34e3f6f3238 [diff] |
Accept lineage for source stamps in signer am: 271820bebc am: 70fae881ed Original change: https://googleplex-android-review.googlesource.com/c/platform/tools/apksig/+/12691623 Change-Id: I5b00672e81bfc4cda91e744d4f38518b08f7e478
diff --git a/src/main/java/com/android/apksig/DefaultApkSignerEngine.java b/src/main/java/com/android/apksig/DefaultApkSignerEngine.java index 5fb2600..45ea9ec 100644 --- a/src/main/java/com/android/apksig/DefaultApkSignerEngine.java +++ b/src/main/java/com/android/apksig/DefaultApkSignerEngine.java
@@ -368,13 +368,12 @@ return processedConfigs; } - private ApkSigningBlockUtils.SignerConfig createV4SignerConfig() - throws InvalidKeyException, IllegalStateException { + private ApkSigningBlockUtils.SignerConfig createV4SignerConfig() throws InvalidKeyException { List<ApkSigningBlockUtils.SignerConfig> configs = createSigningBlockSignerConfigs( true, ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V4); if (configs.size() != 1) { - throw new IllegalStateException("Only accepting one signer config for V4 Signature."); + throw new InvalidKeyException("Only accepting one signer config for V4 Signature."); } return configs.get(0); }