yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Sam Nakamura:
I deleted via PS before following the instructions and I have no issues.. That should not make a difference
[Android Apps and Games] Botzer:
I don't understand why it didn't work for me after flashing the zip but I reinstalled youtube from the play store then just opened "system(root)/data/app/com.google.android.youtube-1" and deleted the original youtube apk (installed by the google play) called "base.apk". So i copied the modified apk in that folder and renamed it "base.apk" and it works, youtube thinks thats the true app but open the patched app.

Weird that the apk hasn't be installed correctly by flashing... Yet it was in the download folder.
[Android Apps and Games] Ibuprophen:
EDIT:

Just wanted to provide how i, personally, got it to work. I use the ES File Explorer.

Caveat: The following applies only If using the manual method by creating the folder within the /system location and placing the apk file. Do not use if using the installer on the first post of this thread.

First, go to the "/System" location and add a folder and name it "YouTube".

Second, apply the "755" to the folder permissions.

Third, enter the "/System/YouTube" location and copy the apk file in it.

Fourth, apply/confirm the "655" to the apk permissions.

Fifth, rename the apk file to "youtube.apk".

Sixth, confirm everything above (ie.. Names, locations and Permissions).

Lastly, reboot your device and confirm that the YouTube app is in your app drawer and launch it.

This is what i had done on my d2vzw device with CM13.

There is an additional process option that should not be needed but, I can provide it if asked/needed.

This is an FYI that worked for me and wanted to share it in hopes that it may help others.

