revanced-manager
revanced-manager copied to clipboard
bug: Patched file deleted after patching if "Save last APK" in settings is toggled off
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
- [X] I have checked all open and closed bug reports and this is not a duplicate.
- [X] I have chosen an appropriate title.
- [X] All requested information has been provided properly.
- [X] The bug is only related to ReVanced Manager.