Skip to content

Commit

Permalink
fix: Resolve EACCESS error in special cases
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
BenCat07 committed Aug 11, 2024
1 parent 2f46b3c commit 08a2af8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 08a2af8

Please sign in to comment.