YouTube Vanced is a modded version of YouTube for android. Which has Ad Blocking, as well as lets you configure your default play resolution and auto-play and auto-repeat features. https://vanced.app/
It's WAY worth it. Especially if you like to play youtube videos using Google Assistant.
Why do we need to use this tutorial?
We can't install YouTube Vanced using TWRP, or Magisk. And Youtube must be installed as a system app. IE not from the play store.
Talked with the Youtube Vanced Dev, and he told me of a MUCH easier way of doing this. *facepalmtree*
xfileFIN over at the YouTube Vanced discord. ^_^ I love you.
More Answers/Questions at the bottom.
Don't let the Length of this overwhelm you. It's all pretty easy.
Things you will need:
- A Fresh install of Android for the Odroid-C2. I used this during the making of this tutorial: viewtopic.php?f=137&t=19203#p266354
- OpenGAPPS ARM 6.0 STOCK. Not PICO or NANO, don't unzip it: https://opengapps.org/
- A gapps-config.txt that's been slimmed down: https://drive.google.com/open?id=1vfQQh ... eSELbdyFNm
Read notes at the bottom regarding this.
- A file browser with Root Access. I use MiXplorer v6.39.2, and will be using it throughout this tutorial: https://forum.xda-developers.com/showth ... ?t=1523691
- YouTube Vanced Root armeabi-v7a version. Don't need the Installer. https://vanced.app/APKs?type=ROOT
- Optional but HIGHLY Recommended: An eMMC Module for your OS, and not a microSD card.
Don't let the number of steps scare you, they're very simple. You're already using an Odroid, so you already have the skills needed for this.
Step 1: Install Android onto your eMMC. or microSD card.
May work on an existing install. Just uninstall any and all google apps that you've installed through the play store, especially youtube, and the Google search app. I was able to upgrade a PICO Install to NANO for the Google app for Google assistant, but since my stock install removes stuff that pico/nano have by default, it may or may not work. Use at your own risk if upgrading.
Step 2: Download OpenGAPPS ARM 6.0 STOCK, If you haven't already. Don't unzip it. https://opengapps.org/
Not ARM64, or x86/x86_64. Don't install it yet, just move onto the next step for now.
Step 3: Download the gapps-config.txt if you haven't already. https://drive.google.com/open?id=1vfQQh ... eSELbdyFNm
This gapps-config.txt slims it down so it'll fit. You must have Youtube install as a system app. The google app too, for google assistant, so Pico is bad.
Step 4: Download MiXplorer: https://forum.xda-developers.com/attach ... 1563119463
Step 5: Youtube Vanced armeabi-v7a root version, of your choice. White/Dark, or White Black. If you haven't already https://vanced.app/APKs?type=ROOT
Rename your download to Youtube.apk, and create a copy of it, named Youtube2.zip. Extract the ZIP version.
Youtube_version_(armeabi-v7a)(nodpi)(vTheme-v2.0.9)-vanced.apk to Youtube.apk
Now the Fun Stuff.
Step 6: Copy the open_gapps-arm-6.0-stock-**********.zip, the gapps-config.txt, the MiXplorer APK, and Youtube.apk and the /lib/ from the extracted youtube2.zip onto a separate thumb drive, or microSD card if you're using an eMMC.
Step 7: Copy the open_gapps zip, the gapps-config.txt, and MiXplorer apk, but NOT the YouTube.apk or /lib/ folder, to your Internal Download folder.
open_gapps-arm-6.0-stock-***********.zip and the gapps-config.txt must be in the same folder.
Step 8: Remove the Thumb Drive/MicroSD card, or what ever you used to transfer the files.
Make sure your Thumb Drive/MicroSD card is removed!
Step 9: Install open_gapps: Open the Odroid Utility, click the little icon in the top right, click Package Install from Storage, and navigate to the Download folder and select the open_gapps-arm-6.0-stock-numbers.zip. It'll ask if you want to proceed. And press Proceed. Let it do it's thing.
It'll only install what it needs, from the gapps-config.txt.
After open_gapps is installed, it'll probably crash while trying to login but what ever, you'll see that Youtube is now installed on your odroid in the app drawer. As well as Google. (The google app, this is good, it means Google Assistant will work right. Even better)
Step 10: Open the Google Play Store, after you log in, Click the 3 bars in the top left, scroll down to Settings, and Click on Auto-Update apps. And Select "Don't auto-update apps" Else you'll have to uninstall updates later, and repeat Steps 12-20 later on. Just manually check for updates every so often, and DON'T update Youtube.
Step 11: Go into your Download and Install MiXplorer by it's APK.
Step 12: Go to Settings -> Apps -> scroll down to Youtube and click Force Stop. Then Click Disable.
Step 13: Check to see that the youtube app is gone from the app drawer.
Step 14: Open MiXplorer, Click the 3 lines in the top left corner and click Root. Supersu will ask if you want to allow Root access. Click grant access forever, then go ahead and grant it access.
Step 15: Go to /System/app/Youtube/ and you should see a single Youtube.apk inside it. Press/hold your finger/mouse on the file until it's selected, then press the Trash/Rubbish-Bin on the top right to Delete it. Yup.. Delete the Youtube.apk
Step 16: Put the thumb drive/mSD back in, In MiXplorer, top left, click the 3 lines, select your device, open it, go to the youtube folder, Hold on the Youtube.apk, tap the lib folder so both are highlighted. And tap the icon that looks like 2 pages next to the rubbish bin in the top right to Copy files.
Step 17: Go back to /System/app/Youtube/ and Click the First Icon in the top right, the Clipboard, and click Copy. And it'll copy the Youtube.apk and the libfolder into /system/app/Youtube/
So it should look like
/System/app/Youtube/lib/armeabi-v7a/ bunch of .so files.
Step 18: After they're done copying, hold your pointer on Youtube.apk, click the 5th icon on the top right, the circle with an ( i ), and click where it lists the permissions. Top 3, first middle, none bottom. Then save.
Step 19: Reboot your Odroid-C2.
Step 20: Go into your Android's Settings -> Apps -> Youtube, and Enable.
Go into your app drawer, and you should see Youtube Vanced there, with a brand new icon. Block Google Play Store notifications in Sound & Notification settings to block notifications about updating youtube.
Enjoy! Go into your Youtube Settings in the app and down to the Vanced settings. From here you can alter your stuff like Resolution, and ads, and auto-plays.
Answers and Questions:
Why do we need to do it this way?
We need Youtube installed as a system app to replaced it properly with Youtube Vanced. But since we don't have a recovery menu, we can't use TWRP. But this way is still pretty damn easy.
Why not just use the non-root version?
The non-root version is treated as a separate app. It's not even named Youtube Vanced. So it doesn't work with Google Assistant at all.
The gapps-config.txt It's a bit custom. The whole gapps stock won't fit for some reason, so i have to pick and choose. Anything installed with gapps is installed as a system app. If you need some other stuff installed, for example the google dialer app normally in PICO. You can put it back. https://github.com/opengapps/opengapps/ ... nd-Options
But if you get an out of space error while trying to install opengapps, you may need to remove something else, like gmail. And install it separate.
Just don't remove "Search" the Google App listed under nano. or Youtube. If you keep the Google app, and have it install as a system app. You can use Google Assistant with Activate on Voice Match. Because of this, i never recommend people install the PICO gapps. If they must, they should install nano, but use the gapps config to only include the Pico stuff, and Search, from the Nano section.
Using Google assistant with YouTube Vanced is soo nice. "Ok Google, Play Disturbed The sound of silence, on youtube." Without ads.
Can you do this on an older install instead of a fresh install, maybe an install that has Pico or Nano gapps?
Maybe... Just maybe. Uninstall youtube if you installed it through the play store, and then download the stock gapps and the gapps-config.
I didn't have any problems upgrading from pico to stock while testing before i got my emmc. But if it says you don't have enough space. Remove Gmail from the gapps config. and try again.