mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
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:
parent
2f46b3c84e
commit
08a2af8b94
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue