remove newlines from base64 output

This commit is contained in:
Benjamin Halko 2023-09-25 10:15:56 -07:00
parent 99c92069b9
commit 378d62395a
No known key found for this signature in database
GPG Key ID: 790C70040EB331A0

View File

@ -40,7 +40,7 @@ class LegacySettingsProvider : ContentProvider() {
val keystoreFile = File(context!!.getExternalFilesDir(null), "/revanced-manager.keystore")
if (keystoreFile.exists()) {
val keystoreBytes = keystoreFile.readBytes()
val keystoreBase64 = Base64.encodeToString(keystoreBytes, Base64.DEFAULT)
val keystoreBase64 = Base64.encodeToString(keystoreBytes, Base64.DEFAULT).replace("\n", "")
json.put("keystore", keystoreBase64)
}