/ytvanced

YouTube Vanced & Vanced MicroG Backup APK

Primary LanguageKotlinGNU General Public License v3.0GPL-3.0

YouTube Vanced+ [WIP]

Modification of YouTube/YouTube Music app for Android with ad-free, background playback and many other tweaks, our aim is open source everything we modified for YouTube/YouTube Music !

YouTube Vanced+ logo

Badage

Badage Badge

Badge Badge

Badge Badge

Discord

Table of Contents (Quick navigation)

Introduction

This project was created after discontinuation of Vanced official aswell wars between Unofficial Vanced and ReVanced Extended. Its not YouTube Vanced and just is the CLONE of YouTube Vanced. The project are in development and will going release soon as possible!

Features

  • Almost same as Official YouTube Vanced
  • YouTube Vanced+ blocks ads from YouTube and uses SponsorBlock to skip in-video sponsor segments
  • The picture-in-picture mode allows watching videos in a floating window
  • Background play allows playing video sound in background
  • Override max resolution
  • Swipe control for brightness and volume
  • Google login like the original YouTube app using Vanced+ MicroG
  • Dislike counter re-added using the Return YouTube Dislike database
  • Disable YouTube Shorts function everywhere
  • Enable old layout of YouTube
  • Download videos from YouTube using external downloader app
  • Custom video speed
  • Enable YouTube Premium header (not actually enable Premium features!)
  • Many more...

Download

Notice : It is recommended to build Vanced+ yourself instead of using pre-bulit apk, follow this instruction to build for yourself. if you can't build or lazy, use pre-bulit apk below, its have all patches included :)

YouTube Vanced+ non-root variant

Current Version : XX.XX.XX | Older version

Minimum Android version : 9+ (Pie)

Download latest version of Vanced MicroG

Not yet right now! wait for we implement, check for implement status in community above~~


YouTube Vanced+ root variant (Magisk/KernelSU)

Notice : Install detach module to prevent Play Store from update and replace installed Vanced+. If you are using microG services core as replacement for GMS, enable Fix video playback issue on Vanced+ settings -> Video to fix buffering issue !

Current Version : XX.XX.XX | Older version

Minimum Android version : 9+ (Pie)

Not yet right now! wait for we implement, check for implement status in community above~~


YouTube Music Vanced+ non-root variant

Download latest version of Vanced+ MicroG

Current Version : X.XX.XX | Older version

Minimum Android version : 9+ (Pie)

Not yet right now! wait for we implement, check for implement status in community above~~


YouTube Music Vanced+ root variant

Notice : Install detach module to prevent Play Store from update and replace installed Vanced+.

Not yet right now! wait for we implement, check for implement status in community above~~


YouTube Vanced non-root variant (DEPRECATED)

These version are deprecated but still works, this will get removed here in future after Vanced+ finally launch!

Download latest version of Vanced MicroG

YouTube Vanced 18.21.34 (LAST) (RVX) (ARCHIVED)

YouTube Vanced 18.02.33 (RVX) (ARCHIVED)

YouTube Vanced 18.01.38 (RVX) (ARCHIVED)

YouTube Vanced 17.45.36 (RVX) (ARCHIVED)

YouTube Vanced 17.39.35 (Android 6 & 7) (RVX) (ARCHIVED)

YouTube Vanced root variant (Magisk only) (DEPRECATED)

Download YouTube Vanced 18.01.38 Black Magisk Module

Download YouTube Vanced 18.01.38 Dark Magisk Module

Download YouTube Vanced 18.01.38 Monet Magisk Module (Android 12+)

YouTube Music Vanced non-root variant (DEPRECATED)

Download YouTube Music Vanced 5.39.52

YouTube Vanced+ DEVELOPMENT variant :

Download YouTube Vanced+ 18.28.33 DEVELOPMENT TESTING

Download archived release (RVX) (DEPRECATED)

