FORUMS
Remove All Ads from XDA

[APP][MOD] iYTBP - original YouTube app with background playback and removed ads

370 posts
Thanks Meter: 895
 
By Master_T, Senior Member on 21st February 2017, 08:05 PM
Post Reply Email Thread
iYTBP - injected YouTube Background Playback

What is this?
This is a modded version of the original YouTube app that:
  • enables background / screen-off playback
  • removes ads (thanks to @arter97)
This app does the same exact thing that the "YouTube Background Playback" xPosed module does... but without xPosed
Requires root (see FAQ)

F.A.Q.
Q: Did you create this?
A:
This mod is based upon the source code of the following xPosed module:
http://repo.xposed.info/module/com.p...groundplayback
All credits for the research behind this go to the authors of the module.
I merely "ported" it to the original YouTube APK for all the people that don't have xPosed

Q: Why does this exist?
A: Because not everyone has xPosed, especially now that Nougat is starting to spread to more and more devices

Q: Does this require root?
A: the original app does, but if you don't have root check out the rootless version from the "unofficial downloads"

Q: Does this mod also remove ads from YT?
A: Yes!

Q: Will you add Video Downloads / Feature X, Y, Z, etc. ?
A: Check out post #2 for the updated "vanced" version with extended features!

Q: Will you keep this up to date?
A: Probably not. I will update it when YT adds some new feature that I'm interested in, or if the old apk stops working

OFFICIAL VERSION
WARNING: THIS VERSION IS OBSOLETE!! Check the UNOFFICIAL DOWNLOADS below for the most current builds

Instructions
YOU WILL NEED ROOT FOR THIS!

First step: UNINSTALL EXISTING YOUTUBE if you have it. Recommend using one of the many system apps Uninstallers that you can find on the play store, or a file manager that can delete from /system/app

Using your phone:
Download the APK for your cpu architecture
Use a file manager to place the APK in an empty folder, so it contains only the APK
Use a file manager that can write to /system (i.e: has root support) to copy the folder that contains the APK to /system/app
Use the same file manager to set permission 755 on the folder that contains the APK and permission 644 to the APK file itself
Reboot
Enjoy!

Using ADB:
Download the correct version for your CPU architecture
Enable ADB debug on your device and connect your phone via usb
Open a terminal in the directory where you downloaded the modded iYTBP apk and issue the following commands:
Code:
adb root
adb remount
adb push iytbp-12.05.53_arm64.apk /system/app
adb shell chmod 644 /system/app/iytbp-12.05.53_arm64.apk
adb reboot
enjoy!
Using Magisk:
Download the Magisk module for your CPU version
Do whatever you have to do to enable it (I don't use magisk so I don't know how it works )
OFFICIAL DOWNLOADS

IMPORTANT NOTE: the official versions should work fine, but they're not the most reliabel/up-to-date anymore. I strongly recommend you check out @ZaneZam "Vanced" version from the "unofficial downloads" section down below, they currently have more reliable adblocking and extra features.

12.27.53, APK version BACKGROUND PLAYBACK + ADBLOCKED
Thanks to @arter97 for the adblocked YT apks!

FOR DEVICES RUNNING ANDROID 5.0 (Lollipop, API 21) OR NEWER:

FOR DEVICES RUNNING ANDROID 4.1 (JB API 16) up to 4.4 (KitKat, API 20) [older 12.17.54 build]:



UNOFFICIAL VERSIONS
These alternative versions have been kindly provided by other contributors, and are currently the most up-to-date and feature-riched.

"Vanced" version with more variants and additional improvements - by @ZaneZam
See post #2

Non-Root versions, by @laura almeida
See post #3

Magisk Module versions by @Anova's Origin
See post #4
The Following 468 Users Say Thank You to Master_T For This Useful Post: [ View ] Gift Master_T Ad-Free
 
 
21st February 2017, 09:10 PM |#2  
ZaneZam's Avatar
Recognized Contributor
Thanks Meter: 14,376
 
