Skip to content

Commit

Permalink
fix: Only load the keystore once per instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Sep 25, 2023
1 parent fda383a commit 5993f7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/app/revanced/library/ApkSigner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5993f7e

Please sign in to comment.