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

ranolfi commented 3 years ago

Before commenting "me too" please refer to https://github.com/YTVanced/VancedManager/issues/212#issuecomment-718172997 and use the non-root version until issue is fixed. This is confirmed already and not trivial to solve.

This conversation is growing needlessly, we should not overwhelm the developers. This is how issues get locked.

BaIanced commented 3 years ago

Lucky patcher custom patch is working. Using that until a fix is found. Using vanced non root causes duplicate cast destinations due to microg.

ghost commented 3 years ago

Using vanced non root causes duplicate cast destinations due to microg.

There's literally a setting in MicroG specifically to fix that. xvjhrhdhvjgjfj

parcou commented 3 years ago

Lucky patcher custom patch is working. Using that until a fix is found. Using vanced non root causes duplicate cast destinations due to microg.

What's Lucky patcher for new folks like me?

san7cs commented 3 years ago

Lucky patcher custom patch is working. Using that until a fix is found. Using vanced non root causes duplicate cast destinations due to microg.

What's Lucky patcher for new folks like me?

It's an apk made by Russian dev Chelpus.It's helpful in patching apps/hacking games and several kind of modifications to android system and apps... Overall it's the most powerful small sized root/non root app u ever have wished.

san7cs commented 3 years ago

https://t.me/ModByNTH/430

checkout..

Justdigit commented 3 years ago

Lucky patcher custom patch is working. Using that until a fix is found. Using vanced non root causes duplicate cast destinations due to microg.

I don't see a patch in Lucky patcher. They are all old. You a patch on app level?

BaIanced commented 3 years ago

Lucky patcher custom patch is working. Using that until a fix is found. Using vanced non root causes duplicate cast destinations due to microg.

I don't see a patch in Lucky patcher. They are all old. You a patch on app level?

I patched YouTube Music with lucky patcher. Vanced youtube installs fine for me

Justdigit commented 3 years ago

https://t.me/ModByNTH/430

checkout..

Thanks mate... This works for me. I also happen to have a MI9

san7cs commented 3 years ago

https://t.me/ModByNTH/430 checkout..

Thanks mate... This works for me. I also happen to have a MI9

https://vancedtube.com/root/download/YouTube_Vanced-v15.05.54-root-default-dark.apks

Not the latest,but not the oldest also.Use SAI to install

EnomiZ commented 3 years ago

Same issue here on oneplus 3

mingxiaoyu commented 3 years ago

Brand: Mi 9 Operating System: MIUI 12.0.5 Android Version: Android 10 Vanced Manager Version: 2.0.1 YT Vanced: 15.43.32

same issue.

twu2 commented 3 years ago

I've found the reason for this issue. in my /data/adb/service.d/vanced.sh the sleep code like this: while [ 1 != 1 ] ; do sleep 1; done but in the source, it should be: while [ "`getprop sys.boot_completed | tr -d '\r'`" != "1" ] ; do sleep 1; done

the getprop code was executed when generate vanced.sh, so we got wrong script. after modify vanced.sh, it work fine now.

jd1900 commented 3 years ago

I've found the reason for this issue. in my /data/adb/service.d/vanced.sh the sleep code like this: while [ 1 != 1 ] ; do sleep 1; done but in the source, it should be: while [ "`getprop sys.boot_completed | tr -d '\r'`" != "1" ] ; do sleep 1; done

the getprop code was executed when generate vanced.sh, so we got wrong script. after modify vanced.sh, it work fine now.

I've tried with the Music Vanced version (music.sh) and it actually works as well!

Thank you.

mingxiaoyu commented 3 years ago

I've found the reason for this issue. in my /data/adb/service.d/vanced.sh the sleep code like this: while [ 1 != 1 ] ; do sleep 1; done but in the source, it should be: while [ "`getprop sys.boot_completed | tr -d '\r'`" != "1" ] ; do sleep 1; done

the getprop code was executed when generate vanced.sh, so we got wrong script. after modify vanced.sh, it work fine now.

the icon isn't disappear. but click it. the app can't open

ertmuirm commented 3 years ago

I've found the reason for this issue. in my /data/adb/service.d/vanced.sh the sleep code like this: while [ 1 != 1 ] ; do sleep 1; done but in the source, it should be: while [ "`getprop sys.boot_completed | tr -d '\r'`" != "1" ] ; do sleep 1; done

the getprop code was executed when generate vanced.sh, so we got wrong script. after modify vanced.sh, it work fine now.

this worked for me on vanced music as well, thank you. for vanced youtube, i never had the disappearing app issue, even though the script was the same as vanced music (before manually changing it)

EnomiZ commented 3 years ago

I tried to modify vanced.sh, rebooted and nothing has changed, it still disappears

BaIanced commented 3 years ago

I can confirm this worked for music.

Those having issues, keep in mind the filenames in /data/adb/service.d/ vanced.sh is Youtube music.sh is Music

twu2 commented 3 years ago

First, make sure you write a correct delay code in script. If it still not work, try to add more delay before mount command.

Vanced use mount bind to replace regular app's apk. But if we do this too fast (maybe before PacakgeManager check the apk), it will reject to load such apk file (that's why we don't replace it directly).

