yashsingh1/xdaforums huggingface dataset:
[OnePlus 3T Themes, Apps, and Mods] :
Does ZaneZam has any thread in xda for his work ? I saw a recent youtube version just came out.
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
ZaneZam has been using Master_T's thread. Here's a Magisk module for iYTBP v12.23.57 if you were looking for it:

https://drive.google.com/open?id=0B8lY7pYQ4GSzbVdNMDVfSTY5SWc
[OnePlus 3T Themes, Apps, and Mods] AlexInvar:
Just a couple of quick questions: I see a lot of guys posting similar YT-apps:

Can someone explain which apps do what and how they are build?

I've seen -

@Anova's Origin 's version.

@m0yP iYTBPforMagisk-ARM-12.23.60.zip [https://xdaforums.com/apps/magisk/module-iytbp-magisk-t3619705 ?]

[MENTION=358748]smohanv[/MENTION]'s OG Youtube AdAway for magisk [https://xdaforums.com/apps/magisk/module-og-youtube-adaway-magisk-t3606966]
[OnePlus 3T Themes, Apps, and Mods] huilun02:
Hi [MENTION=8043063]Anova's Origin[/MENTION] good work I'm interested in trying this out as I'm sick of stock Youtube ads and would like background playback. But first a few questions;

Can I just install that script as-is without modification in Magisk and it will remove market links for the custom Youtube app? I'm on stock OOS 4.1.6 with Magisk v13, no Substratum.

Is that specific to your remade Magisk module?

Also I see that ZaneZam has released a new version of the youtube apk. Can I just replace the older apk in the module zip and flash it?

Thanks!
[OnePlus 3T Themes, Apps, and Mods] AlbinoAsian:
Love this! Thanks.

Also happy to have top navigation bar back too.
[OnePlus 3T Themes, Apps, and Mods] huilun02:
Works great! Now I can have Youtube music in the background and no more ads :)

Module version v12.23.57 from link provided in OP

OnePlus 3T on OOS 4.1.6 with Magisk v13 and ElementalX kernal

Magisk hide enabled, safetynet pass and everything working nicely together

How I installed in case anyone wants to know;

1. Force stop Youtube app, disable and re-enabled to get rid of updates

2. Manual shut down and boot into TWRP to flash the module. Wipe dalvik/cache and reboot.

3. The Youtube app you find now will be the one you flashed. Module will show up as installed in Magisk.

I guess there is no point manually removing the stock Youtube apk and folder. If the modded apk somehow stops working just uninstall the module from Magisk, reboot and you are back to vanilla Youtube
[OnePlus 3T Themes, Apps, and Mods] OcazPrime:
Yea this doesnt work anymore. YouTube changed again. Ads are now in every single video.
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
The script is not specific to the Magisk module. It detaches any apps that matches a list of package names that it contains. You will have to follow the instructions detailed within the detacher mod to specify that you want only YouTube detached though.

I generally post newer versions on Master_T's original thread. I will keep the third post in that thread updated with ZaneZam's updated iYTBP APKs. If you do want to update the module yourself, then yes, you can simply replace the apk within the zip.
[OnePlus 3T Themes, Apps, and Mods] huilun02:
Thanks for the confirmation. For now I've just disabled auto updates in the appstore. Zanezam's new version is not much different from your upload, but now know I can make updated modules for myself in case you stop making new zips for some reason. :good:
[OnePlus 3T Themes, Apps, and Mods] QUBiCA:
Could anyone supply me with the APK? I'm using SuperSU instead of Magisk.
[OnePlus 3T Themes, Apps, and Mods] rjwc1:
https://xdaforums.com/android/apps-games/app-iytbp-injected-youtube-background-t3560900
[OnePlus 3T Themes, Apps, and Mods] QUBiCA:
Thanks... I'm stupid.

