• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[APP][MOD][ROOT/NONROOT] YouTube Vanced Edition

Search This thread

zgfg

Senior Member
Oct 10, 2016
6,071
3,576

YouTube Vanced 16.29.39 Magisk Modules:
YouTube-Vanced-16.29.39-Dark_Magisk.zip: https://www.androidfilehost.com/?fid=7161016148664782904
YouTube-Vanced-16.29.39-Black_Magisk.zip: https://www.androidfilehost.com/?fid=7161016148664782905
Suggestion:

To add checking if the installed YT version is the same as the Vanced version (swapping the official YT base.apk from one version with the
base.apk patched by Vanced from the other version would not work)

In case when e.g., some people (incidentally) update YT

Script service.sh, instead of existing code:
Code:
# Check if path exists
if [ ! -z "$YTPATH" ]
then
# Swap stock YouTube with Vanced YouTube.
su -c mount $MODDIR/base.apk $YTPATH/base.apk
fi

to use extended, with the version check:
Code:
VancedVer=16.29.39
YTVer=$(dumpsys package com.google.android.youtube | grep versionName)
YTVer=${YTVer##*=}

# Check if path exists and versions are same
if [ ! -z "$YTPATH" ] && [ $VancedVer = $YTVer ]
then
# Swap stock YouTube with Vanced YouTube.
su -c mount $MODDIR/base.apk $YTPATH/base.apk
fi
 
  • Like
Reactions: i5lee8bit

G1ML1

Senior Member
Feb 10, 2016
103
18
26
Zenica
Guys can you help, notif keep spamming and when i keep scrolling they multliply and refresh animation keeps loops infinite
Tried: reinstalling, installing old version, disabling blokada, rebooting phone
Screenshot_20211014-171658967.jpg

Root black latest version
 

Attachments

  • Screenshot_20211014-172813640.jpg
    Screenshot_20211014-172813640.jpg
    234.9 KB · Views: 59
  • Screenshot_20211014-171721490.jpg
    Screenshot_20211014-171721490.jpg
    471.6 KB · Views: 59

daveout

New member
Oct 15, 2021
2
3
Just a small suggestion: make "tapping on seek bar" enabled by default. It greatly improves the user experience and less tech-savy users may be unaware of that option. Thanks.
 
  • Like
Reactions: Moibr5403

daveout

New member
Oct 15, 2021
2
3
If the feature is already there I would also guess its a feature that is also available in Googles youtube?
No, it's a Vanced-only feature. The thing is... 99% of media players have something similar to the "tap on the seekbar to go to a specific point of the video". It's something very intuitive and consistent among media player interfaces. But on google's youtube, the only way to move is to swipe left or right.
(P.S. For example, even on Google Photos, if you're watching a video there, you can tap on that video's seek bar to go to a specific point.)
 
Last edited:

Vitaliy W

New member
Oct 16, 2021
1
0
Screenshot_2021-10-16-14-17-39-446_com.vanced.android.youtube.png

In YouTube Vanced in full screen mode, there is no way to add or remove a video from a playlist. Please add this feature.
 

Deanro

Senior Member
Feb 24, 2020
197
25
Hi guys. I have the non-root version. I have 2 issues:

1) How do I hide the ad circled in red in the screen shot below?
2) Resolution always reverts back to 360 and I want it at 480 always. How do I set up a custom default resolution?
 

Attachments

  • 21.jpg
    21.jpg
    443.4 KB · Views: 58

i5lee8bit

Senior Member
Jul 18, 2006
417
856
New Jersey


Suggestion:

To add checking if the installed YT version is the same as the Vanced version (swapping the official YT base.apk from one version with the
base.apk patched by Vanced from the other version would not work)

In case when e.g., some people (incidentally) update YT

Script service.sh, instead of existing code:
Code:
# Check if path exists
if [ ! -z "$YTPATH" ]
then
# Swap stock YouTube with Vanced YouTube.
su -c mount $MODDIR/base.apk $YTPATH/base.apk
fi

to use extended, with the version check:
Code:
VancedVer=16.29.39
YTVer=$(dumpsys package com.google.android.youtube | grep versionName)
YTVer=${YTVer##*=}

# Check if path exists and versions are same
if [ ! -z "$YTPATH" ] && [ $VancedVer = $YTVer ]
then
# Swap stock YouTube with Vanced YouTube.
su -c mount $MODDIR/base.apk $YTPATH/base.apk
fi

Thanks man, I'll check it out and hopefully test out when I get a chance... not sure when that'll be, lol. Haven't even been on XDA in weeks. Not only because of non-stop working on fixing up the house (first house!) we just bought, but also my daily driver Pixel 4 XL has been sent to Google for repair a few weeks ago, and they essentially lost it as far as I'm concerned. According to repair status, repair was completed over a week ago, but the tracking number they gave me still says FedEx hasn't received anything yet. I've called them multiple times but no one ever gets back to me and they have no clue where my phone is. Don't really have time to deal with it more than I have already been with everything else going on at home. Ugh. Maybe if it goes long enough I can tell them to just send me a Pixel 6 Pro. I doubt it but I can hope and dream... lol. I mean, the 4 series was discontinued for some time now, the 5 / 5a is a downgrade compared to the 4, and the 6 series comes out soon. Argh, it's just so frustrating. And I'm not ready to lose squeeze functionality either. =(
 
  • Like
  • Haha
Reactions: zgfg and ipdev

ergalle2

Senior Member
Mar 4, 2013
83
19
Hi, i have a question.

Why the official YouTube app interface is working at 60hz and YouTube Vanced interface is working at 120hz?.

Is the official app blocked at 60hz internally?.

Can i do something to fix the official app to make it work at 120hz?

Thanks.
 

Wolfcity

Recognized Contributor
Apr 26, 2013
4,378
2,784
Germany
Moto G 2014
Moto G5 Plus
To make one thing clear, I'm not asking for ETA or something like that.
I'm just interested if casting on Chromecast will be available for the non rooted version at all. The changelog for YouTube vanced 16.29.39 still says that it is due Micro G which has to be patched upstream first. So ist it up to Micro G to fix it? There were some updates but the issue is still existing.
I'm on version 15.33.34, as far as I know the last build that supports Chromecast streaming.
Anything one can do (except using stock YT)?
Thanks for this awesome app anyway!
 

Spannaa

Recognized Contributor / Themer
To make one thing clear, I'm not asking for ETA or something like that.
I'm just interested if casting on Chromecast will be available for the non rooted version at all. The changelog for YouTube vanced 16.29.39 still says that it is due Micro G which has to be patched upstream first. So ist it up to Micro G to fix it? There were some updates but the issue is still existing.
I'm on version 15.33.34, as far as I know the last build that supports Chromecast streaming.
Anything one can do (except using stock YT)?
Thanks for this awesome app anyway!
Use rooted
 
Last edited:

Deanro

Senior Member
Feb 24, 2020
197
25
Hi guys. I have the non-root version. I have 2 issues:

1) How do I hide the ad circled in red in the screen shot below?
2) Resolution always reverts back to 360 and I want it at 480 always. How do I set up a custom default resolution?
 

Attachments

  • 21.jpg
    21.jpg
    443.4 KB · Views: 38

ipdev

Recognized Contributor
Feb 14, 2016
1,609
1
2,156
Google Nexus 10
Nexus 7 (2013)
To make one thing clear, I'm not asking for ETA or something like that.
I'm just interested if casting on Chromecast will be available for the non rooted version at all. The changelog for YouTube vanced 16.29.39 still says that it is due Micro G which has to be patched upstream first. So ist it up to Micro G to fix it? There were some updates but the issue is still existing.
I'm on version 15.33.34, as far as I know the last build that supports Chromecast streaming.
Anything one can do (except using stock YT)?
Thanks for this awesome app anyway!
I am not that familiar with microG.

Has anyone tried casting using microG and stock YouTube or Vanced root YouTube?
(Custom rom | regular (not vanced version) mircoG | stock YouTube.)
(Custom rom | regular (not vanced version) mircoG | Vanced YouTube [root version].)​

Cheers. :cowboy:
 

Spannaa

Recognized Contributor / Themer
I am not that familiar with microG.

Has anyone tried casting using microG and stock YouTube or Vanced root YouTube?
Cheers. :cowboy:
Neither Stock YouTube or root YouTube need or will work with Vanced MicroG as they use Google play services and casting works fine with both.

Vanced MicroG is just a workaround for non-root Vanced and needs updating for casting to work.
 
  • Like
Reactions: ipdev

DiamondJohn

Recognized Contributor
Aug 31, 2013
5,728
5,558
Sydney
I dont use & Never used Vanced MicroG or the Non-Root vanced OR casting. So my question is simply theoretical based on very vague memories of what has been posted here before.

Doesn't casting bypass vanced and actually use the youtube player on the device that is being cast to?
 

ipdev

Recognized Contributor
Feb 14, 2016
1,609
1
2,156
Google Nexus 10
Nexus 7 (2013)
I am not that familiar with microG.

Has anyone tried casting using microG and stock YouTube or Vanced root YouTube?
(Custom rom | regular (not vanced version) mircoG | stock YouTube.)
(Custom rom | regular (not vanced version) mircoG | Vanced YouTube [root version].)​

Cheers. :cowboy:
Neither Stock YouTube or root YouTube need or will work with Vanced MicroG as they use Google play services and casting works fine with both.

Vanced MicroG is just a workaround for non-root Vanced and needs updating for casting to work.
That is why I am asking if casting from stock YouTube or Vanced YouTube root works when using the full microG core (not the vanced version of microG) on a custom rom instead of OpenGApps or another GApps package.
I am not even sure if stock YouTube works at all with microG core. 🙃

Cheers. :cowboy:

PS.
I mainly use Vanced root YT and YTM but, I also have the non-root version installed on a few devices. ;)
 
  • Like
Reactions: Wolfcity

