Block Ads in Android's YouTube App Without Using Xposed
But Xposed isn't an option for everyone. Some phones have locked bootloaders, which means no TWRP and no Xposed Framework. And then there's the fact that Xposed breaks Android Pay and similar services, which is a deal breaker for a lot of people.
But developer Arter97 has finally found a way around this. He modified the stock YouTube app itself to not show ads, which is basically what Xposed would do, but bundled into one package. Ultimately, this means you only need root to block ads in Android's YouTube app, and it's a fairly simple process.
Step 1Find Your DPI & Processor TypeThe ad-free YouTube APK comes in several different variants that are device-specific. As such, you'll need to know your phone or tablet's processor type and DPI value before you download the app. If you're not sure about your DPI, you can see this number with an app called DPI Checker, which is pretty straightforward.
Droid Hardware Info. It's not quite as straightforward as DPI Checker, so we've covered the process with a full guide, which you can read at the following link.
Step 2Download the Right APK for Your DeviceNow that you know your DPI value and processor type, download the ad-free YouTube APK for your particular device using one of the following links:
- ARM64 Devices (Any DPI)
- ARM Devices (240 DPI)
- ARM Devices (320 DPI)
- ARM Devices (480 DPI)
- x86 Devices (480 DPI)
Step 3Remove the Old YouTube AppNext up, you'll need to get rid of the stock YouTube app so that you can install the modified version. To do that, I'd suggest using Titanium Backup.
So head to the Backup/Restore menu in Titanium Backup, then select the YouTube app from the list. If you want to be on the safe side, you can tap the "Backup!" button on the popup—but to remove the app, just tap the red "Uninstall!" button. From there, confirm your choice on the popup, then you'll be ready to install the ad-free version of YouTube.
Step 4Create a New 'YouTube' Folder on Your System PartitionNext up, open your favorite file browser and head to the /system/app folder on the root partition of your device. From here, create a new folder, and name it "YouTube" (note the capitalization).
From here, long-press the folder you just created, then choose "Permissions" from the menu. Next, set the "Owner" category to Read, Write, and Execute, then set all other categories to just Read and Execute. Or, if your file browser is capable of entering octal permission numbers, just set the value to 0755.