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: EACCES Permission Denied #2159

Closed
4 tasks done
Trixarn opened this issue Aug 23, 2024 · 4 comments
Closed
4 tasks done

bug: EACCES Permission Denied #2159

Trixarn opened this issue Aug 23, 2024 · 4 comments
Labels
Bug report Something isn't working

Comments

@Trixarn
Copy link

Trixarn commented Aug 23, 2024

Bug description

Trying to patch latest Soundcloud version from Play Store but doesn't work.

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

ReVanced Manager 1.21.2
App.name com.soundcloud.android 2024.08.19-release

Installation method

Regular

ReVanced Manager logs

- Device Info
ReVanced Manager: 1.21.2
Model: Pixel 7 Pro
Android version: 14
Supported architectures: arm64-v8a
Root permissions: Yes

- Patch Info
App: com.soundcloud.android v2024.08.19-release (Suggested: Any)
Patches version: v4.13.3
Patches added: Default
Patches removed: None
Default patch options changed: None

- Settings
Allow changing patch selection: false
Version compatibility check: true
Show universal patches: false
Patches source: revanced/revanced-patches
Integration source: revanced/revanced-integrations

- Logs
Reading APK
Decoding app manifest
Loading patches
Executing patches
Applied 3 patches
Compiling patched dex files
Compiled 13 dex files
Aligning APK
An error occurred:
java.io.FileNotFoundException: /data/user/0/app.revanced.manager.flutter/cache/patcher/tmp-PNLNEO/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-PNLNEO/out.apk' (OS Error: No such file or directory, errno = 2)

Patch logs

No response

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.
@Trixarn Trixarn added the Bug report Something isn't working label Aug 23, 2024
@7Grn
Copy link

7Grn commented Aug 23, 2024

try Regenerate KeyStore from ReVanced manager settings
and if you get it from the PlayStore, it may be a Split-APK, so download it from another site

@Trixarn
Copy link
Author

Trixarn commented Aug 23, 2024

Tried to do it but same problem. It's from the Play Store so I installed it from PureAPK but then it said it was an incompatible app. Tried also with APKMirror and installed with SAI because it's a bundle, but getting java.lang.OutOfMemoryError: Failed to allocate a 16 byte allocation with 5292272 free bytes and 5168KB until OOM, target footprint 536870912, growth limit 536870912; giving up on allocation because <1% of heap free after GC.

@kitadai31
Copy link
Contributor

#2135 will fix it

@7Grn
Copy link

7Grn commented Aug 23, 2024

Tried to do it but same problem. It's from the Play Store so I installed it from PureAPK but then it said it was an incompatible app. Tried also with APKMirror and installed with SAI because it's a bundle, but getting java.lang.OutOfMemoryError: Failed to allocate a 16 byte allocation with 5292272 free bytes and 5168KB until OOM, target footprint 536870912, growth limit 536870912; giving up on allocation because <1% of heap free after GC.

ReVanced manager does not currently support Split-APK, use the previous version that allows you to download .apk

and this error log is not EACCES error.
try to close any background apps
Why_am_i_Out_Of_Memory

@oSumAtrIX oSumAtrIX closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 2024
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
None yet
Development

No branches or pull requests

4 participants