WARNING : This is old YouTube Vanced build based on ReVanced Extended patches which is deprecated, aswell my worst because it just is ReVanced Extended build with YouTube Vanced branding logo & name. DO NOT REPORT ISSUE WHEN USE THIS BUILD!

YouTube Vanced 18.21.34 (LAST) (RVX) (ARCHIVED)

YouTube Music Vanced 5.39.52 (RVX) (ARCHIVED)

YouTube Vanced 18.02.33 (RVX) (ARCHIVED)

YouTube Vanced 18.01.38 (RVX) (ARCHIVED)

YouTube Vanced 17.45.36 (RVX) (ARCHIVED)

YouTube Vanced 17.45.36 (RVX) (ARCHIVED)

YouTube Vanced 17.43.36 (RVX) (ARCHIVED)

YouTube Vanced 17.41.34 (RVX) (ARCHIVED)

YouTube Vanced 17.39.35 (Android 6 & 7) (RVX) (ARCHIVED)

Source code

Official YouTube app itself are proprietary and closed source, we can't access YouTube source code because its are private which only Google/YouTube developer can see its original code in kotlin and java which is not obfuscated and modify it. So we can only patch and modify YouTube from published compiled binary apk which is extremely obfuscated by Google/YouTube developer when they compiling YouTube app. Here is source code for what was modified and all of Vanced+/Vanced features, again, DONT ask for YouTube app source code! :

Known issues

  • Chromecast v2 casting does not works on non-root variant due to Vanced microG
  • In-app purchases can't be processed on non-root variant
  • 18.28.33 DEVELOPMENT variant are crashing and doesnt work

Troubleshoot

If these solution isn't fix your problem, please create issues here.

Video playback not working (buffer issue)

Solution for YouTube Vanced+ (18.25.39+) :

  • Enable Fix video playback buffer issue option on Vanced settings -> Video settings. Buffering problem should fix.

