Fixed file name gzrtp.zid
This commit is contained in:
@ -1564,7 +1564,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
|
|
||||||
private fun backup(password: String) {
|
private fun backup(password: String) {
|
||||||
val files = arrayListOf("accounts", "call_history", "config", "contacts", "messages", "uuid",
|
val files = arrayListOf("accounts", "call_history", "config", "contacts", "messages", "uuid",
|
||||||
"zrtp_cache.dat", "zrtp_zid", "cert.pem", "ca_cert", "ca_certs.crt")
|
"gzrtp.zid", "cert.pem", "ca_cert", "ca_certs.crt")
|
||||||
File(BaresipService.filesPath).walk().forEach {
|
File(BaresipService.filesPath).walk().forEach {
|
||||||
if (it.name.endsWith(".png")) files.add(it.name)
|
if (it.name.endsWith(".png")) files.add(it.name)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -783,7 +783,7 @@ object Utils {
|
|||||||
|
|
||||||
fun unZip(zipFilePath: String): Boolean {
|
fun unZip(zipFilePath: String): Boolean {
|
||||||
val allFiles = listOf("accounts", "calls", "config", "contacts", "messages", "uuid",
|
val allFiles = listOf("accounts", "calls", "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 {
|
||||||
ZipFile(zipFilePath).use { zip ->
|
ZipFile(zipFilePath).use { zip ->
|
||||||
|
|||||||
Reference in New Issue
Block a user