fix: Resolve EACCESS error in special cases

Sometimes, when there is an attempt to patch an App, that APK is only marked as `r-x` and not `rwx`.
This can cause the patch to fail, as it cannot read the file after copying it to `patcher/tmp-.../in.apk`
This PR Fixes that issue (as far as i can tell; tested with brand new install of revanced manager, with and without patch. to Verify)
This commit is contained in:
LightCat 2024-08-11 19:39:28 +02:00 committed by Benjamin Konrad Dawkins
parent 2f46b3c84e
commit 08a2af8b94

View file

@ -220,6 +220,8 @@ class MainActivity : FlutterActivity() {
keystorePassword: String
) {
val inFile = File(inFilePath)
inFile.setWritable(true)
inFile.setReadable(true)
val outFile = File(outFilePath)
val integrations = File(integrationsPath)
val keyStoreFile = File(keyStoreFilePath)