pellaaa93 commented 3 years ago

First, make sure you write a correct delay code in script. If it still not work, try to add more delay before mount command.

Vanced use mount bind to replace regular app's apk. But if we do this too fast (maybe before PacakgeManager check the apk), it will reject to load such apk file (that's why we don't replace it directly).

what do i have to write to add delay before mount command? thanks

skyleet commented 3 years ago

I've found the reason for this issue. in my /data/adb/service.d/vanced.sh the sleep code like this: while [ 1 != 1 ] ; do sleep 1; done but in the source, it should be: while [ "`getprop sys.boot_completed | tr -d '\r'`" != "1" ] ; do sleep 1; done

the getprop code was executed when generate vanced.sh, so we got wrong script. after modify vanced.sh, it work fine now.

Thanks man. It fixed the issue for me.

ralphocdol commented 3 years ago

I've found the reason for this issue. in my /data/adb/service.d/vanced.sh the sleep code like this: while [ 1 != 1 ] ; do sleep 1; done but in the source, it should be: while [ "`getprop sys.boot_completed | tr -d '\r'`" != "1" ] ; do sleep 1; done

the getprop code was executed when generate vanced.sh, so we got wrong script. after modify vanced.sh, it work fine now.

Works for me too for music.sh, though I did not bother changing vanced.sh since it's already working fine.

skyleet commented 3 years ago

Solution provided by @twu2 working perfectly for both YouTube and yt music. Devs plz fix the mount script.

My OS: Device: Redmi note 4 mido Android: Oreo 8.1 OS: lineage OS

krissh-the-dev commented 3 years ago

Solution provided by @twu2 working perfectly for both YouTube and yt music. Devs plz fix the mount script.

My OS: Device: Redmi note 4 mido Android: Oreo 8.1 OS: lineage OS

The fix is made in source. We can expect a release soon...! Commit: 59193c528c16a30c4d63b522d876d09f4329bc3c by @KoopahTManiac

Hinfty commented 3 years ago

I've found the reason for this issue. in my /data/adb/service.d/vanced.sh the sleep code like this: while [ 1 != 1 ] ; do sleep 1; done but in the source, it should be: while [ "`getprop sys.boot_completed | tr -d '\r'`" != "1" ] ; do sleep 1; done

the getprop code was executed when generate vanced.sh, so we got wrong script. after modify vanced.sh, it work fine now.

This workaround does not fix it for me. Yt music uninstalled/disappeared for me every reboot, Vanced was fine. With the fix, it does not disappear, but is replaced by the stock Yt music.

ghost commented 3 years ago

First, make sure you write a correct delay code in script. If it still not work, try to add more delay before mount command. Vanced use mount bind to replace regular app's apk. But if we do this too fast (maybe before PacakgeManager check the apk), it will reject to load such apk file (that's why we don't replace it directly).

what do i have to write to add delay before mount command? thanks

I believe you change the number after "sleep"

Sleep 1 = 1s,, Sleep 2 = 2s.

So maybe try : while [ "getprop sys.boot_completed | tr -d '\r'" != "1" ] ; do sleep 2; done

saikatm commented 3 years ago

First, make sure you write a correct delay code in script. If it still not work, try to add more delay before mount command. Vanced use mount bind to replace regular app's apk. But if we do this too fast (maybe before PacakgeManager check the apk), it will reject to load such apk file (that's why we don't replace it directly).

what do i have to write to add delay before mount command? thanks

I believe you change the number after "sleep"

Sleep 1 = 1s,, Sleep 2 = 2s.

So maybe try : while [ "getprop sys.boot_completed | tr -d '\r'" != "1" ] ; do sleep 2; done

thanks alot man this worked for me for the vanced music app was looking for a fix from few days

SOUMIK124 commented 3 years ago

I also have that same problem Device: Samsung galaxy j200h Android version:5.1.1(lollipop) Vanced manager version:2.0.1

rjshrjndrn commented 3 years ago

Till the official release happens, you can use the debug build(stripped out from the github actions) to install the vanced youtube and music.

This app is debug build and not production ready. So once you installed the apps, uninstall the manager.

link

X1nto commented 3 years ago

Till the official release happens, you can use the debug build(stripped out from the github actions) to install the vanced youtube and music.

This app is debug build and not production ready. So once you installed the apps, uninstall the manager.

link

Keep in mind that debug apk maybe buggy and will definitely lag on some devices

soredake commented 3 years ago

Tried this apk, nothing changed, youtube vanished after reboot.

Amanse commented 3 years ago

I've found the reason for this issue. in my /data/adb/service.d/vanced.sh the sleep code like this: while [ 1 != 1 ] ; do sleep 1; done but in the source, it should be: while [ "`getprop sys.boot_completed | tr -d '\r'`" != "1" ] ; do sleep 1; done

the getprop code was executed when generate vanced.sh, so we got wrong script. after modify vanced.sh, it work fine now.

OUR SAVIOUR!

maahmoudsamir commented 3 years ago

