252

[APP][MOD][Magisk][Root][NonRoot] iYTBP - Yo… | Android Development a...

 6 years ago
source link: https://forum.xda-developers.com/android/apps-games/app-iytbp-injected-youtube-background-t3560900
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

YouTube with background play and much more!

Master_T

Senior Member

iYTBP - injected YouTube Background Playback

What is this? This is a modded version of the original YouTube app that:

F.A.Q. Q: Who made this? A: I ( @Master_T ) initially created this mod by basing it on the source code of the "Youtube Background Playback" xPosed module. All credits for the original implementation go the the authors of that module. I merely "injected" the modifications from the module into the original YouTube APK.

A lot of water has passed under the bridge since then, and the mod is now maintained and updated by awesome volunteers, who added a ton of new features to the original implementation. In particular, a big shout out goes to: @ZaneZam - (ad)vanced version, current magisk module @laura almeida - rootless edition @Razerman - new features and mods implementation @Anova's Origin - original magisk module @arter97 - original adblock solution

Q: Why does this exist? A: Originally, I made this mod because there was no xPosed for Android Nougat. Now the mod has developed into (possibly) the most feature-rich YT mod out there!

Q: Does this require root? A: the normal / vanced edition does, but if you don't have root check out the rootless version from by @laura almeida

Q: Can I donate to the project? A: WE DO NOT ACCEPT DONATIONS - we appreciate your support, but please don't send money to us. This is a non-profit project, and sending us money will just mean we have to waste time issuing refunds.

CURRENT VERSIONS / EDITIONS The iYTBP project is discontinued! But fear not: the project continues under the "YouTube Vanced" name. You'll find all the latest builds and infos here: https://forum.xda-developers.com/android/apps-games/app-iytbp-injected-youtube-background-t3560900

Obsolete infos/links:

Last edited: Mar 8, 2018

ZaneZam

Recognized Contributor
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 :good:

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

NOTE: since 31.10.17 there are also official iYTBP Vanced Magisk modules available in the official repo of Magisk, thx to @topjohnwu
As ususal there is the NOT THEMED and the THEMED variant available. u can use them on arm/arm64 and x86/x86_64 systems and get them via the Magisk Manager Module Download


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)
  • Enabled "pinch to zoom" for all devices
  • 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 :highfive:



Where is the download link ?
All versions and variants are available on AFH (latest + older versions archive - might be outdated due to constant upload issues!) or Mediafire (only latest) or
NEW (many thx to @KevinX8): Google (latest + older versions archive)
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 also the one with minAPI21
(why not API26? because there is no API26 anymore the API21 version is compatible now and API26 got removed)
Note: u can use API levels lower than your system supports but not higher!
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 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. Download settings file from mediafire mirror or extract it from zip (config_files folder) and put it into /sdcard or /sdcard/download folder on your phone
6. Open the iYTBP_use_this_settings.sh file and set MAGINSTALL="YES"
7. [OPTIONAL] Set DETACH="YES" to detach Youtube from playstore to disable update notifications
8. Flash the iYTBP Vanced Universal Installer in TWRP recovery (recommended) or else install it via Magisk Manager.
9. 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! It works on the rooted version but not in the non-root since the package name is changed. However, there is an alternative new Pinch to Zoom feature with basically the same functionality.

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, newest versions are targeting the highest API (27 at the moment of writing). Even minAPI16 now supports PiP.

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
Last but not least, a special thanks to all our testers :highfive:



Last variant Updates: 04.12.17

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK