fix: Resolve EACCESS error in special cases (#2135)

Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
LightCat 2024-09-20 00:59:27 +02:00 committed by GitHub
parent c7298424e5
commit 1f95767aeb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -219,6 +219,9 @@ class MainActivity : FlutterActivity() {
keystorePassword: String
) {
val inFile = File(inFilePath)
// Necessary because the file is copied from a nonwriteable location.
inFile.setWritable(true)
inFile.setReadable(true)
val outFile = File(outFilePath)
val integrations = File(integrationsPath)
val keyStoreFile = File(keyStoreFilePath)