Solution for old YouTube Vanced (RVX) 17.34.36/17.39.35/18.02.33/18.21.34 :

  • Enable Enable protobuf spoof option on Vanced settings -> Video (If Enable protobuf spoof option is enabled by default, re-enable Enable protobuf spoof option. Buffering problem should fix.

No internet connection:

  • Remove your account from Vanced MicroG (If have and try again)
  • Wipe Vanced MicroG & YouTube Vanced+ & YouTube Music Vanced+ app data and cache
  • Enable auto start for Vanced MicroG if you use heavy customized Android version such as MIUI,OneUI,FlymeOS,HarmonyOS,etc
  • For Tecno user : Find and open Phone Master app, go to auto start manager, allow Vanced microG and YouTube Vanced+ auto start.

App not installed :

  • Free up some storage space and try again
  • Uninstall official YouTube Vanced client downloaded from Vanced Manager or other unknown sources then try again.
  • Make sure you have downloaded Universal version of YouTube Vanced+/YouTube Music Vanced+
  • Check out if old YouTube Vanced still installed in multiple user & virtual space mode

Crash when opening & MicroG does not run in background :

  • Install or reinstall Vanced MicroG
  • Turn off battery optimization for Vanced MicroG
  • Allow Vanced MicroG run on background or auto start (on heavy customized OS : MIUI,OneUI,FlymeOS,HarmonyOS,etc)
  • For Tecno user : Find and open Phone Master app, go to auto start manager, allow Vanced microG and YouTube Vanced+ auto start.
  • Wipe app data and cache
  • Reinstall YouTube Vanced+ client

There was a problem parsing the package:

  • Check your Android version, Make sure your current Android version meet minimum required Android version.
  • Redownload APK file.

Installation for MIUI

If you can't install YouTube Vanced+ in MIUI, try turn off MIUI Optimization in Developer options then try install again or using MIUI default File Manager to install.


Building

Building from Vanced+ source code

CAUTION : Only Android & Linux are supported !!!

WSL/Mac users will get this warning : vancedx-cli are not allowed under this environment, quiting...

Clone essential repository

git clone https://gitlab.com/cuynu/vancedx-patches.git

git clone https://gitlab.com/cuynu/vancedx-integrations.git

git clone https://gitlab.com/cuynu/vancedx-cli.git

Open vancedx-patches repository in IntelliJ IDEA, make your changes and compile it, output should be vancedx-patches-vX.XXX.jar

Open vancedx-integrations repository in Android Studio, make your change and compile it, output should be vancedx-integrations-vX.XXX.apk

Open vancedx-cli repository in IntelliJ IDEA, make your change and compile it, output should be vancedx-cli-vX.XXX.jar

Patching YouTube app

  • For Android users or who lazy to bulit patches & integrations & cli from source, use pre-bulit package here :

vancedx-patches pre-bulit

vancedx-integrations pre-bulit

vancedx-cli pre-bulit

Linux :

  • Make sure you have installed openjdk-17
  • Compile all of essential components or download pre-bulit package above
  • Download YouTube or YouTube Music apk (not apks,apkm) and rename it to youtube.apk (YouTube), ytm.apk (for YouTube Music)
  • Use Command below to patch.

Android :

  • Install Termux, open and install openjdk pkg install openjdk-17 y
  • type curl -sLo vancedx-patches.jar [paste download url]
  • type curl -sLo vancedx-integrations.apk [paste download url]
  • type curl -sLo vancedx-cli.jar [paste download url]
  • Download YouTube or YouTube Music apk (not apks,apkm) and rename it to youtube.apk (YouTube), ytm.apk (for YouTube Music)
  • Use Command below to patch.

Command & example

YouTube (Linux) (dont run as sudo !) :

java -jar 'vancedx-cli-vX.XXX.jar' -p 'vancedx-patches-vX.XXX.jar' -i 'vancedx-integrations-vX.XXX.apk' -lp 'patch-name' --jks 'yourjkskey.jks' --input 'youtube.apk' --output '/VancedXAPKs/base-vx.apk'

YouTube Music (Linux) (dont run as sudo !) :

java -jar 'vancedx-cli-vX.XXX.jar' -p 'vancedx-patches-vX.XXX.jar' -i 'vancedx-integrations-vX.XXX.apk' -lp 'patch-name-music' --jks 'yourjkskey.jks' --input 'ytm.apk' --output '/VancedXAPKs/base-vx.apk'

YouTube (Termux):

java -jar 'vancedx-cli.jar' -p 'vancedx-patches.jar' -i 'vancedx-integrations.apk' -lp 'patch-name' --jks 'yourjkskey.jks' --input '/sdcard/Download/youtube.apk' --output '/VancedXAPKs/base-vx.apk'

YouTube Music (Termux):

java -jar 'vancedx-cli.jar' -p 'vancedx-patches.jar' -i 'vancedx-integrations.apk' -lp 'patch-name-music' --jks 'yourjkskey.jks' --input '/sdcard/Download/ytm.apk' --output '/VancedXAPKs/base-vx.apk'

Tips : If you getting Error: Invalid or corrupt jarfile, redownload essential components then try again.

After patching process, its will generate base-vx.apk in /sdcard/VancedXAPKs (Android) or /home/username/VancedXAPKs (Linux)

For non-root users, install Vanced+ microG and patched base-vx.apk then enjoy !

For root users, follow additional steps on Vanced+ Module Template !


Credits

Team Vanced : Old YouTube Vanced official which is closed source

ApkTool : Reverse Engineering tool

JadX : Dex (Smali) to Java decompiler (not too helpful as this doesnt actually decompile to right original Java/Kotlin code)

Android Studio/IntelliJ IDEA : IDE to write and implement YouTube Vanced+

inotia00 : Old YouTube Vanced (RVX) based patches (17.34.36-18.21.34)

ReVanced Team : ReVanced Team

Stargazers over time

Stargazers over time