Best of Luck!
[Android Apps and Games] kos25k:
i use solid explorer and i don't have to do anything.both folder permissions (when i create it again after update) and app permissions are correct by default.try this dude and see.
[Android Apps and Games] cyan pac:
For everyone wanting the background feature go download the other app on XDA labs called y music , open it and get it set up, now open YouTube and hit the share button and share it with the app( there's two options but just listen to it instead of downloading it). It plays with screen off and in the background.
[Android Apps and Games] ΦDroid:
Same. Even if I just copy the file in TWRP it works, I don't need to set permissions no matter how I do it.
[Android Apps and Games] woundman:
Not sure what I am doing incorrectly. I've set all the proper permissions and even flashing the zip doesn't work. Use to work in the past, am I doing something wrong?
[Android Apps and Games] nigelhealy:
644 not 655

---------- Post added at 10:51 PM ---------- Previous post was at 10:48 PM ----------

Most common reason is you have updates from play store. Have YouTube installed in PS, then untick auto update for YT in PS. Then uninstall in PS.

Then do the instruction.
[Android Apps and Games] woundman:
Oops, you're right. I forgot to remove the updates. My bad! Thank you.
[Android Apps and Games] shawndak:
Hey just wanted to say thanks! That installer is exactly what I needed. Makes updating the app extremely simple. Thank you!!!
[Android Apps and Games] Ibuprophen:
That was a typo...

My apologies!
[Android Apps and Games] AcmE85:
Installed this mod for the first time today.

OP3 + x64 v8a 480 DPI

Works fine most of the time, but every now and then I still get the occasional add without a countdown.

At some point it lets me skip it. Do others see this too?

Better than the stock app nonetheless.

Thank you very much for this!
[Android Apps and Games] noooooo:
Yep, this type of add started popping out yesterday for me... I think they are also on standard version of YouTube and I am not sure if they can be disabled
[Android Apps and Games] Botzer:
Reinstall youtube from the play store then just opened "system(root)/data/app/com.google.android.youtube-1" and delet the original youtube apk (installed by the google play) called "base.apk". Then copy the modified apk in that folder and renamed it "base.apk" and it worked for me, youtube thinks thats the true app but open the patched app.

I did it after noticing that the zip isn't correctly working (nougat).
[Android Apps and Games] cyan pac:
I dunno about you guys but I haven't run into any problems or ads. OnePlus 3 stock nougat
[Android Apps and Games] TxTroixDanh:
thank you Im still new to android.. yes i am rooted and man i haven't keep up with android for long time now.. Barely update or anything until recently stupid youtube giving me some hard time.. Pop Up ads all over place.. :( I come close to the point NOT watching any more youtube until i find the way to get those annoying ads.. Before those adsblocker work until recently....

Reading and reading still not clear about things... They said "Uninstall the Youtube FIRST" which i did and follow every step of the way.. download patch youtube, installer and do the setting. when open the patched apps it's asked me to install the youtube. Im confuse DO I or DO i NOT uninstall the main youtube. and if install in first place do i reinstall from playstore at somepoint before the patch??? thanks I wish there's some one Type out every Step what to do like you thanks hope hear answer from you soon!!
[Android Apps and Games] kaynpayn:
Installing this is dead simple. Just uninstall everything YouTube from you phone. Then download the modified apk and the installer zip. Leave them in your downloads folder. Reboot to recovery and flash the zip. Done, when you reboot again you'll have YouTube. Now go to the PlayStore and untick auto updates for YouTube and never update it through the PS.

What's not working for me however is the blocking of ads. They always show up and it's not because yt is being auto updated or anything. I've installed it from every way, it always gets properly installed, just doesn't block ads anymore. But it used to for a long time until a while back. I was still using v11 of modified yt. When ads started showing I figured an updated apk was needed but no luck.
[Android Apps and Games] JRJ442:
Yeah I'm getting a few ads creeping in now too. I'm definitely installing it correctly. This is the first time I've had them pop up. Using nodpi on Nexus 6p
[Android Apps and Games] TxTroixDanh:
i did exactly what you told me but for somereason it's not installing, have the installer and the apk patch same place , uninstall everything else and did the process. i'm stock room s5 tmobile. i been start over and over for past 5 hours.. :mad:
[Android Apps and Games] powerserge1:
sorry wrong thread
[Android Apps and Games] Rezus95:
Still nothing

Still doesn`t work. I continue seeing annoying ads from f*ng YouTube.

I have tried older tutorial (with creating folder and permissions) - Nothing

I tried to use new method - by flashing zip, but the same sh*t happens

Nexus 7 on CM 14.1 ( Android 7.1.1 ) .
[Android Apps and Games] nigelhealy:
A bit less venting. This is a community.

Give me a YT vid you see adds and I'll test. I'm N7 2013 7.1.1

PM me might be best. If I see ad then the patch isn't blocking, if I don't see then its local to you.
[Android Apps and Games] EVOuser94:
I've noticed occasionally I'll have to go back into file Explorer and set permissions manually on the app again when I start seeing ads. After I've made the changes, I reboot and all is well again.
[Android Apps and Games] romano19:
i can't install apk. must move to system. But why do I still see update notifications from PlayStore? although it's the same version number.
[Android Apps and Games] nigelhealy:
That would appear to be two user errors. /system is read-only normally, it has to be mounted read-write briefly to copy files and set permissions so if permission wrong it would have to be user error. I'm also wondering if the prior apk is not there.

Personally I boot into recovery and mount system read-write and type the commands myself to be sure its all working. Seems the only reliable way.

---------- Post added at 08:54 AM ---------- Previous post was at 08:53 AM ----------

Did you use the nodpi? As per the OP.
[Android Apps and Games] EVOuser94:
No, not user error, prior to the installer.zip you had to do it manually without having to write in any sort of command other than changing permissions, and I use ES File Explorer which allows you to mount system as r/w and to set permissions without using chmod commands. Upon reboot it reset permissions , not every reboot, just randomly. Just because I didn't do it the same way as you, doesn't mean it is user error or wrong. It works and functions 100% , I was simply suggesting that user check their permissions based on my own use and troubleshooting.
[Android Apps and Games] mrk2815:
what i do is clear data with the you tube app and reboot and everything works .
[Android Apps and Games] romano19:
Yes, i use the nodpi
[Android Apps and Games] nigelhealy:
Well read the OP.

"nodpi works for every device.

However, if you're annoyed to see Play Store's update pending, use the APK dedicated for your device's DPI."

So you're being annoyed by Play Store offering update....
[Android Apps and Games] AndreAkaNick:
This is not working anymore for me.

Tried every possible thing found in this topic.

Uninstalled previous apk

Reboot

Cleared everything with SD Maid (It did found a few trash files related to YouTube)

Made the folder, copy, set permissions, reboot.

Ads everywhere.

Checked permissions and everything was fine.

Ok, did the same first 3 steps to clean everything + full Davilk/Cache wipe(Just to be sure) and this time installed with the .zip file.

And for my surprise, I'm still getting ads.
[Android Apps and Games] nigelhealy:
So I got a PM to a link of a YT video which is showing ads, and I see it no-ads.

I think some of you, like on the Nexus 7 2013 I am using, may be suffering from a problem I had earlier in using this patched apk which is the

/system is actually full

. That device has small /system. That means when you copy into /system/app/YouTube/youtube.apk it fails due to /system no free space. You might not even notice it isn't working. I also looked at the script and I'm not seeing any /system full type error checks, and I'm seeing steps like extraction of lib which would increase /system footprint.

If you're in this problem you can solve a few ways. I tried many and they had a little awkwardness at some point, so what I did was go right back to scratch and install a ROM with a minimalist GAPPS. This reduced what gets installed in /system, leading to more free space. You install the apps you want but they because not installed with the ROM stage, use up /data not /system. Then when you uninstall YT it uninstalls from /data and so the /system version you manually copy in is actually there.

I'm suspecting some of the forum members have this problem.

Alternatives are awkward, one is to use a link to another partition like a link from /system into /su or /data but I found them often easily broken methods.
[Android Apps and Games] cyan pac:
So I randomly got a 2 minute ad today that I couldn't skip. What kind malarkey is that! Everything was ad free until today so I guess they figured out a way to bypass your adblocking
[Android Apps and Games] Ibuprophen:
I, personally, like this app and (though not perfect) I've really haven't been having any advertising issues with it.

If any issues are related to, and ONLY If the Dev(s) provides the okay, i can help to modify their app for the "Background Playback" as well as help with blocking some (if not all) the advertising activity.

Just an offer to help out and ONLY upon approval by the Dev(s).

Thanks!
[Android Apps and Games] EVOuser94:
This sounds like a good idea to jump on board with =)
[Android Apps and Games] Mkkt Bkkt:
Sorry for asking this but can you give me the name of the app were you using in screenshot. I liked the themes of it ?
[Android Apps and Games] cc101:
That looks like FX file explorer. ?
[Android Apps and Games] AndreAkaNick:
Yup, the first one is FX and the second Link2SD
[Android Apps and Games] Ibuprophen:
I was kinda shot down when I provided the flash files but, I really need the OK from the Dev(s) for me to provide anything further.

Sorry, i just wanted to cover all bases...
[Android Apps and Games] radz_:
Background playback is totally out of devs permission.. he makes Ad free YT. i suggest creating separate thread for YT Background Playback MOD, but i dont think its allowed in XDA as this feature is paid in YT Red.
[Android Apps and Games] EVOuser94:
Yeah I understand man, you could obviously do the work on your own, but why would you want to step on anyone's toes to do essentially the same things. This is what xda is for is collaboration not separation. As much as I'd love to see your development on this, if it's not approved by the devs, then I understand your position! Some of us here actually do appreciate the work that gets done =)

---------- Post added at 01:23 AM ---------- Previous post was at 01:20 AM ----------

Which makes sense as xda is anti-piracy. Can't even host Pandora skip/Adless mods here :silly:
[Android Apps and Games] Mkkt Bkkt:
Can you share with me the name of the theme you were using in FX file manager ? ? , really sorry to bothering you.

Edit : nevermind , its the default theme

Thank you for answering me ? , FX file explorer look awesome. ?
[Android Apps and Games] sirganon:
I manually installed 11.49.55 and still haven't seen a single ad since. No real reason to update if it's still working. My playstore is showing youtube has an update though and I installed the 480dpi version. Anyone know why that might be happening? I know I definitely did not install the nodpi version.
[Android Apps and Games] nigelhealy:
Because there is a new version, which in general is the case and if you're happy on an old version will be there for a long time. You just have to ignore.
[Android Apps and Games] draiyan:
If there's an update should I flash again the installer? Or it would automatically update in the playstore?
[Android Apps and Games] Sam Nakamura:
If you update via Playstore add free is gone.. Ignore it till updated here in this thread
[Android Apps and Games] draiyan:
Thank you! I'll keep that in mind ?
[Android Apps and Games] lildimsum7:
Damn, I'm not the only one
[Android Apps and Games] Impius:
Here is what I do and never have any issues:

1. Install YouTube from Play Store.

2. Rename the ad free version to "base.apk."

3. Copy base.apk to "/data/app/com.google.android.youtube" overwriting the base.apk that's already there. (I use FX for that part. Also, I never mess with the permissions.)

4. Reboot.

5. Turn off auto updates in Play but leave the update notification on.

6. Any time there's an update notification I clear it and use Titanium to detach YouTube from the market and then open Play and hit Update All.

7. When the dev releases an update, repeat steps 2, 3 and 4.

* Credit to others on this thread for several ideas that I threw together.

* Trying to manually create a folder in System/App or anywhere else has never worked for me.

* I never have ads and on the last version background playback worked fine. I haven't seen the option pop up on the newest one but I haven't tried it either.

I hope this helps someone. :)
[Android Apps and Games] Sam Nakamura:
Downloading the latest modified version for my architecture and flashing the installer zip works everytime for me, a 100%, and I did lots of clean flashes of my rom the last days..

I'm on 7.1.1 though and custom rom, it's really a miracle with all those reports of ads coming through lately
[Android Apps and Games] mbc663:
The latest update for the substratum theme Swift Dark has YouTube themed dark perfectly.
[Android Apps and Games] andre0005:
Which settings did you choose in substratum? Doesn't work for me on swift black.

Edit: Nvm. Thought dark and black were exactly the same apart from the color.
[Android Apps and Games] ΦDroid:
Now I too am seeing ads.

The app has not been updated in the Play Store. I tried clearing it's data but that did not help.

I think no matter how we install it, ads are somehow still getting through in this version. There is a significant delay between the install and when ads start to show. Maybe Google is getting tricky?
[Android Apps and Games] kyzn:
The ads could be localized. I haven't seen one ad yet and I watch a couple of videos a day.
[Android Apps and Games] ΦDroid:
They are extra nasty as well, no skip button on long ads.
[Android Apps and Games] HamsterHam:
Same issue, non skipable ads creeping through.
[Android Apps and Games] kiva1:
Whither someone know for splits screen bug?

If you listening music video and press button to open split screen and open second app and resized that app then press home button to enter home screen.. Youtube is playing in the background
[Android Apps and Games] milan187:
Me too, like every video now....

Just tried the last 3 versions of this patched APK. They all do it unfortunately.
[Android Apps and Games] cc101:
You guys cleared data and cache?
[Android Apps and Games] lildimsum7:
I think this solved the issue.
[Android Apps and Games] AcmE85:
The ads are totally random and also depend on the users location. Clearing app data will not solve this unfortunately.

Sometimes no ads for hours, then a couple during a small period.
[Android Apps and Games] sirganon:
Using ad-free youtube 11.49.55. First time I've seen this. It's not giving me an option to not update. Seems like I update or I don't use youtube. [emoji53]
[Android Apps and Games] ΦDroid:
Are you using 12.01.55 from this thread?
[Android Apps and Games] sirganon:
No, 11.49.55 from a week ago or so
[Android Apps and Games] Sam Nakamura:
That's nasty :laugh: never seen before..
[Android Apps and Games] mikeprius:
I've tried every different method described here and have not been able to get it to work. The old method where a folder was created did work. Nonetheless, thanks for taking the time to develop the method, unfortunately I have not been able to get it to work since the most recent update.

Nexus 5x

Elemental X kernel

Custom ROM 7.1.1., root, recovery, etc, etc.
[Android Apps and Games] Sakti51:
have you tried this ? [url]https://xdaforums.com/showpost.php?p=70727942&postcount=881[/URL]

it worked for me so far.

Edit: still doesnt work. just got those not skipable ad, very annoying.
[Android Apps and Games] milan187:
Just tried using the zip to flash. Getting the unskipable ads. Hopefully some solution soon.
[Android Apps and Games] Sam Nakamura:
It's getting weird, I had not a single add so far on daily use..

Followed the instructions with installer, custom rom android 7.1.1 (aicp & RR), no issues, never

Would be really interesting to get behind what makes the difference :confused:
[Android Apps and Games] timaiv:
Really nice. I intersting in this.
[Android Apps and Games] Mar-cel:
"/* Steps */

1. Download the APK

2. Download the installer

3. Flash the installer in the recovery"

After flashing the Installer WhatsApp should i so with the APK ?
[Android Apps and Games] naifaharsy:
Thx bro
[Android Apps and Games] lildimsum7:
I cleared data and cache in settings yesterday, and I haven't gotten any ads since.
[Android Apps and Games] kyzn:
Probably location based ads. And cache and data not cleared form previous YouTube installation.
[Android Apps and Games] Sam Nakamura:
Nothing, delete it, as you prefer but if you leave it there the installer can grab it again in case you reflash or flash a other rom, etc

---------- Post added at 06:30 PM ---------- Previous post was at 06:29 PM ----------

That's the only explanation I came across too...
[Android Apps and Games] milan187:
I doubt it. I've cleared cache and data. Even tried the zip installer which clears data but no luck.
[Android Apps and Games] mikeprius:
Yeah unfortunately I tried this method and it was fairly easy. I had the actual YT app, then pasted in the apk and when I rebooted the YT app disappeared.

Then when I re-downloaded the app it had ads.:confused:
[Android Apps and Games] JohnCorleone:
Is the link in the OP a newer update than the previous 2 updates because I am now receiving a message that I need to update my YouTube??

Edit...link in OP worked perfectly. I just overwrote the existing apk in the system/app folder and set the 644 permissions and rebooted. Many thanks!
[Android Apps and Games] Sam Nakamura:
What? Can't get the context of your answer..
[Android Apps and Games] milan187:
What's hard to understand.

I've tried wiping YouTube data and cache.

Also tried flashing the app in recovery with the zip method. Flashed fine but I still see the ads.

I've used this for months and didn't have issues. This is new and I doubt it's a user error I know my way around Android.
[Android Apps and Games] Sam Nakamura:
It's hard to understand cause you quoted my answer to totally different users which had no context to your issue.. :)

Yeah, I read more and more reports about this but I can't verify that for myself, everything as expected on my side.. No clue what's wrong for those people
[Android Apps and Games] milan187:
Oh my bad.
[Android Apps and Games] baltobalto:
Can anyone make a black themed version? That would be great!!! Thank you.
[Android Apps and Games] TheUndertaker21:
Can we do the same for Android TV? The YouTube app is so bad. Ads everywhere. Sadly, no one had tried anything
[Android Apps and Games] OhayouBaka:
Swift Black/Dark substratum theme just got updated to support theming non-theme ready YouTube app dark/black. Try that out.
[Android Apps and Games] contentryder:
Worked the first time then the app auto update..Try to redo but now it shows ads. ??

Tab S2 is the device.
[Android Apps and Games] kyzn:
That's why you turn off auto update.
[Android Apps and Games] xk0niR:
It looks pretty good but it's not the same as TeamBlackout Version.

Splash Screen still white (think its substratum limitation) and red color tab (guess its intended).
[Android Apps and Games] pleasetouchmenot:
Naah, swift dark substratum user here. Here's my splash screen. And yes, it's intended. Dev wants to maintain the default actions background color.
[Android Apps and Games] rony raj:
Use a different signature sign code in dark version

to fix auto update issue not need to disable it

even playstore not update it itself

i done it successfully
[Android Apps and Games] baltobalto:
Unfortunately substratum doesn't support tw rom.
[Android Apps and Games] kos25k:
post #29 https://xdaforums.com/xposed/modules/app-personalize-theme-apps-want-t3535708/page3 a little patience!
[Android Apps and Games] elkadeho:
For me flashing YT without play store auto-update works so far (for just an hour or so). Hope it keeps working, if not I'll update.

(The moment it doesn't work you get a ugly feeling for what people without AdBlock and root have to watch... And it's a bit terrifying, just like when you see people using Facebook without AdBlock and you ask yourself: how can you live in such a spammed world?)
[Android Apps and Games] xk0niR:
Thank you! For me no splash screen changes even though my rom fully supports it. It may could be because it's and old masquerade version(14)? Anyway thanks and sorry for going OZ I will try to find an answer somewhere else.
[Android Apps and Games] baltobalto:
Does this require xposed?
[Android Apps and Games] kos25k:
yes dude.
[Android Apps and Games] seiferfury:
Hmm, that's weird. This worked fine the first few days, no ads at all, but now every time I open a link an unskippable ad plays. An I doomed by Google or is there something I can do to fix this? Tried reinstalling and deleting cache/data.
[Android Apps and Games] pleasetouchmenot:
It's your OMS support that's why. Mine's always on latest commits. Ask you ROM dev for that. Swift dark is one of the best substratum theme out there. Perfect with this precious ad-free youtube ?
[Android Apps and Games] baltobalto:
The goal is to have an adfree black version without the need of xposed. With xposed we can already do it .
[Android Apps and Games] OhayouBaka:
The splash screen is black for me, are you running it on a non-OMS ROM (substratum legacy)? I'm using it on an OMS supported ROM.