mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
fix(export-settings): export patches as json object
This commit is contained in:
parent
4de274bf62
commit
f7c11d07a8
1 changed files with 2 additions and 3 deletions
|
@ -40,8 +40,7 @@ class ExportSettingsActivity : Activity() {
|
|||
val keystoreFile = File(getExternalFilesDir(null), "/revanced-manager.keystore")
|
||||
if (keystoreFile.exists()) {
|
||||
val keystoreBytes = keystoreFile.readBytes()
|
||||
val keystoreBase64 =
|
||||
Base64.encodeToString(keystoreBytes, Base64.DEFAULT).replace("\n", "")
|
||||
val keystoreBase64 = Base64.encodeToString(keystoreBytes, Base64.DEFAULT)
|
||||
json.put("keystore", keystoreBase64)
|
||||
}
|
||||
|
||||
|
@ -50,7 +49,7 @@ class ExportSettingsActivity : Activity() {
|
|||
if (storedPatchesFile.exists()) {
|
||||
val patchesBytes = storedPatchesFile.readBytes()
|
||||
val patches = String(patchesBytes, Charsets.UTF_8)
|
||||
json.put("patches", patches)
|
||||
json.put("patches", JSONObject(patches))
|
||||
}
|
||||
|
||||
// Send data back
|
||||
|
|
Loading…
Reference in a new issue