[App Discussion] ReVanced, the successor to Vanced

Search This thread

TinySoul

Senior Member
Feb 18, 2016
73
132
Again 3 months trial. That's it, apparently not supported
If you are not able to download any video for offline viewing then it's very likely it is due to restrictions imposed by YouTube.

Visit this page https://support.google.com/youtube/...cations-where-downloading-videos-is-available

and check if your country is listed in the list where YouTube allows downloading videos for offline viewing. If your country is not listed then downloads are not available without premium subscription.

A VPN should be able to bypass the restrictions.

Thanks
 
  • Like
Reactions: asripath

zgfg

Senior Member
Oct 10, 2016
8,539
6,275
Xiaomi Mi 11 Lite 5G
If you are not able to download any video for offline viewing then it's very likely it is due to restrictions imposed by YouTube.

Visit this page https://support.google.com/youtube/answer/6141269#zippy=,locations-where-downloading-videos-is-available

and check if your country is listed in the list where YouTube allows downloading videos for offline viewing. If your country is not listed then downloads are not available without premium subscription.

A VPN should be able to bypass the restrictions.

Thanks
Already discussed today morning, incl posts of others and you (#212, #214, #218)

Closed story/discussion for me - I'm not interested for Premium trial and Download by 3rd pty app (Seal) works fine

And I'm not in any country being blocked by YT or censored by gvmt or anything
 
Last edited:

asripath

Senior Member
Jul 12, 2020
249
204
Redmi K20 Pro
Samsung Galaxy Tab A8
If you are not able to download any video for offline viewing then it's very likely it is due to restrictions imposed by YouTube.

Visit this page https://support.google.com/youtube/answer/6141269#zippy=,locations-where-downloading-videos-is-available

and check if your country is listed in the list where YouTube allows downloading videos for offline viewing. If your country is not listed then downloads are not available without premium subscription.

A VPN should be able to bypass the restrictions.

Thanks
That page looks like
Rest of the World Vs United States
 

TinySoul

Senior Member
Feb 18, 2016
73
132
Which downloader are you using?
If you use downloader like seal,
Wouldn't the downloads be saved locally and survive updates ?
For downloading audio/video locally I am using NewPipe. I came to know about seal only yesterday through one of your earlier comments. I am still exploring it .

Locally downloaded audio/video files surely survive app updates or complete reinstall. I prefer default YouTube download over others mainly due to convenience factor as it is all in one solution i.e download, watch, read and write comments else you need one or two(if the downloader app doesn't have built in audio/video player) for a trivial task. YouTube also provides relatively quick interface(red line) to know if you have already watched(fully or partially) the video or not. Partially watched videos will resume from the last position without having to open each file or without leaving the app. Though many audio/video player do have resume feature.

One big risk factor with YouTube default download option is, if you were to ever uninstall, reinstall or downgrade the app for whatever reasons then your videos are gone for good. I once lost some 2200 downloaded videos when "swipe down to refresh" bug on app home page, first appeared in YouTube Vanced (non rooted) app. I wanted to go back to the earlier version and totally forgot that downgrade implies app uninstall !

One more issue is that offline downloaded videos can be watched in YouTube(or it's variants like Vanced, ReVanced) only.
 
  • Like
Reactions: asripath

TinySoul

Senior Member
Feb 18, 2016
73
132
Already discussed today morning, incl posts of others and you (#212, #214, #218)

Closed story/discussion for me - I'm not interested for Premium trial and Download by 3rd pty app (Seal) works fine

And I'm not in any country being blocked by YT or censored by gvmt or anything
Yup closed for me too.
I saw this post just now after replying to your earlier comment and just wanted to tell you the probable reasons. I didn't saw your post where you discussed it else I wouldn't have posted my reply.

Thank you for your time 🙏
 

zgfg

Senior Member
Oct 10, 2016
8,539
6,275
Xiaomi Mi 11 Lite 5G
[facetious]But if u you are being blocked or censored by any government or secret illuminati society, that could mean they have succeeded in making you THINK you are free and not being manipulated.... 👀[/facetious]
Useless and off-topic

Didn't we solve the problem with two Download, two buttons, one pointing to YT Premium Trial download and the other (sic) for downloading via the third party app

Besides all thanks to @asripath - only his posts helped, not the others with vain answers/discussions or repeatitive questions like try to download again, etc
 

TinySoul

Senior Member
Feb 18, 2016
73
132
What is the way of updating revanced?
Is it always needed to completely remove the previous version of revanced?

For some reason, updates do not work for me.

How are you doing this?
If you are building the rooted version (using any method or app like ReVanced Manager, ReVanced Builder, manually from command line or running some shell script etc.) then the version you are patching and the version INSTALLED on your device MUST be same else it will fail.

Also note that unlike the non-rooted version which can be build using locally stored apk, rooted version requires original app already INSTALLED on your device before starting the patching process.

Now when you want to upgrade, simply install new original apk on top of the installed version and patch it again.

Whatever method you may use to build the patched apk, just ensure you always use the same method else the newly patched version may not install over existing installed version (probably due to signature mismatch).

A reboot is required after upgrade. I tried launching the app without reboot, but it kept on crashing.

Note: I did all experimentation on Rooted Android Emulator. My phone is not rooted. But I think this should work on real rooted phone too.

One stange behavior on Android Emulator. After upgrade I reboot the emulator and when I started YouTube, I got the original version. Verified from settings, there was no ReVanced Option.

Initially I thought for some reasons patching failed. Then I closed the app and restarted it and voila ! ReVanced Option was there and all the applied patches were there. Tried closing and relaunching the app multiple times, everything seems to work fine.

Then I thought let me try again by rebooting the emulator itself. After rebooting, the first launch of YouTube app displayed "short" button which should have been hidden, and I thought here we go again. But when I opened the settings, the ReVanced Option was right there ! Again restarting the YouTube app, solves the issues.

This behavior is consistent at least on my android emulator(LDPlayer). Can't say whether the will behave in similar manner on the real root device or not. if the real rooted device.

As of now this issue is not something like "show stopping" issue for me. ReVanced app is still quite new and thus there will be few regression, few glitches here and there.

Installing the app using magisk module is surely the easiest way, but I do not want to download the full flashable zip file for every new patch created or existed one fixed.

Patching the app yourself gives you better control and allows you to apply patches in an incremental(not like you selected 5 patches initially then you want to try another one so you chose only that patch. You will still have to chose the previous 5 patches again) way. I still need to test various scenarios.

Thanks 🙂
 

syla

Senior Member
Jul 28, 2009
261
36
Nantes
Google Pixel 6
Hello there,
Is it possible to use YouTube ReVanced as default YouTube app? Because I can't get it working, YouTube link in the Google feed won't open (official YouTube app is disabled).
 

zgfg

Senior Member
Oct 10, 2016
8,539
6,275
Xiaomi Mi 11 Lite 5G
Hello there,
Is it possible to use YouTube ReVanced as default YouTube app? Because I can't get it working, YouTube link in the Google feed won't open (official YouTube app is disabled).
With the root ReVanced it works automatically since it's just the patched official YT app with the same package name

Sorry, cannot help for non-root, not using
 
  • Like
Reactions: syla

DiamondJohn

Recognized Contributor
Aug 31, 2013
6,561
6,585
Sydney
Useless and off-topic

Didn't we solve the problem with two Download, two buttons, one pointing to YT Premium Trial download and the other (sic) for downloading via the third party app

Besides all thanks to @asripath - only his posts helped, not the others with vain answers/discussions or repeatitive questions like try to download again, etc
🤣:ROFLMAO::ROFLMAO: did you even check what facetious means. And now you complain of repetitive questions, with a reputative answer.🤣🤣🤣
 
  • Haha
Reactions: stephtban

asripath

Senior Member
Jul 12, 2020
249
204
Redmi K20 Pro
Samsung Galaxy Tab A8
Hello there,
Is it possible to use YouTube ReVanced as default YouTube app? Because I can't get it working, YouTube link in the Google feed won't open (official YouTube app is disabled).
Go to the App info page of the app and enable supported links
 

Attachments

  • Screenshot_20221201-171659_Settings.png
    Screenshot_20221201-171659_Settings.png
    127.9 KB · Views: 72

AndrzejDwo

Senior Member
May 26, 2018
1,145
862
Samsung Galaxy Note 3
Samsung Galaxy S5
hey guys, I have a problem with revanced on my s10+. after a while from patching, the app breaks, loses icon, name, and the opening time is very long. i don't have yt preinstalled on my device so i get supported apk from apkmirror, install it, patch it and install patched one with root, all within the manager. sometimes the app lives until reboot but sometimes only for few hours. I have it detached from playstore with TeMeFi. any ideas?

cheers
 

Attachments

  • Screenshot_20221202_040241_Settings.jpg
    Screenshot_20221202_040241_Settings.jpg
    311.9 KB · Views: 52

TinySoul

Senior Member
Feb 18, 2016
73
132
hey guys, I have a problem with revanced on my s10+. after a while from patching, the app breaks, loses icon, name, and the opening time is very long. i don't have yt preinstalled on my device so i get supported apk from apkmirror, install it, patch it and install patched one with root, all within the manager. sometimes the app lives until reboot but sometimes only for few hours. I have it detached from playstore with TeMeFi. any ideas?

cheers
Hi, as of now I don't have any idea, why this is happening.But I suggest you to provide version information for youTube, Revanced Manager, Magisketc..

Also ensure that you are downloading nodpi version from apkmirror.

For detaching YouTube from Playstore, go to revanced.io site, scroll down, you will find Magisk Module. Then try detatching YouTube using MinDetach Module.

Go through instructions if required.

In your current method, you can try one thing. Once you install patched apk as root, do not open the app (by clicking "Open" button, instead quit manager and reboot your device and then only launch the app.

Rare thing but it happened with me, although on emulator. When I opened the app after reboot, it was still showing the stock version. I reboot the emulator again, launch the app and it worked.

Hope someone will soon get back to you on this issue. My phone is not rooted hence I cannot do any experimentation related to root.

Thanks
 
Last edited:

DiamondJohn

Recognized Contributor
Aug 31, 2013
6,561
6,585
Sydney
hey guys, I have a problem with revanced on my s10+. after a while from patching, the app breaks, loses icon, name, and the opening time is very long. i don't have yt preinstalled on my device so i get supported apk from apkmirror, install it, patch it and install patched one with root, all within the manager. sometimes the app lives until reboot but sometimes only for few hours. I have it detached from playstore with TeMeFi. any ideas?
Within TeMMeFI you can check the detachment. You can also check the version and also the date it (YouTube or any other one) was last updated.
You can also check the mounts (ie how/if the mod'd YT is being replaced/injected). I assume you are using Method 3?

For detaching YouTube from Playstore, go to revanced.io site, scroll down, you will find Magisk Module. Then try detaching YouTube using mindetach Module.
I have looked into this detachment method, and TeMeFI includes the effective step and MANY others. Try it, but, looking at the code, TeMeFI does that and much more. When I was building it, the steps in mindetach could be pushed to failure. ie I don't think what he is describing, its a detachment that is failing

You should not run both. And uninstalling TeMeFI's one could affect the other. This also implies some extra steps between installing/switching.

Rare thing but it happened with me, although on emulator. When I opened the app after reboot, it was still showing the stock version. I reboot the emulator again, launch the app and it worked.
I have not explicitly read every line of the Magisk module, but, its is normal for most magisk module changes to require a reboot. There are explicit parts of a module imp0le,menmtation that occur only on a restart. Pewrsonally, a Magisk module is not ionst6yalled untill after a restart. It normally has a restart button in the bottom right after installation.
 
  • Like
Reactions: ipdev

TinySoul

Senior Member
Feb 18, 2016
73
132
Within TeMMeFI you can check the detachment. You can also check the version and also the date it (YouTube or any other one) was last updated.
You can also check the mounts (ie how/if the mod'd YT is being replaced/injected). I assume you are using Method 3?


I have looked into this detachment method, and TeMeFI includes the effective step and MANY others. Try it, but, looking at the code, TeMeFI does that and much more. When I was building it, the steps in mindetach could be pushed to failure. ie I don't think what he is describing, its a detachment that is failing

You should not run both. And uninstalling TeMeFI's one could affect the other. This also implies some extra steps between installing/switching.


I have not explicitly read every line of the Magisk module, but, its is normal for most magisk module changes to require a reboot. There are explicit parts of a module imp0le,menmtation that occur only on a restart. Pewrsonally, a Magisk module is not ionst6yalled untill after a restart. It normally has a restart button in the bottom right after installation.
Sorry my mistake, I was not clear enough. In my comment starting from "In your current method....", what I wrote was to be tried out using ReVanced Manager itself. I didn't used Magisk at all.

My intention was, you post the information I asked you to provide and by the time someone come with a solution to your issue, try out what I mentioned.

I know you are already using it. But the version number information is important as ReVanced Manager has been quite buggy when it comes to "Install as Root" option. I have no idea how frequently you have been updating the manager itself.

Also once you install the patched apk as root from within the manager, you will immediately see "Open" button.

I was launching the app by pressing that button. It seems to work just fine. Open and close the app multiple times, no issues. But as soon as I reboot, patched YouTube was replaced by stock version.

When I tried as mentioned in my previous comment, it started working fine with rare glitches(these can be due to the fact that I am using emulator).

So if your issule is not resolved yet kindly provide the information. It may or may not be usefull.

Why not tryout the fully patched Magisk Module? Flash the Magisk module, flash the detatch script and see if it works? If it does work then very likely the problem is in the ReVanced Manager app.

Thanks.
 

ipdev

Recognized Contributor
Feb 14, 2016
2,313
1
4,620
Google Nexus 10
Nexus 7 (2013)
Hi all. 🙂

Quick PSA.

To explain what actually happens when you install ReVanced using the manager.
Note: the file path might be different if you use the extended repo.
I have not tried yet but, I think the extended repo used /data/adb/ instead of /data/local/tmp/

When you open the manager you see the installed apps that are suported for patching.
When you select one (YouTube for this example) for patching, the manager copies the stock installed apk file to a working directory.
The copy is then patched with the patches you select and a patched apk file is created.

When you choose to install it, the patched apk file is moved to /data/local/tmp/revanced-manager/com.google.android.youtube/.
The permissions of the modified apk file needs to be set correctly.
This can not be done in a normal user level like /sdcard/ so /data/local/tmp/ is used since it has heighten permission levels.​

Two boot scripts are created, and placed in Magisk's boot script directories.
One placed in post-fs-data.d (early boot) and the other placed in service.d (late start).
This is different than a module.
A module (if scripts are needed), include their post-fs and service script within it's own module directory instead of the main directories.

Then the mount command is used to overlay the patched version on top of the stock installed version.
When you open the app, Android is pointed to the patched version instead of the installed version.​

Since the mount overlay will not survive a reboot, the boot scripts that were created (post-fs and service) run the mount overlay on boot.
Otherwise you would have to mount the patched version over the stock version manually after every boot. ;)
Magisk's Overlay does not extent out to user data. That is why we use the mount command to overlay the modified apk.​

---

There is still an issue with ReVanced not replacing the previous patched apk file and/or scripts when you update or re-patch an app.
In a previous post I gave instructions on how to clear ReVanced YouTube for updating.
Post #182

Still an open issue.
ReVancedManager - [ GitHub ] - Issue #425
I happened to comment in the above issue what and why we use boot scripts and the mount command. ;)

---

Hope it helps more than confuse. 🙃

Cheers. :cowboy:
 

Wolfcity

Recognized Contributor
Apr 26, 2013
4,552
3,088
Moto G5 Plus
Redmi K20 / Xiaomi Mi 9T
Hi all. 🙂

Quick PSA.

To explain what actually happens when you install ReVanced using the manager.
Note: the file path might be different if you use the extended repo.
I have not tried yet but, I think the extended repo used /data/adb/ instead of /data/local/tmp/

When you open the manager you see the installed apps that are suported for patching.
When you select one (YouTube for this example) for patching, the manager copies the stock installed apk file to a working directory.
The copy is then patched with the patches you select and a patched apk file is created.

When you choose to install it, the patched apk file is moved to /data/local/tmp/revanced-manager/com.google.android.youtube/.
The permissions of the modified apk file needs to be set correctly.​
This can not be done in a normal user level like /sdcard/ so /data/local/tmp/ is used since it has heighten permission levels.​

Two boot scripts are created, and placed in Magisk's boot script directories.
One placed in post-fs-data.d (early boot) and the other placed in service.d (late start).
This is different than a module.
A module (if scripts are needed), include their post-fs and service script within it's own module directory instead of the main directories.

Then the mount command is used to overlay the patched version on top of the stock installed version.
When you open the app, Android is pointed to the patched version instead of the installed version.​

Since the mount overlay will not survive a reboot, the boot scripts that were created (post-fs and service) run the mount overlay on boot.
Otherwise you would have to mount the patched version over the stock version manually after every boot. ;)
Magisk's Overlay does not extent out to user data. That is why we use the mount command to overlay the modified apk.


---

There is still an issue with ReVanced not replacing the previous patched apk file and/or scripts when you update or re-patch an app.
In a previous post I gave instructions on how to clear ReVanced YouTube for updating.
Post #182

Still an open issue.
ReVancedManager - [ GitHub ] - Issue #425
I happened to comment in the above issue what and why we use boot scripts and the mount command. ;)

---

Hope it helps more than confuse. 🙃

Cheers. :cowboy:
May there be a connection between different pathes/directories and the issue that the ReVanced manager gets stuck right at the start when creating a working directory?
I had that issue on my friends device (same as mine Xiaomi Mi 9T), not rooted, ReVanced extended (changed sources from revanced to inotia00) but also on my rooted Moto G5+. Luckily the method was working on my main device.
I fixed both issues by
- Sending my patched YT ReVanced Extended apk to my friends device.
- Flashed pre-built magisk module to my Moto G5+.
But still, it's strange that the manager gets stuck by creating a working directory on some configurations.
Maybe the different pathes cause trouble there?
 

ipdev

Recognized Contributor
Feb 14, 2016
2,313
1
4,620
Google Nexus 10
Nexus 7 (2013)
May there be a connection between different pathes/directories and the issue that the ReVanced manager gets stuck right at the start when creating a working directory?
I had that issue on my friends device (same as mine Xiaomi Mi 9T), not rooted, ReVanced extended (changed sources from revanced to inotia00) but also on my rooted Moto G5+. Luckily the method was working on my main device.
I fixed both issues by
- Sending my patched YT ReVanced Extended apk to my friends device.
- Flashed pre-built magisk module to my Moto G5+.
But still, it's strange that the manager gets stuck by creating a working directory on some configurations.
Maybe the different pathes cause trouble there?
Not sure why the patcher would get stuck at that point. :unsure:
The previous working directory should be removed once you install or back out of the patching.
I will have to see if I can reproduce. 🙃

The working directory is created in /data/data/app.revanced.manager.flutter/cache/ so there should be no access (write) issues.
/data/data/app.revanced.manager.flutter/cache/patcher/tmp-SOMETHING
The out.apk file is the final repacked ready to go ReVanced apk file. ;)
Unless the extended repo forces it to a different directory for some reason?

I have manually cleared the directory(s) since I started using ReVanced to patch YT and YTM.
There were some issues in the beginning, not as many now. 🙃
I understand keeping some common generated files (no reason to rebuild them every time) but, it is not like we are building a rom where it can cut 30 minutes off of build time. 😝.

What happens if you force stop and clear cache and storage for ReVanced manager?
That will clear the entire /data/data/app.revanced.manager.flutter directory so there should be nothing left to conflict with your patch run.​
Note: You will have to switch to the extended repo again when you start the manager app. 🙃

---

Ran out of time tonight for testing.
I will give it a try tomorrow night using the extended repo and see what happens.
I have been meaning to run a patch build using the extended repo so I can update my removal script(s). ;)

Cheers. :cowboy:

Edit(s):
Fix a few typo(s), spelling and some formatting.
Time for Bed. 🙃
 
Last edited:
  • Like
Reactions: Wolfcity and Gborg3

Wolfcity

Recognized Contributor
Apr 26, 2013
4,552
3,088
Moto G5 Plus
Redmi K20 / Xiaomi Mi 9T
Unless the extended repo forces it to a different directory for some reason?
This is the direction I was thinking to.
What happens if you force stop and clear cache and storage for ReVanced manager?
That will clear the entire /data/data/app.revanced.manager.flutter directory so there should be nothing left to conflict with your patch run.​
Note: You will have to switch to the extended repo again when you start the manager app. 🙃


....snip
Clearing cache and/or changing the version of the manager (0.42 to 0.43) doesn't change anything (incl. switching repo).
What's strange for me is the fact that the problem occurs on an rooted and an unrooted device.
And to make it more complex the unrooted one is the same as mine (Xiaomi Mi 9T, also not rooted, the one the manager is working on). Only difference is that one is running stock MIUI and my device is on xiaomi.eu with unlocked bootloader.
I will do some testing too.
Thanks!

Edit: Looking into TWRP filemanager the directory seems to be the same with Revanced Extended.
 

Attachments

  • Screenshot_2022-12-05-15-32-40.png
    Screenshot_2022-12-05-15-32-40.png
    83 KB · Views: 27
Last edited:
  • Like
Reactions: ipdev

Top Liked Posts

  • There are no posts matching your filters.
  • 51
    Hello Friends,

    I would like to share information about the true successor to the Vanced app. It is called ReVanced.

    The project page is located on the GitHub site.

    There you have all the information to build the patcher binaries(not the patched YouTube apk). Then patch the YouTube apk(must be official original apk) from the command line (instructions are there on how to do this).

    Building the binaries on your own can be overwhelming for many so the easiest way is to download the "ReVanced Manager" (needs Android 8 and above). Link is on the homepage.

    Unlike Vanced Manager, ReVanced Manager will not download any apk and microg (for non-root devices). It will show you the installed official YouTube version on which to apply the patch. It also allow you to specify an offline YouTube apk stored on your device which you want to patch. It will then display the list of available patches. You can choose the patches as per your requirement and apply them. Once the patches are applied successfully, you will see an option to install the patched apk as a non-root user or "install as root". My device is not rooted so I could not test it.

    If you are applying patches on the installed YouTube app, then depending on the patches you choose you may get the warning saying something like "split configuration detected. The patches you choose requires resource patching, hence you may encounter some errors".

    I was not sure what to do so I choose to apply patches on the offline apk.

    Important: The ReVanced Manager doesn't seems to recognise .apks or .xapk extensions so your offline apk needs to be a single apk (you can get the apk from trusted site like apkpure or find a way to extract the split apk's from the installed app and merge them into a single apk)

    One more thing the patched apk will not install over your existing installed official apk. So you must remove it first. I am also not sure if the patched apk will install over a previously patched apk created with the ReVanced Manager (It should be possible but I came across this project just last night and haven't really tested the various scenarios).

    Note: I am neither a contributor on this project nor I am associated with them in any way. I am just sharing something useful I came across.

    Thank you 🙂

    Added 12-Oct-2022
    Link to the Project page on GitHub (Organized by ipdev)

    Added 17-Oct-2022
    ReVanced Builder - An alternative to ReVanced Manager
    ReVanced.io - Download fully patched YouTube Revanced app

    Added 25-Dec-2022
    More information on installing ReVanced app.
    Installing Revanced with Revanced manager Using official ReVanced Manager (Android)

    Installing Revanced with Revanced Builder (Note: This is forked version of ReVanced Builder mentioned earlier)
    How to use rvx builder on Android

    Something Extra
    Feature comparison of Revanced vs Revanced extended
    22
    ReVanced.io - Download fully patched YouTube Revanced app.

    Both root and non-root versions available for download. The root versions are available in the form Magisk modules.

    The patched versions are created using ReVanced-Builder app.
    The site also has nice explanation for the various patches applied.

    Note: The official ReVanced site is still on YouTube version 17.36.37, but this site has fully patched latest YouTube version (17.40.40)

    Thank You :)
    13
    Hi all. 🙂

    I have been following the ReVanced project since shortly after it started.
    It is a big and still a young project so, there are some glitches and issues. 🙃
    - Some patches might not work or cause issues.

    I had some issues with the ReVanced Managers between v0.0.19 and v.0.0.26.
    YT and YT Music force close after patching with manager 22, 23, 24 and 25.​

    ReVanced does not currently support split-apks.
    v.0.0.19 was the last able to patch split-apk YT​

    The ReVanced Manager will not work on arm (armv7a) devices.
    You can patch arm files on an arm64 (armv8a) device.​

    I am still working on updating a Magisk module project that I started a few years ago but, never announced.
    Vanced asked that no one release an unofficial module once they created an official module.
    Since the official module was dead, I asked for permission to release a new module.
    A few years ago, due to changes in Android.
    I was looking for an easier way to use the root 'Vanced' version of YouTube on my device(s).
    Instead of manually replacing and setting permissions, I tested an idea (on a lot of devices and Android versions) to overlay the modified version over the stock installed version.
    The Vanced team adopted the idea into their Manager root install. 🙂
    - ReVanced does the same.

    ---

    The YT, YT Music patches that work for me using ReVanced Manager v.0.0.26.
    - YouTube
    • Client Spoof
      Spoofs the YouTube or Vanced client to prevent playback issues.​
    • Disable Auto Captions
      Disable forced captions from being automatically enabled.​
    • Disable Auto Player Popup Panels
      Disable automatic popup panels (playlist or live chat) on video player.​
    • Disable Fullscreen Panels
      Disables video description and comments panel in fullscreen view.​
    • General Ads
      Removes general ads.​
    • Hide Infocard Suggestions
      Hides infocards in videos.​
    • Hide Watermark
      Hides creator's watermarks on videos.​
    • Minimized Playback
      Enables minimized and background playback.​
    • Remember Video Quality
      Adds the ability to remember the video quality you chose in the video quality flyout.​
    • Return Youtube Dislike
      Shows the dislike count of videos using the Return YouTube Dislike API.​
    • Sponsorblock
      Integrate SponsorBlock.​
    • Video Ads
      Removes ads in the video player.​
    - YouTube Music
    • Background Play
      Enables playing music in the background.​
    • Codecs Unlocked
      Adds more audio codec options. The new audio codecs usually result in better audio quality.​
    • Exclusive Audio Playback
      Enables the option to play music without video.​
    • Hide Get Premium
      Removes all "Get Premium" evidences from the avatar menu.​
    • Minimized Playback Music
      Enablers minimized playback on Kids music.​
    • Music Video Ads
      Removes ads in the music player.​
    • Upgrade Button Remover
      Removes the upgrade tab from the pivot bar.​

    Base stock versions from APKMirror.
    YouTube (full APK) v17.36.37 (arm and arm64).
    - APKMirror - [WebSite] - Link

    YouTube Music v5.23.50 (arm)
    - APKMirror - [WebSite] - Link

    YouTube Music v5.23.50 (arm64)
    - APKMirror - [WebSite] - Link


    Cheers all. :cowboy:

    PS.
    Once finish cleaning up iYT, I will start a Magisk Module thread for it. 🙃
    Archived original iYTv. - [GitHub] - Link

    WIP updated iYT. - [GitHub] - Link
    WIP iYTm. - [GitHub] - Link


    Edit: (12.OCT.2022)
    Fix list of YT patches I use (accidentally posted the YTM patches I use instead of YT patches).
    Clean up a bit since posts have been moved into a new thread.


    Edit: (03.NOV.2022)
    [MODULE] Inject YouTube - [xdaThread] - Link
    10
    ReVanced
    Continuing the legacy of Vanced

    • ReVanced Main project.
    • ReVanced Manager Releases.
    • List of ReVanced patches.

    Credits:
    The ReVanced team.
    All who contribute and support this project.
    9
    Hi all. 🙂

    Quick PSA.

    To explain what actually happens when you install ReVanced using the manager.
    Note: the file path might be different if you use the extended repo.
    I have not tried yet but, I think the extended repo used /data/adb/ instead of /data/local/tmp/

    When you open the manager you see the installed apps that are suported for patching.
    When you select one (YouTube for this example) for patching, the manager copies the stock installed apk file to a working directory.
    The copy is then patched with the patches you select and a patched apk file is created.

    When you choose to install it, the patched apk file is moved to /data/local/tmp/revanced-manager/com.google.android.youtube/.
    The permissions of the modified apk file needs to be set correctly.
    This can not be done in a normal user level like /sdcard/ so /data/local/tmp/ is used since it has heighten permission levels.​

    Two boot scripts are created, and placed in Magisk's boot script directories.
    One placed in post-fs-data.d (early boot) and the other placed in service.d (late start).
    This is different than a module.
    A module (if scripts are needed), include their post-fs and service script within it's own module directory instead of the main directories.

    Then the mount command is used to overlay the patched version on top of the stock installed version.
    When you open the app, Android is pointed to the patched version instead of the installed version.​

    Since the mount overlay will not survive a reboot, the boot scripts that were created (post-fs and service) run the mount overlay on boot.
    Otherwise you would have to mount the patched version over the stock version manually after every boot. ;)
    Magisk's Overlay does not extent out to user data. That is why we use the mount command to overlay the modified apk.​

    ---

    There is still an issue with ReVanced not replacing the previous patched apk file and/or scripts when you update or re-patch an app.
    In a previous post I gave instructions on how to clear ReVanced YouTube for updating.
    Post #182

    Still an open issue.
    ReVancedManager - [ GitHub ] - Issue #425
    I happened to comment in the above issue what and why we use boot scripts and the mount command. ;)

    ---

    Hope it helps more than confuse. 🙃

    Cheers. :cowboy: