TeamVanced / VancedManager

Vanced Installer
GNU General Public License v3.0
8.25k stars 1.14k forks source link

[ROOT] YouTube Vanced disappears after rebooting the phone #212

Closed dreamwhite closed 3 years ago

dreamwhite commented 3 years ago

Please only report your issue here, if all points below are true

Phone Specifications:

Please describe the problem you are having in as much detail as possible: I've:

  1. Installed Vanced Manager
  2. Granted Root Permissions to the app
  3. Installed Lucky Patcher
  4. Applied "disable APK Verification" patches
  5. Installed YouTube Vanced (Dark version) from Vanced Manager (ROOT section)
  6. Rebooted the phone

After following the above steps, YouTube Vanced app disappears and I have to reinstall it. The version I'm trying to install is 15.40.37 and I can't manage to fix this problem.

Do you have any idea?

Also, how can I correctly detach the application from Google Play Store? I read online about touch /cache/enable_detach but I don't know if this is the correct solution. TUAIA

Justdigit commented 3 years ago

I have the exact same problem. After updating the latest MIUI ROM the problem occurred.

Checked all above steps but it keeps de-installing Vanced. I am using the root version.

Justdigit commented 3 years ago

@dreamwhite did you install latest Xiaomi.eu Rom? Or something similar??

I have reverted back to older one.... And vanced sticks there. Looks like something has changed on xiaomi side.

dreamwhite commented 3 years ago

I'm on OnePlus 6T : with crDroid 6.11 :/

ruffaloo commented 3 years ago

@dreamwhite did you install latest Xiaomi.eu Rom? Or something similar??

I have reverted back to older one.... And vanced sticks there. Looks like something has changed on xiaomi side.

I have the same Problem on my Oneplus 7 pro. I'm running on stock Rom Android Q. How can downgrade YT Vanced [ROOT]? Is it possible in the vanced manager App?

Justdigit commented 3 years ago

@dreamwhite did you install latest Xiaomi.eu Rom? Or something similar?? I have reverted back to older one.... And vanced sticks there. Looks like something has changed on xiaomi side.

I have the same Problem on my Oneplus 7 pro. I'm running on stock Rom Android Q. How can downgrade YT Vanced [ROOT]? Is it possible in the vanced manager App?

I have flashed an older Rom on my xiaomi didn't do Anything with Vanced manager.

Besuz commented 3 years ago

Having the exact same issue, too:

Brand: OnePlus 5T Operating System: LineageOS 16 (nightly 20201027) Android Version: Android 9 Vanced Manager Version: 1.3.1 YT Vanced: 15.40.37

ruffaloo commented 3 years ago

I guess it's probably an issue with YT Vanced 15.40.37. I will use the non-root version now. Hopefully it'll be fixed soon.

X1nto commented 3 years ago

It's not an issue related to vanced, but rather an issue with our new installation method which doesn't require signature verification to be disabled. You might want to use nonroot until (if) this issue gets resolved

heysachin commented 3 years ago

Facing the same issue also. Uninstalling the updates to youtube app from app info and reinstalling via vanced manager seems to get YouTube (vanced) working till the next reboot and I have to do the same thing again.

dreamwhite commented 3 years ago

UPDATE: BUG FIXED

It seems that updating:

This issue can be closed

heysachin commented 3 years ago

The issue still persists for me even after updating everything to latest version

ruffaloo commented 3 years ago

The Issue is not solved for me. After reboot YouTube app keeps crashing.

JTHicks26 commented 3 years ago

For me after rebooting the YT app crashes on startup.

Vanced Manager v1.3.1 YouTube Vanced v15.43.32 LG V30 on Android 9

CurssedCoffin commented 3 years ago

it still happens with the newest version of manager and vanced app.

CurssedCoffin commented 3 years ago

also i can install old versions by zip all the apks in one zip and install with SAI but cannot do the same at 15.43.32. SAI error at signature inconsistent

Justdigit commented 3 years ago

For me the issue is still there

GeorgeIvory commented 3 years ago

Same issue. Issue being "youtube vanced uninstalls after each reboot of the device". The last versions of both. 1.3.1 and 15.43.32. Started from 15.40 version. Even when restarting AndroidUI process aka soft reboot it still uninstalls. Each time it leaves base.apk in data/app/com.google.android.youtube-1. Directories multiply each time, ...youtube-2, ...youtube-3, endlessly I guess, max counter I saw was on 10. The first base.apk leftover is always undeletable, only through recovery it can be done.Tried systemizing/debloating, deleting all related to youtube everywhere, installing vanilla, trying to install on it, etc. Systemizing kinda helped, youtube vanced remained after reboot, but it doesnt see accounts so it's still a failure. From a file manager point of view it still cleared the data/app/com.google.android.youtube leaving only broken base.apk but it couldnt touch the sacred system/priv-app so the app survived the purge. There you have it. Scrubbed all the details I could remember. P.s. To be honest it's not even that annoying. Just interesting what is the reason.

