revanced-manager icon indicating copy to clipboard operation
revanced-manager copied to clipboard

bug: Root install does not work after a reboot

Open marcofugaro opened this issue 2 years ago • 9 comments

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

  1. Download YouTube 17.43.36

  2. Extracy the .apk

  3. Install the .apk via adb (./adb install -r -d ./yt.apk)

  4. Open ReVanced Manager

  5. Go to Patcher and select YouTube

  6. Select the patches (listed below)

  7. Click on Patch

  8. Click on Install as Root

  9. Click Open

  10. ReVanced works normally

  11. Make sure YouTube updates are turned off in the Play Store

  12. Reboot phone

  13. A popup appears with "Your device isn't certified to run Google apps..."

  14. 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

image

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

marcofugaro avatar Nov 16 '22 13:11 marcofugaro

I second this ! i dont know what causes this but for me, going back to the 0.0.39 of the manager fixed it

deathline94 avatar Nov 17 '22 19:11 deathline94

I've already reported this.. Check bug #497 I was surprised that no one facing this issue. Finally some1 reported this.

ibyb007 avatar Nov 18 '22 10:11 ibyb007

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 avatar Nov 26 '22 07:11 bassmadrigal

@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.

deathline94 avatar Nov 26 '22 10:11 deathline94

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. Screenshot_20221129-202006_Settings

After this my only option is to uninstall, reinstall the apk and patch it with root method again.

varishtsg avatar Nov 29 '22 14:11 varishtsg

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. Screenshot_20221129-202006_Settings

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.

ibyb007 avatar Nov 29 '22 16:11 ibyb007

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?)

helpimnotdrowning avatar Dec 11 '22 05:12 helpimnotdrowning

I can't patch youtube anymore as well, it always aborts

marcofugaro avatar Dec 11 '22 09:12 marcofugaro

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

kenethc avatar Jan 10 '23 02:01 kenethc

I am reproducing this issue on the Google Pixel 7 pro

MulverineX avatar Jun 24 '23 07:06 MulverineX

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.

fr1sty avatar Jul 10 '23 09:07 fr1sty

For me, systemlessly removing the system YouTube and creating the post-data-fs.d and service.d directories fixed the issue

TheTBO avatar Aug 03 '23 13:08 TheTBO

Closing as its dupe of #425

Ushie avatar Aug 05 '23 17:08 Ushie