From 5993f7e568543c777bee51a140c34fa8953a178a Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Mon, 25 Sep 2023 19:02:07 +0200 Subject: [PATCH] fix: Only load the keystore once per instantiation --- src/main/kotlin/app/revanced/library/ApkSigner.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/library/ApkSigner.kt b/src/main/kotlin/app/revanced/library/ApkSigner.kt index 91743d4..419fc0c 100644 --- a/src/main/kotlin/app/revanced/library/ApkSigner.kt +++ b/src/main/kotlin/app/revanced/library/ApkSigner.kt @@ -116,8 +116,9 @@ object ApkSigner { logger.fine("Creating keystore") return KeyStore.getInstance("BKS", BouncyCastleProvider.PROVIDER_NAME).apply { + load(null) + entries.forEach { entry -> - load(null) // Add all entries to the keystore. setKeyEntry( entry.alias,