DanteKG commented 3 years ago

The new root installer is causing more trouble than it's worth (signature verification is good if you're into shady apps but for the purposes of YTVanced the new installer is just making things harder). I have the same problem, the app is reverting to stock after reboot. Is there a way to implement a choice between the old and new root installer in Manager?

Einheit-101 commented 3 years ago

Same issue on ASUS ROG Phone. I will try non-root now...

ghost commented 3 years ago

The new root installer is causing more trouble than it's worth (signature verification is good if you're into shady apps but for the purposes of YTVanced the new installer is just making things harder). I have the same problem, the app is reverting to stock after reboot. Is there a way to implement a choice between the old and new root installer in Manager?

Old method doesn't even work anymore just letting y'all know.

ranolfi commented 3 years ago

@dreamwhite or repo maintainer: please reopen; issue is not fixed.

DanteKG commented 3 years ago

Old method doesn't even work anymore just letting y'all know.

Yea, just like @CurssedCoffin I tried to install latest vanced with SAI and got "signature inconsistent" error... So for the old root installer to work, the .apks themselves need to be changed. What a roller coaster ride... sticking with non-root seems to be the best bet for now

omarmarstaoy commented 3 years ago

I have the same problem Samsung Note 9 Android 10 User Interface 2.5

mistermojorizin commented 3 years ago

so i was having this problem with android 8.1 on pixel 2. Was trying the latest versions of the manager and youtube vanced. Today, i noticed there's an update - new manager and new youtube. Does this solve the problem for anyone that was having it before?

jd1900 commented 3 years ago

EDIT: THIS ALL WAS WRONG

X1nto commented 3 years ago

I've found the solution, at least for Vanced Music (not tested on Youtube Vanced).

It seems that the manager copies root.apk into /data/app/com.google.android.apps.youtube.music--(replace) as base.apk. However, it should copy arm64_v8a.apk as base.apk instead.

So just copying arm64_v8a.apk into /data/app/com.google.android.apps.youtube.music--(replace) as base.apk solves the problem.

cp /sdcard/Android/data/com.vanced.manager/files/music/root/arm64_v8a.apk /data/app/com.google.android.apps.youtube.music--(replace)/base.apk

I hope this helps you guys ;)

If it copies arm64_v8a into that folder you'll get a stock music app

jd1900 commented 3 years ago

If it copies arm64_v8a into that folder you'll get a stock music app

Unfortunately you're right... I just saw I still had the app. But I got the stock app.

mistermojorizin commented 3 years ago

If it copies arm64_v8a into that folder you'll get a stock music app

Unfortunately you're right... I just saw I still had the app. But I got the stock app.

Youtube music works fine for me, maybe because I didn't have a stock youtube music app on my Oreo system. But I tried youtube vanced with the new installer and it made my youtube disappear completely. I had to restore a TWRP backup just to get the old version vanced back. I don't understand why they changed the installation method when everything was working fine on manager 1.2. I've tried going back to manager 1.2, and it's not able to download the new versions of youtube vanced.

DemonSlayer86 commented 3 years ago

i think google update their security patch to mess up with some not stock app.

DanteKG commented 3 years ago

I installed latest Manager v2.0.1 and the issue seems resolved for me. Vanced persists through reboots. Will give an update if something changes

mistermojorizin commented 3 years ago

I installed latest Manager v2.0.1 and the issue seems resolved for me. Vanced persists through reboots. Will give an update if something changes

For you it was reverting back to stock? For me, it makes youtube disappear altogether. I'll try 2.0.1, it's just a pain because i have to restore a twrp backup to get youtube back.

update: No go with 2.0.1 for me. I wish I knew what other kind of things I could try. I tried selecting a different theme and older version. No difference. The last vanced manager that worked for me, doesn't connect anymore.

DanteKG commented 3 years ago

From what I understand, in order to install Vanced without signature spoofing it bypasses the issue by making a script and gives it to Magisk which runs it at boot time. So vanced isnt actually installed but the stock YT is patched at every boot. If YT disappears after reboot you can take a look at Magisk logs and better yet a logcat during boot time

jd1900 commented 3 years ago

From what I understand, in order to install Vanced without signature spoofing it bypasses the issue by making a script and gives it to Magisk which runs it at boot time. So vanced isnt actually installed but the stock YT is patched at every boot. If YT disappears after reboot you can take a look at Magisk logs and better yet a logcat during boot time

For the phone to do that, AFAIK, Magisk should have a module from Vanced Manager, but I don't see any.

DanGLES3 commented 3 years ago

From what I understand, in order to install Vanced without signature spoofing it bypasses the issue by making a script and gives it to Magisk which runs it at boot time. So vanced isnt actually installed but the stock YT is patched at every boot. If YT disappears after reboot you can take a look at Magisk logs and better yet a logcat during boot time

For the phone to do that, AFAIK, Magisk should have a module from Vanced Manager, but I don't see any.

A module is not required for a boot script, Magisk has its own individual service.d and post-fs-data folders in data/adb, if a root app wants it can simply install its script in there without having to install a whole module

Vanced manager installs a Vanced.sh script in service.d which binds the base.apk from Vanced located in data/adb/Vanced into the corresponding stock YouTube apk

X1nto commented 3 years ago

From what I understand, in order to install Vanced without signature spoofing it bypasses the issue by making a script and gives it to Magisk which runs it at boot time. So vanced isnt actually installed but the stock YT is patched at every boot. If YT disappears after reboot you can take a look at Magisk logs and better yet a logcat during boot time

For the phone to do that, AFAIK, Magisk should have a module from Vanced Manager, but I don't see any.

A module is not required for a boot script, Magisk has its own individual service.d and post-fs-data folders in data/adb, if a root app wants it can simply install its script in there without having to install a whole module

Vanced manager installs a Vanced.sh script in service.d which binds the base.apk from Vanced located in data/adb/Vanced into the corresponding stock YouTube apk

This is exactly what it does but unfortunately script doesn't work well in some ROMs, we're trying to fix it but I don't think it'll be fixed anytime soon

jd1900 commented 3 years ago

This is exactly what it does but unfortunately script doesn't work well in some ROMs, we're trying to fix it but I don't think it'll be fixed anytime soon

If it is a matter of lack of possibility of testing, just let us know.

parcou commented 3 years ago

New to Vance YT under the manager and also trying to research and understand why it goes back to the standard YT after a reboot. I just updated my OP7Pro after year. I am rooted and running Magisk....so I am clear...there is NO fix currently, right...in research still?

What I have done is pulled an older version of YT Vanced Black magisk rep v14.21.54_b01.40.20. I installed the zip in Magisk it works and stays...much older. Side question was that the latest release for repo magisk install? Thx

mistermojorizin commented 3 years ago

From what I understand, in order to install Vanced without signature spoofing it bypasses the issue by making a script and gives it to Magisk which runs it at boot time. So vanced isnt actually installed but the stock YT is patched at every boot. If YT disappears after reboot you can take a look at Magisk logs and better yet a logcat during boot time

For the phone to do that, AFAIK, Magisk should have a module from Vanced Manager, but I don't see any.

A module is not required for a boot script, Magisk has its own individual service.d and post-fs-data folders in data/adb, if a root app wants it can simply install its script in there without having to install a whole module Vanced manager installs a Vanced.sh script in service.d which binds the base.apk from Vanced located in data/adb/Vanced into the corresponding stock YouTube apk

This is exactly what it does but unfortunately script doesn't work well in some ROMs, we're trying to fix it but I don't think it'll be fixed anytime soon

I run an (unrelated) script on boot. I know where the scripts need to go and the permissions they need to stick. I'm looking at the root folder and there's nothing added after using the manager. Could we get a copy of this script? If that's all it is, I bet I could put it in the right place to run at boot.

Also, I'm running the newest version of Magisk (21.1), so I wonder if it has anything to do with that.

DanGLES3 commented 3 years ago

From what I understand, in order to install Vanced without signature spoofing it bypasses the issue by making a script and gives it to Magisk which runs it at boot time. So vanced isnt actually installed but the stock YT is patched at every boot. If YT disappears after reboot you can take a look at Magisk logs and better yet a logcat during boot time

For the phone to do that, AFAIK, Magisk should have a module from Vanced Manager, but I don't see any.

A module is not required for a boot script, Magisk has its own individual service.d and post-fs-data folders in data/adb, if a root app wants it can simply install its script in there without having to install a whole module Vanced manager installs a Vanced.sh script in service.d which binds the base.apk from Vanced located in data/adb/Vanced into the corresponding stock YouTube apk

This is exactly what it does but unfortunately script doesn't work well in some ROMs, we're trying to fix it but I don't think it'll be fixed anytime soon

I run an (unrelated) script on boot. I know where the scripts need to go and the permissions they need to stick. I'm looking at the root folder and there's nothing added after using the manager. Could we get a copy of this script? If that's all it is, I bet I could put it in the right place to run at boot.

Also, I'm running the newest version of Magisk (21.1), so I wonder if it has anything to do with that.

The Vanced script is not in the root folder, it's on /data/adb/service.d

ghost commented 3 years ago

Can't we have at least an alternative installer which require disabling signature check like the older version in case the new way wouldn't work? I don't mind leaving signature disabled, and been doing it for years without problem since I use some shady unsigned apks

ghost commented 3 years ago

Can't we have at least an alternative installer which require disabling signature check like the older version in case the new way wouldn't work? I don't mind leaving signature disabled, and been doing it for years without problem since I use some shady unsigned apks

No. It doesn't work and probably will never work again. Even SAI doesn't work anymore and probably won't ever work again according to KevinX8.

JohnRTitor commented 3 years ago

Hey there, one user apparently mentioned on Telegram that YouTube Vanced doesn't disappear for them if they disable play protect. Is any of you guys available to test if it works? I am a non root alpha tester 😅. Try disabling Google Play protect and then reinstall Vanced. I am curious to see if it works for you guys

ghost commented 3 years ago

Hey there, one user apparently mentioned on Telegram that YouTube Vanced doesn't disappear for them if they disable play protect. Is any of you guys available to test if it works? I am a non root alpha tester 😅. Try disabling Google Play protect and then reinstall Vanced. I am curious to see if it works for you guys

Whoever made that claim is a lying dumbass. Play Protect don't effect boot scripts in anyway shape or form. 😑

X1nto commented 3 years ago

Hey there, one user apparently mentioned on Telegram that YouTube Vanced doesn't disappear for them if they disable play protect. Is any of you guys available to test if it works? I am a non root alpha tester 😅. Try disabling Google Play protect and then reinstall Vanced. I am curious to see if it works for you guys

Who ever made that claim is a lying dumbass. Play Protect don't effect boot scripts in anyway shape or form. 😑

Might still give it a try, maybe it's true after all

ghost commented 3 years ago

Hey there, one user apparently mentioned on Telegram that YouTube Vanced doesn't disappear for them if they disable play protect. Is any of you guys available to test if it works? I am a non root alpha tester 😅. Try disabling Google Play protect and then reinstall Vanced. I am curious to see if it works for you guys

Who ever made that claim is a lying dumbass. Play Protect don't effect boot scripts in anyway shape or form. 😑

Might still give it a try, maybe it's true after all

Just did. it didn't change shit, just like I thought.

JohnRTitor commented 3 years ago

Hey there, one user apparently mentioned on Telegram that YouTube Vanced doesn't disappear for them if they disable play protect. Is any of you guys available to test if it works? I am a non root alpha tester 😅. Try disabling Google Play protect and then reinstall Vanced. I am curious to see if it works for you guys

Whoever made that claim is a lying dumbass. Play Protect don't effect boot scripts in anyway shape or form. 😑

Figured. But still wanted you guys to give it a try anyways. 😏 And it doesn't work unfortunately as you said 🤭 FYI, it was reported by Milind on the beta testing channel. He said a user on Telegram told him this. Here's the link to the message https://discord.com/channels/328493314485518336/358967484243640321/778232075115429898

ghost commented 3 years ago

No. It doesn't work and probably will never work again. Even SAI doesn't work anymore and probably won't ever work again according to KevinX8.

Or maybe auto merge downloaded split APK into one and install? I really prefer single APK tho. Sounds complicated to work with but there is a tool called SAP (Split APKs Packer) by Kirlif' for PC that does the job. There is an app for Android which i don't remember

Einheit-101 commented 3 years ago

There is no way that this is impossible to resolve with a friggin root access on our end... Wtf.

X1nto commented 3 years ago

There is no way that this is impossible to resolve with a friggin root access on our end... Wtf.

We never said it's impossible

FlashOnFire commented 3 years ago

Hi, same problem here. Before seeing this issue, i already tried to detach app from Play Store (with magisk "Detach" module) and uninstalling stock Youtube app (with magisk "Debloat" module) and it still doesn't work.... Since i uninstalled stock app, after rebooting, Youtube Vanced simply disappear and i need to reinstall it through the Vanced Manager.