revanced-manager
revanced-manager copied to clipboard
bug: Root install does not work after a reboot
Type
Error at runtime
Bug description
The root installation is succesful, but after a reboot, it gets reset and youtube crashes when opening.
Steps to reproduce
-
Download YouTube 17.43.36
-
Extracy the
.apk
-
Install the .apk via adb (
./adb install -r -d ./yt.apk
) -
Open ReVanced Manager
-
Go to Patcher and select YouTube
-
Select the patches (listed below)
-
Click on Patch
-
Click on Install as Root
-
Click Open
-
ReVanced works normally
-
Make sure YouTube updates are turned off in the Play Store
-
Reboot phone
-
A popup appears with "Your device isn't certified to run Google apps..."
-
ReVanced doesn't open anymore, it crashes on startup
Android version
Android 13 on Pixel 7 5 October 2022 Security update
Manager version
0.0.40
Target package name
YouTube
Target package version.
17.43.36
Installation type
Root
Patches selected.
Device logs (exported using Manager settings).
--------- beginning of main
11-16 14:26:35.738 13267 13267 E SurfaceSyncer: Failed to find sync for id=0
11-16 14:26:35.738 13267 13267 E SurfaceSyncer: Failed to find sync for id=1
11-16 14:26:35.738 13267 13267 E SurfaceSyncer: Failed to find sync for id=2
11-16 14:26:35.738 13267 13267 E SurfaceSyncer: Failed to find sync for id=3
11-16 14:26:35.738 13267 13267 E SurfaceSyncer: Failed to find sync for id=4
11-16 14:26:35.738 13267 13267 E SurfaceSyncer: Failed to find sync for id=5
11-16 14:26:35.738 13267 13267 E SurfaceSyncer: Failed to find sync for id=6
11-16 14:26:52.652 13346 13346 W sh : type=1400 audit(0.0:7251): avc: denied { read } for name="/" dev="dm-12" ino=2 scontext=u:r:untrusted_app:s0:c2,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-16 14:26:52.692 13346 13346 W sh : type=1400 audit(0.0:7252): avc: denied { read } for name="/" dev="dm-12" ino=2 scontext=u:r:untrusted_app:s0:c2,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-16 14:26:52.716 13346 13346 W sh : type=1400 audit(0.0:7253): avc: denied { read } for name="/" dev="dm-12" ino=2 scontext=u:r:untrusted_app:s0:c2,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-16 14:26:52.744 13346 13346 W sh : type=1400 audit(0.0:7254): avc: denied { read } for name="/" dev="dm-12" ino=2 scontext=u:r:untrusted_app:s0:c2,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-16 14:26:52.768 13346 13346 W sh : type=1400 audit(0.0:7255): avc: denied { read } for name="/" dev="dm-12" ino=2 scontext=u:r:untrusted_app:s0:c2,c257,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 app=app.revanced.manager.flutter
11-16 14:29:06.265 13267 13267 E SurfaceSyncer: Failed to find sync for id=0
11-16 14:29:06.265 13267 13267 E SurfaceSyncer: Failed to find sync for id=1
11-16 14:29:06.265 13267 13267 E SurfaceSyncer: Failed to find sync for id=2
11-16 14:29:06.265 13267 13267 E SurfaceSyncer: Failed to find sync for id=3
11-16 14:29:06.265 13267 13267 E SurfaceSyncer: Failed to find sync for id=4
11-16 14:29:06.265 13267 13267 E SurfaceSyncer: Failed to find sync for id=5
11-16 14:29:06.265 13267 13267 E SurfaceSyncer: Failed to find sync for id=6
11-16 14:29:06.265 13267 13267 E SurfaceSyncer: Failed to find sync for id=7
Installer logs (exported using Installer menu option) [unneeded if issue is not during patching].
No response
Screenshots or videos

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] #698
- [X] The issue is related solely to the ReVanced Manager
I second this ! i dont know what causes this but for me, going back to the 0.0.39 of the manager fixed it
I've already reported this.. Check bug #497 I was surprised that no one facing this issue. Finally some1 reported this.
I want to chime in with the same issue. I've always had auto updates disabled in Play Store and I've had this issue with every version of ReVanced YouTube I've installed, including the manually built versions with revanced-cli before ReVanced Manager was released. Vanced always survived reboots.
My app title always changes to something like "Pick theme to continue", but I'd need to reboot again to see it and give you the exact title.
The only way I've found to "fix" it is to clear the app's storage, "uninstall updates" in the Play Store (which just reverts me back to the original version included with my Android device without updates), and then repatch YouTube with ReVanced. This requires me to go through and adjust all my YouTube and ReVanced settings every reboot, which as you can imagine, is quite the hassle.
This is on a stock Pixel 7 rooted with Magisk with passing SafetyNet and occurred with my Pixel 6 as well. I wonder if it might just be an issue on Pixel devices...
@bassmadrigal definitely not a pixel issue . i had it on an rooted Oneplus 8t and people have it on diffrent devices . i only managed to fix it by installing the 0.0.39 vesion of the manager app , set the SElinux to permissive and patching once again. but still dont know the actual cause.
I can confirm, I too am facing the same issue. I tried patching with the remix script and the ReVanced patcher app as well, but facing the same issue on both installs. For me it does survive about one or two reboots, but post that or basically every 5 - 10 days, it starts this same behavior.
I am using lineage os 19.1 on Poco F1. I don't have YouTube installed as part of base google apps package. I either install it from play store or from apk as a user app. Once it breaks, updating to a newer version and patching doesn't work either.
This is what I see once it is broken.
After this my only option is to uninstall, reinstall the apk and patch it with root method again.
I can confirm, I too am facing the same issue. I tried patching with the remix script and the ReVanced patcher app as well, but facing the same issue on both installs. For me it does survive about one or two reboots, but post that or basically every 5 - 10 days, it starts this same behavior.
I am using lineage os 19.1 on Poco F1. I don't have YouTube installed as part of base google apps package. I either install it from play store or from apk as a user app. Once it breaks, updating to a newer version and patching doesn't work either.
This is what I see once it is broken.
After this my only option is to uninstall, reinstall the apk and patch it with root method again.
it's definitely a revanced manager issue.. I can still install vanced youtube without any issue.
This was also happening to me, though I was getting app titles like "Auto translate", "{0} Chart", and "Are you sure?" (though this one was for YouTube Music). Sometime it can manage to survive a reboot, but it's very inconsistent and the app usually crashes on startup. I'm running Android 11 rooted on an LGv60.
(currently, I can't replicate it anymore due to being unable to patch anything-- blank screen on patches menu, and when it does work, some strange error messages appear, maybe permissions error?)
I can't patch youtube anymore as well, it always aborts
This was also happening to me, though I was getting app titles like "Auto translate", "{0} Chart", and "Are you sure?" (though this one was for YouTube Music). Sometime it can manage to survive a reboot, but it's very inconsistent and the app usually crashes on startup. I'm running Android 11 rooted on an LGv60.
(currently, I can't replicate it anymore due to being unable to patch anything-- blank screen on patches menu, and when it does work, some strange error messages appear, maybe permissions error?)
ReVanved Manager: Clear cache Clear data open app
Un-patched the application in question (eg: YouTube) if the app shows as patched in ReVanved Manager.
YouTube: Clear cache Clear data Uninstall all updates for YouTube - reset app back to factory if you know what I mean.
Then update to required version by using apk from ApkMirror for example.
Don't open YouTube yet.
ReVanced Manager: Clear cache Clear data
Open ReVanved Manager.
Enable experimental support in settings
Check the list of patched applications and make sure YouTube is not showing.
Patch Youtube and install - i installed as root.
Then go ahead and open YouTube
I am reproducing this issue on the Google Pixel 7 pro
Finally I Fixed it by uninstalling Revanced Manager and deleting everything with Revanced mentioned here https://github.com/revanced/revanced-manager/issues/425 . After that I could reboot and Youtube/Music wouldn't revert back. Now I'm using the Magisk module, seems to be working for now.
For me, systemlessly removing the system YouTube and creating the post-data-fs.d and service.d directories fixed the issue
Closing as its dupe of #425