Donate to Me
More
Info 2 Recent vanced versions from Razerman, Laura Almeida and ZaneZam
Thx to cool people like OP @Master_T, @a.cid and @malybru i have now the possibility to use this second post to keep following info sticky and up-to-date

[Root/MAGISK] YouTube Vanced [BLACK/WHITE THEME]

NOTE: since 29.07.17 and with the new "Vanced" version: as we are not using parts of the original mods stated in the OP anymore.
This isn't an unofficial port of it anymore it's rather a completely new mod which has the following enrich features and changes


What's in:
  • Completely redid video ad blocking. (This is a much better, faster and simpler)
  • Background Playback enabled (This is also a simplified mod)
  • Enable/Disable background playback via Settings
  • Force VP9 Codec option for better video quality and lesser bandwidth usage (Settings -> iYTBP Settings)
  • Override Max Resolution Limit (Settings -> iYTBP Settings)
  • Set Preferred Video Quality (for WiFi and/or Data) (Settings -> iYTBP Settings)
  • Enable/Disable Info Cards on videos (Settings -> iYTBP Settings)
  • Enable/Disable Suggestions Cards on videos (Settings -> iYTBP Settings)
  • Enable/Disable channel branding watermark on videos (Settings -> iYTBP Settings)
  • Casting working with all features (no ads on external devices not guaranteed)
  • File names + installer adjusted to the new "vanced" mod naming
  • [Optional]Detach YouTube from playstore for magisk users
  • White/Black Themed versions

What's Fixed:
  • Blocked all video ads
  • Blocked all layout ads
  • Redid Background playback
  • Fixed "Save Offline" feature (only works in regions where it is supported, more info #2999)
  • Fixed all known issues in themed version

This version came into being because of cooperation of following people so Credits to them:
@Razerman for method findings (kudos!)
@laura almeida for themeing/testbuilds (thx a lot!)
@ZaneZam producing and a bit of ad-nuking (have to mention myself weird *g*)
and last but not least all the test volunteers! thx to all of u! see what we can achieve together



Where is the download link ?
All versions and variants are available on AFH or Mediafire
NOTE: Updates are coming depending on availability of new Apk's on apkmirror!


Which variant should I choose ?
First find out which arch and DPI you should use (FAQ on apkmirror) then,
If your, 4.1 =< Android Version < 5.0, choose the one with minAPI16
If your, 5.0 =< Android Version < 8.0, choose the one with minAPI21
If your Android Version >= 8.0 choose the one with minAPI26
If you want the themed version, chose the themed version of the same as above.


How to install Using Non-Magisk Root Method ?
Mainly there are two ways to install using Non-Magisk Root Method,

(I) Using The Official iYTBP Vanced Universal Installer (Only for Android 4.4+)
1. Download the official iYTBP Vanced Universal Installer
2. Download the YouTube Vanced apk and make sure file name stays the same.
3. Either put the apk inside the iYTBP Vanced Universal Installer or put the apk in the /sdcard/Download/ folder
4. Uninstall any YouTube updates that you have installed and disable auto-update for YouTube via playstore (if YouTube is user app, uninstall it completely)
5. Flash the iYTBP Vanced Universal Installer in TWRP recovery.
6. Reboot!

NOTE:
If both the Installer and the download folder contain a iYTBP apk then the one included in the zip has priority.
If more than one iYTBP apk is found, only the alphabetical last one gets installed.

Credits :
@arter97 for the original root installer


(II) Using Manual Method
1. Uninstall YouTube completely and reboot.
2. Download the YouTube Vanced apk and rename it to YouTube.apk
3. Create a folder called YouTube in /system/app/ and set permission 755
4. Copy YouTube.apk to /system/app/YouTube/ and set permission 644
5. [OPTIONAL] Extract the lib folder from apk to /system/app/YouTube/ and rename the immediate sub-folder to arm or arm64 or x86 or x86_x64 depending on your CPU architecture and set folder permission 755 and all files permission 644
6. Reboot!

Note :
Depending on your android version you need to select the proper installation location for system application like
for android 4.x - /system/app/
for android >= 5.x - /system/app/YouTube/ or /system/app/priv-app/
for Pixel phones - /system_root/system/app/YouTube/


How to install Using Magisk Module Method ?
1. Download the official iYTBP Vanced Universal Installer and iYTBP_use_this_settings.sh
2. Download the YouTube Vanced apk and make sure file name stays the same.
3. Either put the apk and iYTBP_use_this_settings inside the iYTBP Vanced Universal Installer or in the /sdcard/Download/ folder
4. Uninstall any YouTube updates that you have installed and disable auto-update for YouTube via playstore (if YouTube is user app, uninstall it completely)
5. Open the iYTBP_use_this_settings.sh file and set MAGINSTALL="YES"
6. [OPTIONAL] Set DETACH="YES" to detach Youtube from playstore to disable update notifications
7. Flash the iYTBP Vanced Universal Installer in TWRP recovery (recommended) or else install it via Magisk Manager.
8. Reboot!

Credits :
@hinxnz for the detach module/installer
@topjohnwu for Magisk!):