I've found the reason for this issue. in my /data/adb/service.d/vanced.sh the sleep code like this: while [ 1 != 1 ] ; do sleep 1; done but in the source, it should be: while [ "`getprop sys.boot_completed | tr -d '\r'`" != "1" ] ; do sleep 1; done

the getprop code was executed when generate vanced.sh, so we got wrong script. after modify vanced.sh, it work fine now.

Not working in vanced.sh ( youtube vanced ) And try more Phone : note 8 pro Miui 11 android 9

BearTS commented 3 years ago

I've found the reason for this issue. in my /data/adb/service.d/vanced.sh the sleep code like this: while [ 1 != 1 ] ; do sleep 1; done but in the source, it should be: while [ "`getprop sys.boot_completed | tr -d '\r'`" != "1" ] ; do sleep 1; done

the getprop code was executed when generate vanced.sh, so we got wrong script. after modify vanced.sh, it work fine now.

Worked like a charm

rjshrjndrn commented 3 years ago

Tried this apk, nothing changed, youtube vanished after reboot.

Hmmm that's weird, for me the script didn't work. But this apk worked.

Steps: Uninstalled original manager Installed this apk Rebooted phone to make sure vanced(in my case YT Music)was missing Installed YT Music from this apk Rebooted the phone. Uninstalled the apk

c7r4x commented 3 years ago

Screenshot_2020-12-10-20-56-03-463_com miui bugreport Still Uninstalling after reboot #

darkdex52 commented 3 years ago

First, make sure you write a correct delay code in script. If it still not work, try to add more delay before mount command. Vanced use mount bind to replace regular app's apk. But if we do this too fast (maybe before PacakgeManager check the apk), it will reject to load such apk file (that's why we don't replace it directly).

what do i have to write to add delay before mount command? thanks

I believe you change the number after "sleep"

Sleep 1 = 1s,, Sleep 2 = 2s.

So maybe try : while [ "getprop sys.boot_completed | tr -d '\r'" != "1" ] ; do sleep 2; done

This still didn't fix it for me. Youtube Vanced disappears after every reboot, but normal Youtube isn't back, it crashes on startup.

Phone: Samsung S20 FE

twu2 commented 3 years ago

This still didn't fix it for me. Youtube Vanced disappears after every reboot, but normal Youtube isn't back, it crashes on startup.

you can try this:

  1. install Youtube Vanced from Manager.
  2. move /data/adb/service.d/vanced.sh to /data/adb/vanced.sh
  3. reboot
  4. after reboot, the Youtube should be normal one.
  5. execute command: su -Mc /data/adb/vanced.sh
  6. remove Youtube from recent task, and open it again, it should be Youtube Vanced now.

if this work, add more sleep between while and mount should work (not the sleep between do and done).

King-Che commented 3 years ago

I've found the reason for this issue. in my /data/adb/service.d/vanced.sh the sleep code like this: while [ 1 != 1 ] ; do sleep 1; done but in the source, it should be: while [ "`getprop sys.boot_completed | tr -d '\r'`" != "1" ] ; do sleep 1; done

the getprop code was executed when generate vanced.sh, so we got wrong script. after modify vanced.sh, it work fine now.

This worked for me lile charm, thanks alot ❤️

ObscenityIB commented 3 years ago

I see people saying it was a script doing it.

My theory was Google Play was uninstalling it, because i noticed when vanced is installed, installing ANYTHING, even a small 300KB app, takes a really long time

But installs fine if vanced is not installed.

ghost commented 3 years ago

I see people saying it was a script doing it.

My theory was Google Play was uninstalling it, because i noticed when vanced is installed, installing ANYTHING, even a small 300KB app, takes a really long time

But installs fine if vanced is not installed.

It's not caused by Google play. Google play only causes it to revert to Stock which is because it Auto updates, which is easily fixed with the "Detach" magisk module.

Hinfty commented 3 years ago

It's not caused by Google play. Google play only causes it to revert to Stock which is because it Auto updates, which is easily fixed with the "Detach" magisk module.

Detach never worked 100% for me, it would just update anyway sometimes. But now we can deactivate auto update on an app-to-app basis and that's fantastic.

soredake commented 3 years ago

But now we can deactivate auto update on an app-to-app basis and that's fantastic.

Google play still updated youtube many times even when auto-updates disabled for app.

ObscenityIB commented 3 years ago

Google play only causes it to revert to Stock which is because it Auto updates

even when auto update is not enabled?

ObscenityIB commented 3 years ago

Google play still updated youtube many times even when auto-updates disabled for app.

oh, well thats dumb

still, if it updated, wouldnt youtube and yt music still be there? not nuked

Hinfty commented 3 years ago

But now we can deactivate auto update on an app-to-app basis and that's fantastic.

Google play still updated youtube many times even when auto-updates disabled for app.

Actually that just sounds like a bug in the Play Store.

X1nto commented 3 years ago

Disappearing issue should be fixed in the new installer, just reinstall vanced/music and that's it. Regarding the crash issue after rebooting, it's yet unknown why that happens, we're still investigating that issue. This thread became hard to follow because of large amount of comments, if you have other related issue, please open a new issue and avoid commenting "I have the same issue" without posting some basic device info. I'll lock and close this thread now