Backup/restore improvement and bug fix
This commit is contained in:
@@ -2517,7 +2517,7 @@ private fun updateIcons(viewModel: ViewModel, acc: Account?) {
|
|||||||
|
|
||||||
private fun backup(ctx: Context, password: String) {
|
private fun backup(ctx: Context, password: String) {
|
||||||
val files = arrayListOf("accounts", "config", "contacts", "call_history",
|
val files = arrayListOf("accounts", "config", "contacts", "call_history",
|
||||||
"messages", "gzrtp.zid", "cert.pem", "ca_cert", "ca_certs.crt")
|
"messages", "uuid", "gzrtp.zid", "cert.pem", "ca_cert", "ca_certs.crt")
|
||||||
File(BaresipService.filesPath).walk().forEach {
|
File(BaresipService.filesPath).walk().forEach {
|
||||||
if (it.name.endsWith(".png"))
|
if (it.name.endsWith(".png"))
|
||||||
files.add(it.name)
|
files.add(it.name)
|
||||||
|
|||||||
@@ -740,7 +740,7 @@ object Utils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun unZip(zipFilePath: String): Boolean {
|
fun unZip(zipFilePath: String): Boolean {
|
||||||
val allFiles = listOf("accounts", "history", "config", "contacts", "messages", "uuid",
|
val allFiles = listOf("accounts", "call_history", "config", "contacts", "messages", "uuid",
|
||||||
"gzrtp.zid", "cert.pem", "ca_cert", "ca_certs.crt")
|
"gzrtp.zid", "cert.pem", "ca_cert", "ca_certs.crt")
|
||||||
val zipFiles = mutableListOf<String>()
|
val zipFiles = mutableListOf<String>()
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user