Advanced Options Of Official iYTBP Vanced Universal Installer
iYTBP Vanced Universal Installer make use of iYTBP_use_this_settings.sh file or couple of .plz files to do certain set of actions which is explained below.

(I) Using the iYTBP_use_this_settings.sh
  • SEARCHFOLDER - Path where to search for iYTBP Apk's (must be a subfolder on sdcard!)
  • MAGINSTALL - Use magisk installation instead of root installation. (Possible Values: YES/NO)
  • DETACH - Detach Youtube from playstore to disable update notifications. (Possible Values: YES/NO)
  • ATTACH - Attach Youtube to playstore if it was previously detached. (Possible Values: YES/NO)
  • UNINSTALL - Completely uninstall iYTBP: root version, magisk module and detach module (Possible Values: YES/NO)

(II) Using the .plz files
Copy the following (only the ones you need) .plz files to /sdcard/Download/ to let Universal Installer know in which configuration it should run.
  • iYTBP_install_via_magisk.plz - Use magisk installation instead of root installation
  • iYTBP_detach_from_playstore.plz - Detach Youtube from playstore to disable update notifications.
  • iYTBP_attach_to_playstore.plz - Attach Youtube to playstore if it was previously detached.
  • iYTBP_uninstall.plz - Completely uninstall iYTBP: root version, magisk module and detach module.


F.A.Q

Q. How to install updates ?
A. Just download the latest apk and install as you previously did version.

Q. Do I need to re-install detach script for every new YouTube Vanced update ?
A. No!

