Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Patched file deleted after patching if "Save last APK" in settings is toggled off #2125

Open
4 tasks done
oSumAtrIX opened this issue Aug 8, 2024 · 0 comments · Fixed by #2128
Open
4 tasks done
Assignees
Labels
Bug report Something isn't working

Comments

@oSumAtrIX
Copy link
Member

oSumAtrIX commented Aug 8, 2024

Bug description

When the settings to save the last patched APK are off, the patched APK on the install screen can not be installed. The file seems to be missing.

Version of ReVanced Manager and version & name of app you are patching

1.21.1

Installation method

Regular

Patch logs

An error occurred:
java.io.FileNotFoundException: /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-IHTONZ/in.apk: open failed: EACCES (Permission denied)
    at libcore.io.IoBridge.open(IoBridge.java:574)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:289)
    at com.android.tools.build.apkzlib.zip.ZFile.reopenRw(Unknown Source:105)
    at com.android.tools.build.apkzlib.zip.ZFile.writeAllFilesToZip(Unknown Source:2)
    at com.android.tools.build.apkzlib.zip.ZFile.update(Unknown Source:21)
    at com.android.tools.build.apkzlib.zip.ZFile.close(Unknown Source:9)
    at kotlin.io.CloseableKt.closeFinally(Unknown Source:4)
    at app.revanced.library.ApkUtils.applyTo(Unknown Source:323)
    at app.revanced.manager.flutter.MainActivity.runPatcher$lambda$35(Unknown Source:484)
    at app.revanced.manager.flutter.MainActivity.$r8$lambda$t9VOe3aFJZkCMY59Ya4Pcinu-pA(SourceFile:0)
    at app.revanced.manager.flutter.MainActivity$$ExternalSyntheticLambda6.run(SourceFile:0)
    at java.lang.Thread.run(Thread.java:1012)
Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
    at libcore.io.Linux.open(Native Method)
    at libcore.io.ForwardingOs.open(ForwardingOs.java:563)
    at libcore.io.BlockGuardOs.open(BlockGuardOs.java:274)
    at libcore.io.ForwardingOs.open(ForwardingOs.java:563)
    at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:8478)
    at libcore.io.IoBridge.open(IoBridge.java:560)
    ... 11 more
Something went wrong:
PathNotFoundException: Cannot copy file to '/data/user/0/app.revanced.manager.flutter/files/lastPatchedApp.apk', path = '/data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-IHTONZ/out.apk' (OS Error: No such file or directory, errno = 2)

Acknowledgements

  • I have checked all open and closed bug reports and this is not a duplicate.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
  • The bug is only related to ReVanced Manager.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug report Something isn't working
Projects
Status: Backlog
Development

Successfully merging a pull request may close this issue.

2 participants