2023-09-30 07:47:52 +00:00
# YouTube Vanced+ [WIP]
2023-11-21 17:01:29 +00:00
**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 !**
2022-03-14 00:15:27 +07:00
2023-10-07 20:51:36 +00:00
<a href="#download ">
2023-09-30 07:47:52 +00:00
<img alt="YouTube Vanced+ logo" src="images/vancedx_banner.png" width="270" height="150" />
2023-07-25 14:08:31 +00:00
</a>
2023-06-03 15:50:03 +00:00
2023-11-20 04:49:00 +00:00
## Donate this project (Not required) (GitHub)
2023-10-06 22:52:18 +00:00
<p align="left">
<a href="https://github.com/sponsors/cuynu"><img src="https://img.shields.io/badge/Support%20Project-%E2%9D%A4-%23db61a2.svg?&logo=github&logoColor=white&labelColor=181717&style=flat-square" alt="Badage"></img></a>
2023-07-25 14:08:31 +00:00
## Table of Contents (Quick navigation)
2022-12-05 16:03:38 +07:00
2023-07-25 14:08:31 +00:00
* [Credits ](#credits )
* [Features ](#features )
* [Known issues ](#known-issues )
2023-09-30 07:47:52 +00:00
* [Building YouTube Vanced+ from source ](#building )
2023-11-21 17:07:25 +00:00
* [Download YouTube Vanced+ APKs ](#download )
2023-07-25 14:08:31 +00:00
* [Troubleshoot ](#troubleshoot )
* [Source code ](#source-code )
2022-11-09 00:51:07 +07:00
2023-07-25 14:08:31 +00:00
# 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
2023-11-21 17:04:35 +00:00
- **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...*
2023-07-25 14:08:31 +00:00
2023-09-30 07:47:52 +00:00
# Community/Updates channel
Join YouTube Vanced+ Community/Updates channel to receive patches & release & news updates and discuss with other people on us community!
</p> <a href="https://telegram.me/ytvancedxupdates" ><img src="https://img.shields.io/badge/YouTube Vanced+ Community-2CA5E0?style=for-the-badge&logo=telegram&logoColor=dark"></a>
<p align="left">
<a href="https://discord.gg/U7z2hsxbyM">
<img alt="Discord" src="https://img.shields.io/discord/1077997663628296333?color=%2300C853&label=YouTube%20VancedX%20Server&logo=discord&logoColor=%2300C853&style=for-the-badge">
</a>
</p>
2023-04-18 18:45:45 +07:00
2023-09-30 07:47:52 +00:00
# Download
2022-07-27 23:27:41 +07:00
2023-11-21 17:04:35 +00:00
Notice : It is recommended to build Vanced+ yourself instead of using pre-bulit apk, follow * * [this instruction ](#building )** to build for yourself. if you can't build or lazy, use pre-bulit apk below, its have all patches included :)
2023-10-07 20:51:36 +00:00
2023-11-20 04:49:00 +00:00
-------------------------
2023-09-30 07:47:52 +00:00
### YouTube Vanced+ non-root variant
2023-01-25 16:56:18 +07:00
2023-11-20 04:49:00 +00:00
**[Download latest version of Vanced+ MicroG ](https://gitlab.com/cuynu/VancedxMicroG/-/releases )**
2022-10-17 18:51:58 +07:00
2023-11-20 04:49:00 +00:00
Current Version : **18.46.39 ** | * * [Older version ](https://gitlab.com/cuynu/ytvancedx/-/releases )**
2023-03-19 15:13:27 +07:00
2023-11-20 04:49:00 +00:00
Minimum Android version : **9+ (Pie) **
2023-10-07 20:51:36 +00:00
2023-11-20 04:49:00 +00:00
### Black Theme
**[Download Black theme variant for arm64-v8a ](https://example.com )**
**[Download Black theme variant for armeabi-v7a ](https://example.com )**
**[Download Black theme variant for x86 ](https://example.com )**
**[Download Black theme variant for x86_64 ](https://example.com )**
**[Download Black theme variant for Universal (GitHub) ](https://example.com )**
-------------------------
### Dark Theme
**[Download Dark theme variant for arm64-v8a ](https://example.com )**
**[Download Dark theme variant for armeabi-v7a ](https://example.com )**
**[Download Dark theme variant for x86 ](https://example.com )**
**[Download Dark theme variant for x86_64 ](https://example.com )**
**[Download Dark theme variant for Universal (GitHub) ](https://example.com )**
-------------------------
### Material You Theme (Android 12+)
2023-10-07 20:51:36 +00:00
2023-11-20 04:49:00 +00:00
**[Download Material You theme variant for arm64-v8a ](https://example.com )**
**[Download Material You theme variant for armeabi-v7a ](https://example.com )**
**[Download Material You theme variant for x86 ](https://example.com )**
**[Download Material You theme variant for x86_64 ](https://example.com )**
**[Download Material You theme variant for Universal (GitHub) ](https://example.com )**
-------------------------
2023-10-07 20:51:36 +00:00
### YouTube Vanced+ root variant (Magisk/KernelSU)
Notice : Install * * [detach module ](https://github.com/j-hc/zygisk-detach/releases )** 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 !
2023-11-20 04:49:00 +00:00
Current Version : **18.46.39 ** | * * [Older version ](https://gitlab.com/cuynu/ytvancedx/-/releases )**
2023-10-07 20:51:36 +00:00
2023-11-20 04:49:00 +00:00
Minimum Android version : **9+ (Pie) **
2023-10-07 20:51:36 +00:00
2023-11-20 04:49:00 +00:00
### Black Theme
2023-10-07 20:51:36 +00:00
2023-11-20 04:49:00 +00:00
**[Download Black theme variant for Universal ](https://example.com )**
-------------------------
### Dark Theme
**[Download Dark theme variant for Universal ](https://example.com )**
-------------------------
### Material You Theme (Android 12+)
2023-10-07 20:51:36 +00:00
2023-11-20 04:49:00 +00:00
**[Download Material You theme variant for Universal ](https://example.com )**
-------------------------
2023-01-16 15:07:23 +07:00
2023-11-20 16:44:35 +00:00
### YouTube Music Vanced+ non-root variant
**[Download latest version of Vanced+ MicroG ](https://gitlab.com/cuynu/VancedxMicroG/-/releases )**
Current Version : **6.28.52 ** | * * [Older version ](https://gitlab.com/cuynu/ytvancedx/-/releases )**
Minimum Android version : **9+ (Pie) **
**[Download for arm64-v8a ](https://example.com )**
**[Download for armeabi-v7a ](https://example.com )**
**[Download for x86 ](https://example.com )**
**[Download for Universal ](https://example.com )**
-------------------------
### YouTube Music Vanced+ root variant
Notice : Install * * [detach module ](https://github.com/j-hc/zygisk-detach/releases )** to prevent Play Store from update and replace installed Vanced+.
**[Download for arm64-v8a ](https://example.com )**
**[Download for armeabi-v7a ](https://example.com )**
**[Download for x86 ](https://example.com )**
-------------------------
2023-07-25 14:08:31 +00:00
## Source code
2023-02-25 15:18:02 +07:00
2023-09-30 07:47:52 +00:00
**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! :**
2023-02-25 15:18:02 +07:00
2023-09-30 07:47:52 +00:00
#### [View source code of YouTube Vanced+ (patches)](https://gitlab.com/cuynu/vancedx-patches)
2023-02-25 15:18:02 +07:00
2023-09-30 07:47:52 +00:00
#### [View source code of YouTube Vanced+ (integrations)](https://gitlab.com/cuynu/vancedx-integrations)
2023-11-20 04:49:00 +00:00
#### [View source code of YouTube Vanced+ (cli)](https://gitlab.com/cuynu/vancedx-cli)
-------------------------
2023-09-30 07:47:52 +00:00
2023-07-25 14:08:31 +00:00
### Known issues
2022-11-04 12:36:36 +07:00
2023-09-30 09:02:09 +00:00
- Chromecast v2 casting does not works on non-root variant due to Vanced+ microG
2023-07-25 14:08:31 +00:00
- In-app purchases can't be processed on non-root variant
2023-01-25 16:56:18 +07:00
2023-11-20 04:49:00 +00:00
-------------------------
2023-04-19 09:29:15 +07:00
### Troubleshoot
2023-03-14 14:29:31 +07:00
2023-09-30 07:53:13 +00:00
> If these solution isn't fix your problem, please create issues **[here.](https://gitlab.com/cuynu/ytvancedx/-/issues)**
2023-03-14 14:29:31 +07:00
**Video playback not working (buffer issue)**
2023-04-14 15:31:21 +07:00
2023-11-20 04:49:00 +00:00
Solution for YouTube Vanced+ (18.44.40+) :
2023-07-25 14:08:31 +00:00
- Enable `Fix video playback buffer issue` option on Vanced settings -> Video. Buffering problem should fix.
2023-04-14 15:31:21 +07:00
2023-03-14 14:29:31 +07:00
**No internet connection:**
2023-09-30 08:44:01 +00:00
- 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.
2023-03-14 14:29:31 +07:00
**App not installed :**
- Free up some storage space and try again
2023-07-25 14:08:31 +00:00
- 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
2023-03-14 14:29:31 +07:00
2023-11-20 04:49:00 +00:00
**Crash when opening & "Vanced+ microG can't be started :(" toast showing :**
2023-09-30 08:44:01 +00:00
- 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.
2023-03-14 14:29:31 +07:00
- Wipe app data and cache
2023-06-03 16:19:43 +00:00
- Reinstall YouTube Vanced+ client
2023-03-14 14:29:31 +07:00
**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.
2022-09-23 18:41:39 +07:00
2023-11-20 04:49:00 +00:00
-------------------------
### 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 ](https://gitlab.com/cuynu/vancedx-patches/-/releases )
[vancedx-integrations pre-bulit ](https://gitlab.com/cuynu/vancedx-integrations/-/releases )
[vancedx-cli pre-bulit ](https://gitlab.com/cuynu/vancedx-cli/-/releases )
2023-11-20 07:52:22 +00:00
**Linux :**
- Make sure you have installed `openjdk-17`
2023-11-20 16:38:32 +00:00
- Compile all of essential components or download pre-bulit package above
2023-11-20 07:52:22 +00:00
- 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.
2023-11-20 04:49:00 +00:00
2023-11-20 07:52:22 +00:00
**Android :**
- Install [Termux ](https://termux.dev/en/ ), 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 !) :**
2023-11-20 05:24:57 +00:00
2023-11-20 04:49:00 +00:00
`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'`
2023-11-20 07:52:22 +00:00
**YouTube Music (Linux) (dont run as sudo !) :**
2023-11-20 05:24:57 +00:00
2023-11-20 07:52:22 +00:00
`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'`
2023-11-20 05:24:57 +00:00
2023-11-20 07:52:22 +00:00
**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'`
2023-11-20 16:38:32 +00:00
Tips : If you getting `Error: Invalid or corrupt jarfile` , redownload essential components then try again.
2023-11-20 05:24:57 +00:00
2023-11-20 04:49:00 +00:00
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 ](https://gitlab.com/cuynu/vancedx-module-template )** !
2023-07-25 14:08:31 +00:00
# Credits
**[Team Vanced ](https://github.com/TeamVanced )** : Old YouTube Vanced official which is closed source
**[ApkTool ](https://ibotpeaches.github.io/Apktool/ )** : Reverse Engineering tool
2023-09-30 07:47:52 +00:00
**[JadX ](https://github.com/skylot/jadx )** : Dex (Smali) to Java decompiler (not too helpful as this doesnt actually decompile to right original Java/Kotlin code)
2023-07-25 14:08:31 +00:00
2023-09-30 07:47:52 +00:00
**Android Studio/IntelliJ IDEA : IDE to write and implement YouTube Vanced+**
2023-07-25 14:08:31 +00:00
**[inotia00 ](https://github.com/inotia00 )** : Old YouTube Vanced (RVX) based patches (17.34.36-18.21.34)
2022-03-30 18:09:11 +07:00
2023-09-30 07:47:52 +00:00
**[ReVanced Team ](https://github.com/revanced )** : ReVanced Team
2022-03-14 11:50:31 +07:00
2023-11-20 04:49:00 +00:00
-------------------------
2023-09-30 07:53:13 +00:00
2023-09-30 07:47:52 +00:00
## [Go back to top of this page](#youtube-vanced-wip)