Top Liked Posts

  • 1
    I get the endlessly repeating notifications too. Had to turn notifications off in the app.
    Oh good, so I'm not the only one with that issue. Much more helpful than the last useless response.

    Anyway seems to be a microg problem.
  • 3
    Are you working on a feature that gives the dislike count back to YouTube Vanced users after the removal of the dislike count?
    2
    Is there a working method in 2021 to prevent the constant uninstallation of vanced after an Android restart?

    Since June until today I had 16.16.38 and somehow managed to (unfortunately forgot how. I think I did it via (LP+SAI) - but Vanced no longer offers apk for rooted Android ... oh yeah) that Vanced after the restart is not uninstalled. Today I thought I would update to 16.29.39, because I mistakenly believed that Vanced would finally have fixed this problem. Well, what can I say... Vanced is now uninstalled after every restart. Goddamn it, I'm going to have to grapple with this annoying ''feature'' again.

    -LineageOS rooted, Android 9
    I had the same issue. Fixed it by editing vanced.sh to change sleep 1 to sleep 5. (So in a root terminal
    Bash:
    sed -i 's/sleep 1/sleep 5/g' /data/adb/service.d/vanced.sh
    )
    2
    geez, just don't reply, it's not like im begging for an answer

    what an annoying solution
    It's a bit drastic but it's still a valid solution. Thing with root version issues is that you can always go for non-root as well. But if you're feeling adventurous you'll find the apk (bundle) files needed for manual install on APKMirror.
    2
    why isn't vanced project pushing update to enable download option ?
    devs, can we expect it ?
    Vanced is not on the playstore, for obvious reasons. The playstore is the standard android method of pushing updates. As for "in-app" updates, this is a mod of the existing apk not a full recompile from the proprietary source. And to be honest, I personally wait and watch whats happening on this thread before I venture out and install the bleeding edge update.

    NINJAD! on the video download option...
    2
    Thanks, so should i install Vanced manager instead of magick module due to easier future update?
    You can go either way. i5lee8bit has been keeping his mod that I linked you up-to-date in a fairly timely fashion. But of course he does it after Vanced releases their version. Both are fairly easy to update, in my opinion. Just depends on your preference.
  • 1646
    ‼️Before asking or posting anything, please read the first and second posts.‼️

    YouTube Vanced

    SrSEsV2.png

    Vanced is a well-known modded version of the YouTube app with many features such as ad-blocking and background playback. Vanced also offers some extra features to enhance the user experience. The entire list is available below:

    Features:


    • YouTube Vanced IS NOT YouTube Premium
    • Blocks all YouTube ADs (some options are togglable)
    • Background playback feature
    • Force VP9(or HDR) or vice versa
    • Override Max Resolution
    • Pinch to Zoom on all devices
    • Casting togglable (can be forced off)
    • Togglable Theme (White/Dark/Black)
    • PiP (Android 8.0+)
    • Video window new or old style
    • Repeat video feature
    • Preferred Resolution & Speed feature
    • Swipe controls for Volume and Brightness
    • Sponsorblock integration
    • Tap to seek feature
    • Copy video link + with timestamps feature
    • New Logo by @Logan



    Always check the official Vanced website or XDA thread when downloading. Other sites are fake, contain advertisements (possibly even malware), and have older versions.

    Downloads:

    If your network is down or the website isn't loading, you can download vanced manager from the GitHub page.

    Alternative Mirrors for Older versions below v14.x releases:

    Since YouTube v14.41.52, Google has moved to split APKs format. The Android package installer doesn't support Split apks yet, so we are now using Vanced manager for installing all vanced apps. The steps to use the vanced manager are below:

    INSTALLATION INSTRUCTIONS:


    Especially for MIUI, there's a separate guide that can be accessed using this link.

    For Non-Root:
    1. Download and install the latest Vanced Manager using our official Vanced website.
    2. Open Vanced Manager and tap the blue arrow in the lower right corner.
    3. Begin installing Vanced microG. (This app is mandatory to install if you want to login with your Google account)
    4. Then install YouTube Vanced (or YouTube Music Vanced), log in to your account and enjoy!
    For Root:
    1. Download and install the latest Vanced Manager using our official Vanced website.​
    2. Open Vanced manager and tap on the "Magisk" icon to grant root permissions.​
    3. Once you are in, begin installing YouTube Vanced (or YouTube Music Vanced).​

    Important information:


    • Disabling "APK signature verification," which was previously required, is no longer needed.
    • The magisk version has been discontinued and removed from the magisk repository since Google has switched to Split APKs format. We replaced our root installation with vanced manager, which directly mounts vanced on top of Youtube in the /data/app directory, making it easier and faster than before.
    • Vanced will not block ads while casting since when you use the casting feature, it doesn't send the video from your phone to the Chromecast/TV. Instead, your phone acts like a remote controller for the youtube app in your Chromecast/TV. That is why the advertisement is displayed.


    Known bugs:


    • Purchasing items in the non-root version of the app causes the app to crash. It's most likely due to MicroG. However, for greater security, it is preferable to use the original YouTube app.
    • If your videos are lagging or the application starts to crash while watching live videos, please enable VP9 codec from codec override present under vanced settings. Google forced the ExoPlayer v2, which is highly experimental and unstable on unsupported devices.
    • As of v16.16.38, casting won't work due to an upstream microG bug.
    • On portrait/vertical videos, preferred quality options do not work.



    Installation guide for old versions:



    Non-Root:



    1. Download and install the Vanced microG using the latest Vanced manager
    2. Download the necessary Vanced APK file using the old versions link above.
    3. Install the APK like you would for any other app.


    Root:


    1. Download the official TWRP installer found in the downloads above
    2. Download the suitable APK of the theme you want for your device (check your architecture using an app such as CPU-Z)
    3. Place the downloaded APK into a separate new folder with the TWRP installer zip you downloaded or inside the installer zip
    4. Uninstall all YouTube updates and disable auto-update in the play store (If you can completely uninstall the youtube application)
    5. Flash the installer in TWRP
    6. Profit!


    Magisk:



    There are a total of 2 ways to install the magisk version.
    • The first and most effective way is to install it via the Magisk app. Since we have discontinued the Magisk version and removed it from the magisk repository, you can get the last available magisk version using this link.
    • The second way is to place "Install via magisk.plz" alongside the official installer zip or enable magisk install in the settings.sh and flash via the magisk app.
    Note: Make sure you have uninstalled the stock YouTube app or at least uninstalled its updates below v14.21.54. A newer version will override the vanced installation, preventing you from seeing vanced in your app drawer.



    Explanation of the (Ad)Vanced options of the official installer:


    Vanced makes use of both settings.sh and plz files as parameters while installing.

    Using the settings.sh:


    • SEARCHFOLDER - Path where to search for iYTBP Apk's (must be a subfolder on sdcard!)
    • MAGINSTALL - Use magisk installation instead of root installation. (Possible Values: YES/NO)
    • DETACH - Detach Youtube from the play store to disable update notifications. (Possible Values: YES/NO)
    • ATTACH - Attach Youtube to play store if it was previously detached. (Possible Values: YES/NO)
    • UNINSTALL - Completely uninstall iYTBP: root version, magisk module, and detach module (Possible Values: YES/NO)



    Using the plz files: (Use only the ones you want)



    (Place the downloaded file in the same folder as the official installer zip)
    • iYTBP_install_via_magisk.plz - Use magisk installation instead of root installation
    • iYTBP_detach_from_playstore.plz - Detach Youtube from play store to disable update notifications.
    • iYTBP_attach_to_playstore.plz - Attach Youtube to play store if it was previously detached.
    • iYTBP_uninstall.plz - Completely uninstall iYTBP: root version, magisk module, and detach module.




    Thread Managed by @ZaneZam, @Razerman, @KevinX8 and @laura almeida

    Social links

    548

    BUG Reports:


    Steps to do before reporting a bug
    1. Do a search and see if it has already been reported
    2. Check that the bug is actually a Vanced bug and doesn't happen in the original YouTube.
    Steps to do when reporting a bug
    1. Make sure you are being enough descriptive of the problem.
    2. Take a logcat (Google search if you don't know how). Especially if the issue is a crash.
    3. Taking pictures of the problem doesn't hurt.
    4. If the report is vague (missing information), it will most likely just be ignored. If you are not going to show any effort in resolving the problem, why should I?

    F.A.Q:


    Q.Where did the normal(white) apk go??
    A. White is included in both versions by default as a primary theme. Simply choose the alternate theme you prefer for the night time then use it accordingly with your system theme.

    Q. How to install updates?
    A. When using vanced manager, simply tap on the "update" button to begin updating your vanced. If you are installing an older version, just download the latest apk and install it as you previously did before.

    Q. Do I need to re-install detach script for every new YouTube Vanced update?
    A. No!

    Q. Can I install this as I normally install any other apk?
    A. Only the non-root version.

    Q. Can I download videos with this?
    A. No (and you never will)! But the official YouTube Offline Video feature is working in Supported countries.

    Q. Why is the <xyz> variant not available to download?
    A. We release 2 Unified builds of non-root, one with the stock youtube theme and another with an AMOLED friendly theme. Use the latest vanced manager and choose the theme and language you would like to install.

    Q. Installation successful but YouTube is not showing up in launcher, why?
    A. If you are facing this issue that means you are not using vanced manager. Please use vanced manager to install vanced applications. If you are installing old versions of root variants, make sure the stock youtube app is uninstalled or at least you uninstalled its updates.

    Q. Does the 'Crop to fit' feature work for S8 and S8+ users?
    A. Yes! It works on the rooted version but not in the non-root since the package name is changed. However, there is an alternative new Pinch to Zoom feature with basically the same functionality.

    Q. Is history working?
    A. Yes! Make sure you whitelist *s.youtube.com in your ad blocker. And non-root users need to check that they are not using a brand account due to the MicroG bug. If you are, you need to merge the accounts to get the history working (YouTube Settings). The merging process will clean the current history.

    Q. Does PIP mode works?
    A. Yes, from Android 8.0+ only!

    Q. When will you release the new version?
    A. Usually within a couple of days after the official apk is available in apkmirror. But please don't ask for ETA!

    Q. Does background playback download video?
    A. No, it does not. After going into background playback, you will only download audio so there will be much less data usage.

    Q. I can't log in on Non-Root, I get stuck on the I agree page. What to do?
    A. If you are facing this issue, that means you are using older versions of vanced microG. Please update to the latest version using the latest vanced manager which can be downloaded via our official website. Links can be found in the first post.
    304
    Downloads:

    GDrive (All versions)
    Alternative Mirrors: AFH (rarely updated) Mediafire (only the latest)
    101
    New site up https://vanced.azurewebsites.net/ with latest version of YouTube as base (13.10). Includes some bugfixes and other changes detailed on discord. At the time of writing this post apkmirror lacks apks for arm so you will have to wait a while until it has them and then we will be able to make arm root builds.
    83
    New update is out v13.28.54 with following changes:
    - 13.28.53 Full width search bar fix
    - Translation support for more strings
    - HDR brightness bug fixed when using swipe controls
    - Auto repeat can now be linked to autoplay toggle
    - Top-Swipe paddig range added
    - Seek buttons fixed
    - COMPLETE REWORK of all mods for v13.27+ versions (many thx and all credits to @Razerman !!)