Few days ago though I actually switched to Magisk because I had to do a reinstall anyways, and why not. But now the link in the first post seems to be dead. At least I get a 404.
[OnePlus 3T Themes, Apps, and Mods] ErnyTech:
thanks for this!
[OnePlus 3T Themes, Apps, and Mods] Sam Nakamura:
See here

https://xdaforums.com/android/apps-games/app-iytbp-injected-youtube-background-t3560900/page1

and here

https://www.androidfilehost.com/?w=files&flid=187615

Edit: been answered already :)
[OnePlus 3T Themes, Apps, and Mods] masri1987:
Can someone reupload the version in op
[OnePlus 3T Themes, Apps, and Mods] rjwc1:
delete
[OnePlus 3T Themes, Apps, and Mods] Tsukiyohikage:
Link is not working.
[OnePlus 3T Themes, Apps, and Mods] Ascoolas:
Cool

Amazing
[OnePlus 3T Themes, Apps, and Mods] vtec303:
link says 12.27.57 but it downloads 12.27.53?
[OnePlus 3T Themes, Apps, and Mods] fisk4rn:
I have this issue as well.
[OnePlus 3T Themes, Apps, and Mods] enzzo28:
Am I the only one who has been getting adds since 2 days ago?
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
Try the new version here:

https://xdaforums.com/showpost.php?p=72775824&postcount=3
[OnePlus 3T Themes, Apps, and Mods] enzzo28:
Working perfectly ??

Thank you ??
[OnePlus 3T Themes, Apps, and Mods] fisk4rn:
I can't get it to work even with the new version posted above.

I followed all the steps by disabling and re-enabling and the flashing through recovery but it still displays ads and doesn't work with background.

I am running 7.0 with Magisk 13.3. The module shows up in Magisk as well.
[OnePlus 3T Themes, Apps, and Mods] enzzo28:
Do you use Substratum for YouTube? If you do, did you remove the overlay?
[OnePlus 3T Themes, Apps, and Mods] fisk4rn:
I do not use any themes. I tried this on a clean installation of YouTube.
[OnePlus 3T Themes, Apps, and Mods] enzzo28:
Did you make sure you flashed the right module for your processor architecture?
[OnePlus 3T Themes, Apps, and Mods] fisk4rn:
Yes I got a S6 Edge+ with Exynos processor so I used arm64 variation.
[OnePlus 3T Themes, Apps, and Mods] enzzo28:
I didn't know what architecture the S6 exynos has, so I did a quick search and found this "The Exynos 7420 also implements ARM’s AArch64 64-bit execution state, while the Exynos 5433 will likely only ever use AArch32 (32-bit mode), even though it uses ARMv8-A CPU components."

It means it could be 64 or 32 huh?

If I were you, I would try the ARM maybe it works, but I'm just saying, I don't have a real answer
[OnePlus 3T Themes, Apps, and Mods] fisk4rn:
I have the 64-bit version so it should work and I have installed mods/roms and such in the past for 64-bit and it has always worked. I could try the arm version but I don't think it would work.

It is just so odd that it doesn't work now since I had it working in the past and I tried to install it multiple times now through both Magisk manager and recovery.
[OnePlus 3T Themes, Apps, and Mods] enzzo28:
I had to face a similar issue but with Substratum. It happened after updating Magisk. I have to dirty flash the room more than 3 times to make it works again
[OnePlus 3T Themes, Apps, and Mods] vl111:
I still am having ads
[OnePlus 3T Themes, Apps, and Mods] █████:
Error message. Package is damaged. I've tried it with gapps from last month. Updated the gapps to newest version and same problem. I tried magisk and the apk. I followed the instructions.:(
[OnePlus 3T Themes, Apps, and Mods] seking:
new version (12.34.55) link

https://drive.google.com/drive/folders/0B8lY7pYQ4GSzdGFhUWs4b2VBMXM
[OnePlus 3T Themes, Apps, and Mods] J's:
big Thanks! it works flawlessly on my 3T running OB15.
[OnePlus 3T Themes, Apps, and Mods] phoberus:
Hey [MENTION=8043063]Anova's Origin[/MENTION]

I can't find the newest youtube version on google drive

Isn't this apk released yet with background playback or did I search at the wrong place? Usually you are very fast :)
[OnePlus 3T Themes, Apps, and Mods] fricy81:
There's a magisk module now with the same functionality. Try installing that.
[OnePlus 3T Themes, Apps, and Mods] phoberus:
Yes, but only with a old youtube version (look at the link in my post)
[OnePlus 3T Themes, Apps, and Mods] Akash1739:
I tried on my 5t and it's working .
[OnePlus 3T Themes, Apps, and Mods] priash7:
The link is not working!
[OnePlus 3T Themes, Apps, and Mods] hassanulhaq:
link expired kindly update the link!!!
[OnePlus 3T Themes, Apps, and Mods] Pankaj Rai:
Maybe its time to unlock bootloader and root the device .?

Dope work btw.
[OnePlus 3T Themes, Apps, and Mods] EuEra:
Amazing worked perfect first time on OOS 4.1.0.

I deleted updates, deleted youtube folder from system/apps, opened magisk, flashed youtube mod and rebooted. Couldn't be simpler thankyou so much
[OnePlus 3T Themes, Apps, and Mods] omair2005:
Can anyone post up instructions on how they did it? I'm on Freedom 7.0 and can't get it to work?

Heres what I've done so far:

1. uninstall youtube via titanium

2. install magisk and reboot --> When I click youtube it opens for a second then closes

3. download the apk, create a 'Youtube' folder, put the arm64 apk in there, correct permissions and paste it in system/app. then install magisk?
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
If you've already installed Magisk (and the Magisk Manager app from the play store), then you won't have to manually move the APK. You can use the following steps:

1) Roll the YouTube app back to factory conditions or outright delete it

2) Download the zip from the first post (should be called Modified YouTube - Magisk.zip)

3) Either use Magisk Manager (while booted) or TWRP to flash the zip, it will take care of moving everything into the right place

4) Reboot

Note that if you manually delete the stock YouTube app, the most important part is to delete /data/app/com.google.android.youtube-1, which is where android stores the updates for YouTube. If you only delete /system/app/youtube, the updates will still be there when you flash the modified app and nothing will happen.

If you install it with Magisk, the modified app will survive ROM updates as the actual app is kept in /data and is merely superimposed into the /system partition on boot.
[OnePlus 3T Themes, Apps, and Mods] EuEra:
Seriously? I answered your question 1 post before yours.
[OnePlus 3T Themes, Apps, and Mods] omair2005:
Yeah it didn't work. I'm gonna update to freedom os 7.1
[OnePlus 3T Themes, Apps, and Mods] MysticGolem:
Greetings,

I have followed your instructions and I get background play but the ads are still appearing.

My current setup is the following.

OnePlus 3T OOS 4.1.0 , TWRP 3.1.0-1, Magisk v11.1 and AdAway installed to block app ads.

I did the following to prepare:

1. Uninstalled YouTube updated.

2. Disabled the app and enabled the app.

3. Downloaded your version of the YouTube.

4. Flashed the zip file using TWRP.

5. Rebooted phone and played a YouTube video and the ads still appeared for multiple videos.

Kindly advise if there's anything else I should do because I would really like there to be no ads.

Thanks in advance.
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
It may have something to do with your location. If background playback is working, then it is likely due to something on Google's side.
[OnePlus 3T Themes, Apps, and Mods] Schrotty35:
I also have ads, background play is working fine.
[OnePlus 3T Themes, Apps, and Mods] jakir01:
1. Unistall the updates from youtube app.

2. Disable the auto update for youtube.

3. Flash the magisk module.

Everything works fine add block and background play. Great job ?
[OnePlus 3T Themes, Apps, and Mods] MysticGolem:
Thanks for the reply, unfortunately I don't know why the ad blocking isn't working.

I live in Canada.

Do you mind posting more instruction on how to delete YouTube from the system please?

I find those instructions to be a bit confusing, may we simplify it please?

I am willing to take another attempt at it.

Thanks in advance!
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
Installation Instructions (for the Magisk Module only):

1) Ensure that you have the Magisk Manager app and that it states that the Magisk framework is properly installed

2) Go into the Play Store and prevent it from automatically updating YouTube

3) Go into setting -> Apps -> YouTube, hit the "Disable" button and allow it to return the app to factory conditions. If you had installed an update to the YouTube app earlier, it should be deleted. YouTube should remain enabled afterwards, enable it manually if otherwise. Wipe data and cache for the app just for good measure.

4) Reboot into TWRP and flash the modified YouTube Magisk zip. Wipe cache and Dalvik before you reboot just for good measure as well.

5) Reboot, you should be good from there

Alternative Method (overkill, but will ensure that the stock YouTube app does not have any conflicting updates):

1) Clean flash your current ROM, flash Magisk immediately prior to booting

2) Go through setup and install Magisk Manager

3) Reboot to TWRP, flash the YouTube Magisk module

4) Reboot

If you want to try to install just the modded APK rather than a Magisk module, you can find both the APK and the instruction on Master_T's original thread. Link's in the first post.
[OnePlus 3T Themes, Apps, and Mods] MysticGolem:
I followed your first set of instructions, from 1 to 5 did the wipes as you suggested and still the same issue, ads are still shown.

I am using your zip file, with OOS 4.1.0 rooted with Magisk.

This is kinda frustrating, I am not sure why it isn't working as expected, however the background playing is working.
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
Strange... I'm in Canada too using the same zip and everything is working as intended.

Master_T made the adblocked version using arter97's patched YouTube APK as a template. Try deleting the Magisk module and installing arter97's patched app. If adblock doesn't work there either, then it's likely a server change on Google's side.

A while back, ad blocked stopped working while I was using his patched app on a tablet. YouTube kept showing me 30 sec unskippable ads on every video I watched. Not sure why, but the apps just suddenly stopped one day for no apparent reason.
[OnePlus 3T Themes, Apps, and Mods] MysticGolem:
I appreciate your efforts to helping me get this to work but someone else suggest to use FireFox instead.

Here's what I did:

1. Open the Play Store and downloaded FireFox.

2. Opened FireFox and went to the YouTube website.

3. Logged into my YouTube account.

4. Played a video and opened another app which caused FireFox to go into the background.

5. The video was playing in the background with another app in the foreground.

6. I tested if multiwindow works and it did.

7. I tested if I turn off the screen of the phone and YouTube was still playing in the background from FireFox.

The only thing I haven't tested is if the video is playing in the background and consuming data versus just streaming the audio portion of the video when FireFox is in the background. If FireFox only streams the audio, then this would be an excellent solutions for many uses, especially those without root and limited amounts of mobile data.
[OnePlus 3T Themes, Apps, and Mods] adoubleu:
So I installed this yesterday and it was working great but today I'm getting ads on YouTube. Any ideas why? I followed the steps correctly.
[OnePlus 3T Themes, Apps, and Mods] hinmatth:
Did you disable auto-update in the play store?
[OnePlus 3T Themes, Apps, and Mods] adoubleu:
Yes I disabled auto-update.
[OnePlus 3T Themes, Apps, and Mods] Ashtagger:
After flashing the magisk module, the YouTube app works fine but since the reboot I have this weird pirate icon in the status bar and setting tiles. Any help? I have attached the screenshot.

Single tapping it doesn't do anything and on long press it force closes systrmui :/
[OnePlus 3T Themes, Apps, and Mods] phoberus:
Do you use Luckypatcher or cracked/patched apps?
[OnePlus 3T Themes, Apps, and Mods] Ashtagger:
I did install lucky patcher just before installing this module but I didn't patch any app with it.

[UPDATE] : You were right, I uninstalled lucky patcher and it was gone, thanks.
[OnePlus 3T Themes, Apps, and Mods] ManikandanGuru:
Hey [MENTION=8043063]Annova's Origin[/MENTION]

Do you plan on updating this frequently?
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
The Magisk module uses Master_T's modded app. I'll update the module as he updates newer versions.
[OnePlus 3T Themes, Apps, and Mods] ManikandanGuru:
Thanks.
[OnePlus 3T Themes, Apps, and Mods] Nitrogen:
Thank you!

Works fine. Now i'm happy with oos411.
[OnePlus 3T Themes, Apps, and Mods] purplepenguin:
Omg it all works! Thank you for making this thread. I actually found this after setting up Arter's stuff and it still worked. Confirmed broke the substratum theme for YouTube I had running by installing this but well worth it.

So what I did was:

Download his apk and installer (nodpi)

Put apk in SD downloads folder

Flash his installer

(Confirm working and apply theme then discover this thread and regret my previous actions)

Put this threads zip into magisk manager folder, then flash

(App fail to start several times and theme disables)

... Profit!!!!!

It even shows visualizer and snapshot of the video on lock screen. Very cool.
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
Not sure what substratum theme you are using, but Swift Black is able to theme the app just fine. When flashing the modded app, make sure to disable themes on the stock app first. Same applies if you decide to revert back to stock app.
[OnePlus 3T Themes, Apps, and Mods] egren58:
Is there such mod for YouTube music?.
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
Updated to YouTube v12.12.53, courtesy of [MENTION=5331708]laura almeida[/MENTION]

This Magisk module can be flashed over the old one.

If you are using substratum to theme the app (especially with Swift Dark/Black), uninstall the theme first before updating.

https://drive.google.com/file/d/0B8lY7pYQ4GSzVzg0MWp4LXJkRVU/view?usp=sharing
[OnePlus 3T Themes, Apps, and Mods] sutty86:
So basically it's just a matter of flashing in magisk correctomondo?
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
Yep. I personally flashed it through TWRP, though I seen no reason why Magisk Manager wouldn't work either.
[OnePlus 3T Themes, Apps, and Mods] sutty86:
Can add it doesn't work

Just tried it
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
Try flashing it through TWRP
[OnePlus 3T Themes, Apps, and Mods] sutty86:
Tried both ways mate not working

Will edit file using root explorer
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
What went wrong? Also, what version of Magisk are you using? The Magisk template was updated since v11.6.
[OnePlus 3T Themes, Apps, and Mods] sutty86:
Nothing changed still got ads and no playback

I've had the app work on my old 6p.

I've just deleted system app YouTube to make sure that wasn't playing up.

I'm running magisk 12
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
When you flashed it:

1) Did the version number for the module in Magisk Manager update to v12.12.53?

and

2) Do you have any updates for YouTube installed? Versions of the app in /data/app/(something-something-youtube) will overwrite system apps. Try disabling and enabling YouTube in settings -> apps -> YouTube
[OnePlus 3T Themes, Apps, and Mods] sutty86:
Tried everything you have said still not working hahaha we will get there in the end

---------- Post added at 09:33 PM ---------- Previous post was at 09:24 PM ----------

Finally got it working using the app and folder trick setting permissions and using FX file manager to stick it in sys/apps
[OnePlus 3T Themes, Apps, and Mods] saberzaid:
Can someone explain step by step how to make this work . I have magisk

---------- Post added at 03:23 AM ---------- Previous post was at 03:10 AM ----------

Ok I have delete the YouTube app and flash the magisk very via magisk and its looks ok
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
Updated again to v12.13.53, courtesy of [MENTION=3279788]ZaneZam[/MENTION], [MENTION=5331708]laura almeida[/MENTION] and [MENTION=4898097]arter97[/MENTION]

Can be flashed over older versions.

https://drive.google.com/file/d/0B8lY7pYQ4GSzNnI4SzNtWEI4S00/view?usp=sharing
[OnePlus 3T Themes, Apps, and Mods] ZaneZam:
thx yah indeed meanwhile i also found out that i (apparently laura too independently *g*) completely ignored all the resource files. new version already in test (also with new changes from arter97 regarding ad id's)
[OnePlus 3T Themes, Apps, and Mods] MCFADONNA:
Works great thank you
[OnePlus 3T Themes, Apps, and Mods] Madhawk1995:
How do I get this ad-free thing working? I deleted YouTube folder from apps. I disabled YouTube before flashing 1st time. Background playback works but damn ads will not go away.

I am facing issues with root browser not detecting root maybe magisk latest 2.7 freedom os build.

Someone help me please get rid of these ads. I left marshmallow because I could have this on nougat.
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
It seems Google occasionally changes how ads get delivered. Some people seem to still receive ads while other don't; it's speculated to be location based. A while back, I did get 30 sec+ unskippable ads on every video while using the modified app, but then they just went away for no apparent reason (I think I might have dirty flashed a ROM at some point, but I'm not certain). I haven't seen an ad since.
[OnePlus 3T Themes, Apps, and Mods] jnx_r:
[MENTION=8043063]Anova's Origin[/MENTION] , I personally thank thee for this bountiful gift!
[OnePlus 3T Themes, Apps, and Mods] ManikandanGuru:
Installed the latest update but YouTube version still says 12.05.53
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
Try deleting the Magisk module, reboot, then flash the new module again.
[OnePlus 3T Themes, Apps, and Mods] esteras:
It works like a charm.

Is there any option to disable background playback? I'm only interested on ads-free function.

Thanks.
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
You can use arter97's patched adfree YouTube apps.

https://xdaforums.com/android/apps-games/app-patched-ad-free-youtube-apks-t3449312

If you still want to use the Magisk module, simply open it as a compressed file and replace the background-endabled youtube.apk inside with arter97's adfree version.
[OnePlus 3T Themes, Apps, and Mods] esteras:
Thanks! :good:
[OnePlus 3T Themes, Apps, and Mods] ManikandanGuru:
I did that, still having the same problem.
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
When you delete the module, does YouTube revert back to the stock version (I think it was ~12.04? for OOS 4.1.1)
[OnePlus 3T Themes, Apps, and Mods] ManikandanGuru:
I don't have a stock system youtube. It's completely removed because I never flashed a Gapps with youtube.
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
I'm not really sure what's going on then. Master_T is going to release another version of 12.13.53 in a day or two, I'll make a MAgisk module for that for you to try.
[OnePlus 3T Themes, Apps, and Mods] ManikandanGuru:
Ok. Thank you so much.
[OnePlus 3T Themes, Apps, and Mods] purplepenguin:
Try my post on page 5
[OnePlus 3T Themes, Apps, and Mods] ManikandanGuru:
This module is working for me bro.

But the thing is, it still says old version while the module is new version as my earlier post's screenshots suggest.

May be the upcoming update fix this issue.
[OnePlus 3T Themes, Apps, and Mods] egren58:
Is our DPI 480? OP states that dpi must match device
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
You can use nodpi, as it is universally compatible. Specific dpi APKs only prevent market links from building in the Play Store. The 480 dpi will work, though the elements within the app may appear smaller than expected.
[OnePlus 3T Themes, Apps, and Mods] ManikandanGuru:
Is the version problem fixed yet?
[OnePlus 3T Themes, Apps, and Mods] andreas0013:
Thanks a lot for this but i have a question, is this supposed to make the YouTube app slower? Because mine has been performing slowly after i applied the module
[OnePlus 3T Themes, Apps, and Mods] Anova's Origin:
Master_T has just posted it.

The app itself is largely identical to the one made by ZaneZam.

Magisk Module for iYTBP v12.13.53 (by Master_T)

https://drive.google.com/file/d/0B8lY7pYQ4GSzRHpobFBrOVFBQUk/view?usp=sharing

Make absolutely sure that you do not have any folders related to YouTube in /data/app before you flash it.