Q. Can I install this as I normally install any other apk ?
A. No! you need the non root version for that. (Check #3)

Q. Can I download videos with this ?
A. No! but the official YouTube Offline Video feature is working. (more info #2999)

Q. Why do I see update on playstore for the same version which I have installed ?
A. Because you have installed the wrong DPI variant. All those who install nodpi variant will definitely have this issue

Q. Why is <xyz> variant not available to download ?
A. I release all available (Yes all 61 builds) apk based on the official apk from apkmirror. if <xyz> variant is not available in apkmirror, it wont be available here too.

Q. Installation successful but YouTube is not showing up in launcher, why ?
A. Probably because you didn't follow the instructions properly, you can try this fix -> #3817

Q. Does 'Crop to fit' feature work for S8 and S8+ users ?
A. Yes! If not just clear YouTube data and force close it. Its a bug in samsung ROM not YouTube. Try googling it.

Q. Is history working ?
A. Yes! Make sure you whitelist *s.youtube.com in your adblocker and also make sure your account is merged properly (more info #3900)

Q. Does PIP mode works ?
A. Yes, make sure you are using minAPI26

Q. When will you release the new version ?
A. Usually within a couple of days after the official apk is available in apkmirror. But please don't ask for ETA!


Reporting Bugs:
We ONLY can accept any reports if u do following:
  • Using the most recent version
  • Describe the problem as good as possible (especially with ads for example: what kind of ads, vid or layout?, when and where are they appearing ?)
  • If possible add screenshots of the problem and even better add a logcat which was taken during the problem
  • Add screenshot of the YouTube settings screen (MUST)
  • If it's a theme related bug, providing screenshot of bug, android version, and details of ROM & OEM is a MUST
if any of these points are missing we will ignore the report as we have no time to investigate further any of these infos. thx for trying to hold on to these points


Do you wanna contribute to this project ?
Are you a developer ? Do you know one or two about reverse engineering ? Do you know about theming android apps ? Do you wanna join our family ?
If yes, PM me or @laura almeida or @Razerman



Do you need help or just wanna have some fun ?
Join our Discord Server -> https://discord.gg/rhqs2k6
Join our Amazing Telegram Group -> https://t.me/joinchat/AAAAAEHf-pi4jH1SDlAL4w
Last but not least, a special thanks to all our testers



Last variant Updates: 23.09.17
Attached Thumbnails
Click image for larger version

Name:	BlackNewUI1.jpg
Views:	46822
Size:	35.4 KB
ID:	4195823   Click image for larger version

Name:	BlackNewUI2.jpg
Views:	46588
Size:	37.3 KB
ID:	4195824   Click image for larger version

Name:	BlackNewUI3.png
Views:	46144
Size:	118.7 KB
ID:	4195825   Click image for larger version

Name:	BlackNewUI5.png
Views:	44768
Size:	74.4 KB
ID:	4195827   Click image for larger version

Name:	BlackOldUI1.jpg
Views:	44282
Size:	37.0 KB
ID:	4195831   Click image for larger version

Name:	BlackOldUI2.jpg
Views:	43828
Size:	36.7 KB
ID:	4195832   Click image for larger version

Name:	BlackOldUI3.png
Views:	42998
Size:	117.1 KB
ID:	4195833   Click image for larger version

Name:	BlackOldUI4.png
Views:	42438
Size:	85.0 KB
ID:	4195834   Click image for larger version

Name:	RedNewUI1.jpg
Views:	42134
Size:	37.8 KB
ID:	4195836   Click image for larger version

Name:	RedNewUI2.jpg
Views:	41566
Size:	38.5 KB
ID:	4195837   Click image for larger version

Name:	RedNewUI3.png
Views:	41142
Size:	119.3 KB
ID:	4195838   Click image for larger version

Name:	RedNewUI5.png
Views:	40240
Size:	74.9 KB
ID:	4195840   Click image for larger version

Name:	RedOldUI1.jpg
Views:	39742
Size:	37.9 KB
ID:	4195843   Click image for larger version

Name:	RedOldUI2.jpg
Views:	39336
Size:	38.0 KB
ID:	4195844   Click image for larger version

Name:	RedOldUI3.png
Views:	39208
Size:	118.0 KB
ID:	4195845   Click image for larger version

Name:	RedOldUI4.jpg
Views:	38130
Size:	143.1 KB
ID:	4198667   Click image for larger version

Name:	Screenshot_20170628-194322.jpg
Views:	37796
Size:	137.9 KB
ID:	4198668   Click image for larger version

Name:	Screenshot_20170701-122534.jpg
Views:	37390
Size:	120.2 KB
ID:	4198669  
The Following 266 Users Say Thank You to ZaneZam For This Useful Post: [ View ] Gift ZaneZam Ad-Free
21st February 2017, 10:10 PM |#3  
laura almeida's Avatar
Senior Member
Flag Benicarló
Thanks Meter: 1,927
 
More
[Non-Root] YouTube Vanced
First of all I would like to thank @malybru for giving me the possibility to use this 3rd post.

[Non-Root] YouTube Vanced

Features:
  • No root needed to install
  • No need to uninstall official YouTube, can install as a secondary YouTube.
  • Whole new ad blacking method (thanks to @ZaneZam, @Razerman)
  • Simplified mod to enable background playback
  • Enable/Disable background playback via Settings
  • Force VP9 Codec option for better video quality and lesser bandwidth usage (Settings -> IYTBP Settings)
  • Override Max Resolution Limit (Settings -> IYTBP Settings)
  • Preferred Video Quality switch (WiFi/Data) (Settings -> IYTBP Settings)
  • Enable/Disable Info Cards on videos (Settings -> IYTBP Settings)
  • Enable/Disable Suggestions Cards on videos (Settings -> IYTBP Settings)
  • Enable/Disable channel branding watermark on videos (Settings -> IYTBP Settings)
  • With the help of modded microG, Login & Casting works with all features (no ads on external devices not guaranteed)

I was able to create the non root and themed versions only because of the help of @Razerman & @ZaneZam. A Special thanks to them.

How to install Non Root Version ?
1. Download the latest YouTube Vanced version
2. Install it as you would normally install any other apk.
3. Enjoy

How to fix Login & Chromecast issue ?
1. Download the modded microG
2. Install it as you would normally install any other apk.
3. Enjoy

Where is the download link ?
All versions is produced by @ZaneZam (again huge thanks to ZZ), You can find the non root versions in his AFH or Mediafire (Hint: Look inside non root folder)

Which version should I choose ?
If your android version is < 8.0 chose the one with minAPI16
If your android version is >= 8.0 chose the one with minAPI26
If you want the themed version, chose the themed version of the same as above.
Non root version supports all CPU architectures and all DPI variants. so no need to worry about that.

Known Bugs:
  • Offline mode doesn't work properly, app keep refreshing, to watch saved videos you have to search for it.

FAQ

Q. How to install updates ?
A. Just download and install the latest version. no additional steps needed.

Q. Do I need to install microG for every new YouTube Vanced update ?
A. No! you only need to re-install microG if there is a new update to microG (microG doesn't get updated very often.)

Q. Can I install official microG instead of this modded one ?
A. No! You have to install the modded one. If you want you can install modded one alongside the official one.

Q. What modifications are done to microG ?
A. Just changed the package name of microG and added support to accept communication from modded YouTube.

Q. Can I use microG from OGYouTube ?
A. No. You have to use our microG which also supports OGYouTube

Q. Is there any difference to Root version and Non Root version ?
A. No!

Q. Can you make 'Crop to fit' feature work for S8 and S8+ users ?
A. No! 'Crop to fit' is a Samsung ROM feature which is only visible when ROM detects YouTube package name. Since we changed package name there is no way to bring 'crop to fit' feature.

Q. Is history working ?
A. Yes! Make sure you whitelist *s.youtube.com in your adblocker and also make sure your account is merged properly (more info #3900 & #4430)

Q. Does PIP mode works ?
A. Yes, make sure you are using minAPI26

Q. When will you release the new version ?
A. Usually within a couple of days after the official apk is available in apkmirror. But please don't ask for ETA!

Reporting Bugs:
We ONLY can accept any reports if u do following:
  • Using the most recent version
  • Describe the problem as good as possible (especially with ads for example: what kind of ads, vid or layout? and when are they appearing?)
  • If possible add screenshots of the problem and even better add a logcat which was taken during the problem
  • Add screenshot of the settings screen (MUST)
  • If it's a theme related bug, providing screenshot of bug, android version, and details of ROM & OEM is MUST

Do you wanna contribute to this project ?
Are you a developer ? Do you know one or two about reverse engineering ? Do you know about theming android apps ? Do you wanna join our family ?
If yes, PM me or @ZaneZam or @Razerman


Do you need help or just wanna have some fun ?
Join our Discord Server -> https://discord.gg/rhqs2k6
Join our Amazing Telegram Group -> https://t.me/joinchat/AAAAAEHf-pi4jH1SDlAL4w
Last but not least, a special thanks to all our testers
The Following 57 Users Say Thank You to laura almeida For This Useful Post: [ View ] Gift laura almeida Ad-Free
21st February 2017, 10:11 PM |#4  
Anova's Origin's Avatar
Senior Member
Flag Vancouver
Thanks Meter: 916
 
More
Magisk Modules for iYTBP
Magisk Modules for @ZaneZam's iYTBP:

https://drive.google.com/open?id=0B8...200ajZNYkdWOVE

Current Versions:
arm: 12.37.54v (480 dpi)
arm64: 12.37.54v
x86: 12.32.60v
x86_64: 12.32.60v

All Magisk modules are using the minAPI21 nodpi variant of @ZaneZam's iYTBP unless otherwise stated.

Instruction for the Magisk Module:
1) Delete any prior updates you have installed for YouTube
-Navigate to Settings -> Apps -> YouTube and disable the app, this will uninstall all updates
-Once disabled, re-enable YouTube
2) Flash the module zip in either Magisk Manager or a custom recovery

The module will survive dirty ROM flashes. To upgrade to a newer version of iTBP using the Magisk modules, simply flash the new module over the old one.

Note: If you are using Substratum to theme YouTube (especially if using Substratum's legacy mode), you may have to remove overlay first prior to updating. Otherwise, YouTube will crash immediately when opening. If you experience this, you can try any of the following to fix it:
-Uninstall and reinstall the overlay on YouTube
-Flash Substratum-rescue(legacy).zip from Substratum's folder, then re-apply all your themes
-Dirty flash your current ROM, reapply Substratum theme
The Following 176 Users Say Thank You to Anova's Origin For This Useful Post: [ View ] Gift Anova's Origin Ad-Free
21st February 2017, 10:13 PM |#5  
OP Senior Member
Thanks Meter: 895
 
More
Quote:
Originally Posted by kos25k

thanks!does modules swipetoseek and y.t adaway cooperate with this app?

Στάλθηκε από το SGP611 μου χρησιμοποιώντας Tapatalk

They should work,this is based on the original YouTube app. But if you have xposed, know that this does the same thing as the "YouTube background playback" module.
The Following 4 Users Say Thank You to Master_T For This Useful Post: [ View ] Gift Master_T Ad-Free
21st February 2017, 10:16 PM |#6  
kos25k's Avatar
Senior Member
Thanks Meter: 274
 
More
thanks dude.personally I dont live without xposed 😀 I just want to tell some guys who dont have xposed,to know!
22nd February 2017, 12:30 AM |#7  
SilverZero's Avatar
Senior Member
Thanks Meter: 334
 
More
This is great, very nice work. I will watch to see if anybody steps up to develop a version of this with ad blocking (even though the OP has preemptively said he won't do it) as that's more important, but I sure wish I could have both.
The Following 3 Users Say Thank You to SilverZero For This Useful Post: [ View ] Gift SilverZero Ad-Free
22nd February 2017, 12:41 PM |#8  
Junior Member
Thanks Meter: 0
 
More
Tested on victara (32-bit) and it's working so far.
Great work OP, Thanks.
22nd February 2017, 04:52 PM |#9  
Member
Thanks Meter: 16
 
More
Worked on HTC 10 running on 2.41.709.3! Thanks!
The Following 2 Users Say Thank You to Kim Lu For This Useful Post: [ View ] Gift Kim Lu Ad-Free
22nd February 2017, 07:05 PM |#10  
OP Senior Member
Thanks Meter: 895
 
More
Thanks for the feedback guys.
Can anyone point me to a guide or an example of how to build a flashable zip from this?
Particularly how to find and remove the old YT apk, installing the new one seems relatively straightforward
22nd February 2017, 09:40 PM |#11  
الفلسطيني's Avatar
Senior Member
Flag framework-res
Thanks Meter: 92
 
More
Looks Interesting I'm still downloading it
Would you like to try the link for Flashable Zip!
https://forum.xda-developers.com/che...-apps-t3255159
The Following 2 Users Say Thank You to الفلسطيني For This Useful Post: [ View ] Gift الفلسطيني Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread