revanced-manager
revanced-manager copied to clipboard
bug: PathNotFoundException despite Universal Patches disabled
Type
Error while running the manager
Bug description
When trying to patch YouTube, I get the error "PathNotFoundException: Creation failed, path = '/storage/emulated/0/Android/data/app.revanced.manager.flutter/files' (OS Error: No such file or directory, errno = 2).
#709 had this same problem, the difference being that I get this error even if I disable the remove-screenshot-restriction & predictive-back-gesture patches.
Steps to reproduce
- Get Nokia T20 Tablet
- Install ReVanced Manager
- Download recommended version of Youtube (18.16.37 as of this writing)
- Attempt to patch YouTube through ReVanced Manager with remove-screenshot-restriction & predictive-back-gesture patches disabled.
- Get error and patching aborts.
Android version
Android 12
Kernle version: 5.4.147 #1 Thu Mar 23 09:05:35 UTC 2023
Build number: 00WW_2_360_SP01
Android security patch level: 5. april 2023 Google Play system update: 1. februar 2023
Manager version
Version: 0.0.57 Build: release Model: Nokia T20 Android Version: 12 Arch: arm64-v8a
Target package name
com.google.android.youtube_18.16.37-1537338816_minAPI26(arm64-v8a,armeabi-v7a,x86,x86_64)(nodpi)_apkmirror.com.apk
(Downloaded from APKmirror.com )
Target package version.
18.16.37
Installation type
Non-root
Patches selected.
{"com.google.android.youtube":["client-spoof","copy-video-url","custom-branding","custom-video-speed","disable-fullscreen-panels","disable-player-popup-panels","disable-shorts-on-startup","disable-zoom-haptics","downloads","general-ads","hdr-auto-brightness","hide-album-cards","hide-artist-card","hide-autoplay-button","hide-breaking-news-shelf","hide-crowdfunding-box","hide-email-address","hide-endscreen-cards","hide-floating-microphone-button","hide-get-premium","hide-player-buttons","hide-seekbar","hide-video-action-buttons","hide-watch-in-vr","hide-watermark","minimized-playback","navigation-buttons","old-quality-layout","open-links-externally","premium-heading","remember-playback-speed","remember-video-quality","remove-player-button-background","return-youtube-dislike","seekbar-tapping","sponsorblock","spoof-app-version","swipe-controls","tablet-mini-player","theme","vanced-microg-support","video-ads","wide-searchbar"]}
Device logs (exported using Manager settings).
--------- beginning of main
05-02 18:08:54.780 17773 17795 I gralloc4: register: id=38700004ea6, handle:0xb4000072489d49d0, vaddr=0x6ff03e3000
05-02 18:08:54.808 17773 17801 I gralloc4: register: id=38700004ea7, handle:0xb4000072489c5370, vaddr=0x6fefa96000
05-02 18:08:54.823 17773 17791 I OpenGLRenderer: Davey! duration=358240ms; Flags=1, FrameTimelineVsyncId=2659119, IntendedVsync=152167250777334, Vsync=152167300777335, InputEventId=255097970, HandleInputStart=152167309678006, AnimationStart=152167309679852, PerformTraversalsStart=152167309680929, DrawStart=152167347532852, FrameDeadline=152167284110668, FrameInterval=152167309672968, FrameStartTime=16666667, SyncQueued=152167348996814, SyncStart=152167349352198, IssueDrawCommandsStart=152167349941737, SwapBuffers=152167357309698, FrameCompleted=152525492059904, DequeueBufferDuration=4595538, QueueBufferDuration=1458539, GpuCompleted=152525492059904, SwapBuffersCompleted=152167359857314, DisplayPresentTime=9189523735372048562,
05-02 18:08:56.149 17773 17801 I gralloc4: register: id=38700004ea8, handle:0xb4000072489a8750, vaddr=0x6fef149000
05-02 18:08:56.160 17773 17801 I gralloc4: register: id=38700004ea9, handle:0xb4000072489d25d0, vaddr=0x6fee7fc000
05-02 18:08:59.381 26829 26829 W sh : type=1400 audit(0.0:11809): avc: denied { read } for name="/" dev="dm-31" ino=2 scontext=u:r:untrusted_app:s0:c64,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
05-02 18:08:59.397 26829 26829 W sh : type=1400 audit(0.0:11810): avc: denied { read } for name="/" dev="dm-31" ino=2 scontext=u:r:untrusted_app:s0:c64,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
05-02 18:08:59.409 26829 26829 W sh : type=1400 audit(0.0:11811): avc: denied { read } for name="/" dev="dm-31" ino=2 scontext=u:r:untrusted_app:s0:c64,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
05-02 18:08:59.433 26829 26829 W sh : type=1400 audit(0.0:11812): avc: denied { read } for name="/" dev="dm-31" ino=2 scontext=u:r:untrusted_app:s0:c64,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
05-02 18:08:59.453 26829 26829 W sh : type=1400 audit(0.0:11813): avc: denied { read } for name="/" dev="dm-31" ino=2 scontext=u:r:untrusted_app:s0:c64,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
05-02 18:08:59.465 26829 26829 W sh : type=1400 audit(0.0:11814): avc: denied { read } for name="/" dev="dm-31" ino=2 scontext=u:r:untrusted_app:s0:c64,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
05-02 18:09:00.141 17773 17795 I gralloc4: register: id=38700004eaa, handle:0xb4000072489b9c10, vaddr=0x6fedeaf000
Installer logs (exported using Installer menu option) [unneeded if issue is not during patching].
Initializing installer
Creating working directory
An error occurred! Aborting
Error:
PathNotFoundException: Creation failed, path = '/storage/emulated/0/Android/data/app.revanced.manager.flutter/files' (OS Error: No such file or directory, errno = 2)
Screenshots or videos
No response
Solution
No response
Additional context
No response
Acknowledgements
- [X] I have searched the existing issues and this is a new and no duplicate or related to another open issue.
- [X] I have written a short but informative title.
- [X] I filled out all of the requested information in this issue properly.
- [X] The issue is related solely to the ReVanced Manager and not related to patching errors or patches
I suspect this has sth to do w/ the permission issue discussed the other day on Discord. Could you check if storage permissions are enabled? You could also try nuking the manager and try again. You could also try cleaning the temporary files in ReVanced Manager > settings > delete temporary files, and also do that in system settings
I can confirm that storage permissions are enabled. I have tried deleting temporary files in the manager's settings as well as clearing both cache and storage in the system settings of the app. I have tried uninstalling the app, downloading the newest (1.1.0) version of the manager and installing it. Between every mentioned thing I have tried to run the patcher on the same APK as mentioned in the issue, but alas no luck. It certainly seems like A12 could be the culprit as my Nokia T20 Tablet is having this problem but my OnePlus 7T still running on A11 doesn't seem to have it. I'm open for additional troubleshooting for anyone with any suggestions.
https://github.com/ReVanced/revanced-manager/issues/824