yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] uudruid74:
I'm getting the same thing. Rather than disabling the ad, it disables the ability to skip it.

---------- Post added at 12:23 AM ---------- Previous post was at 12:22 AM ----------

How? Which APK did you download?
[Android Apps and Games] ettore88:
Hi guys.I have a Samsung S7 Edge rooted.I use last stock fw Nougat.Could you tell me the procedure step by step?

1)I downloaded YouTube Adaway ARM64.

2)I downloaded installer.

3)Before flash the installer in the recovery

What Do I Do now?

Should I uninstall YouTube apk system(original)?Or not?

Could you list me the procedure step by step?THX in advance.:)
[Android Apps and Games] uudruid74:
Are you playing popular videos with ads? Not all videos have ads. This worked for me until about a month ago.
[Android Apps and Games] Mikanoshi:
Not really, some ads are just unskippable) I also have such ads, this modded apk is not working at all... Tried to install both as user and system app, no difference (and there should be no difference).

Youtube AdAway was working back then...
[Android Apps and Games] Daniel376:
I now have a long add at the start of every video and i can skip them
[Android Apps and Games] Phrodini:
With the newest version?
[Android Apps and Games] Daniel376:
Yea. Newest in the downloads. It just removed the 5 second Cound down and skip button. Il try the other dpi versions
[Android Apps and Games] andre0005:
Did you update the app through the play store?
[Android Apps and Games] KreAch3R:
Sooo I didn't get a reply on what happens on these apks and what the patch entails and I decompiled them. According to the past two versions, you need to apktool each new version and (because of Proguard classes I suppose) you need to search all smali for some specific strings. The attached script will do it for you (linux), and output the files that need to be touched, so here's the script's code (run it from inside the smali/ directory):

scriptname=`basename "$0"`
grep -rl ".method public constructor <init>(Ljava/util/List;Ljava/lang/String;Ljava/lang/String" | grep -v $scriptname
grep -rl "/VAST/Ad/Wrapper/Extensions/Extension/AdXml" | grep -v $scriptname

In the two files, you need to manually do these two patches (and modify accordingly):

--- /home/kreach3r/Downloads/YouTube/youtube114354-orig/smali/kys.smali
+++ /home/kreach3r/Downloads/YouTube/youtube114354-adaway/smali/kys.smali
@@ -526,68 +526,9 @@
.end method

.method public static a(Ljava/lang/String;Lmoa;Lmrm;Lkzp;Lkyk;Lokt;)V
- .locals 7
+ [B] .locals 3[/B]

.prologue
- .line 291
- invoke-static {p0}, Lmaz;->a(Ljava/lang/Object;)Ljava/lang/Object;
-
- .line 292
- invoke-static {p1}, Lmaz;->a(Ljava/lang/Object;)Ljava/lang/Object;
-
- .line 293
- invoke-static {p2}, Lmaz;->a(Ljava/lang/Object;)Ljava/lang/Object;
-
- .line 295
- invoke-static/range {p0 .. p5}, Lkys;->b(Ljava/lang/String;Lmoa;Lmrm;Lkzp;Lkyk;Lokt;)V
-
- .line 297
- const/4 v0, 0x0
-
- move v6, v0
-
- :goto_0
- const/4 v0, 0x3
-
- if-ge v6, v0, :cond_0
-
- .line 298
- invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
-
- move-result-object v0
-
- const-string v1, "/VAST/Ad/Wrapper/Extensions/Extension/AdXml"
-
- invoke-virtual {v0, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
-
- move-result-object v0
-
- .line 299
- new-instance v3, Lkyw;
-
- invoke-direct {v3}, Lkyw;-><init>()V
-
- move-object v1, p1
-
- move-object v2, p2
-
- move-object v4, p4
-
- move-object v5, p5
-
- invoke-static/range {v0 .. v5}, Lkys;->b(Ljava/lang/String;Lmoa;Lmrm;Lkzp;Lkyk;Lokt;)V
-
- .line 297
- add-int/lit8 v1, v6, 0x1
-
- move v6, v1
-
- move-object p0, v0
-
- goto :goto_0
-
- .line 310
- :cond_0
return-void
.end method

--- /home/kreach3r/Downloads/YouTube/youtube114354-orig/smali/ohp.smali
+++ /home/kreach3r/Downloads/YouTube/youtube114354-adaway/smali/ohp.smali
@@ -1555,6 +1555,10 @@
.line 573
invoke-direct {p0}, Ljava/lang/Object;-><init>()V

+ invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
+
+ move-result-object p1
+
.line 574
invoke-static {p1}, Lmob;->a(Ljava/util/List;)Ljava/util/List;

I'm not aware why the bolded change happens.

These were the only two changed files that I found. I haven't tested these changes because no new YouTube apk has been released yet but I wanted to share my findings. If I made mistakes on what I've found, anyone or the OP, please correct me. I'd like to learn.
[Android Apps and Games] Daniel376:
No, I removed the original and just followed the install instruction for the newest in the download, arm32 nodpi. it loads and i can watch videos but the add skip button is missing
[Android Apps and Games] E30Nova:
Tried installing the nodpi version on a 7.1 rom on my 6P and it fails and says "not installed because the file is corrupt."
[Android Apps and Games] andre0005:
Check the first post on how to install the app. ;)
[Android Apps and Games] E30Nova:
Thanks for that, don't know how I missed that.

I'm unable to change permissions with Root Browser, though. I'll see what I can do, hopefully being on 7.1 doesn't cause me any problems...
[Android Apps and Games] andre0005:
Try solid explorer. Working fine for me running 7.1.
[Android Apps and Games] E30Nova:
Hmm, I used ES explorer and was able to create the folder and change permissions. Copied the apk into that folder and rebooted, but YouTube isn't in my app drawer...

Gonna change permissions on the app and reboot and see what happens...

EDIT: Yup, changed the permissions and now it's in my app drawer. Thanks!
[Android Apps and Games] keen36:
just a heads-up: i tried creating a flashable zip with titanium backup and while it actually works, it doesn't take care of the libraries, so 360 video crashes afterwards. it also uses the "old style" and puts the apk directly in /system/apps and not in a separate subfolder.

now that i think about it, maybe the best solution in most cases is to just add an addon.d script (on cm based roms) to make the app survive dirty flashing.
[Android Apps and Games] andre0005:
Would you care to explain what exactly you did in tibu to achieve this?

Let us know if your approach using an addon.d script works for you. Would definitely make my life a lot easier.
[Android Apps and Games] keen36:
go to

batch actions -> create update zip from app-data backups -> deselect all except youtube

the zip will be created in sd root IIRC. if you flash it via recovery, it will flash the apk and also flash titanium backup uselessly (that doesn't hurt though). but as i said, the way it installs youtube is suboptimal, so alternatively you should maybe look into the zip someone nice posted above and replace the apk therein with the newest one (i don't know if it takes care of the libraries, though).

the addon.d script shouldn't be too difficult to create, the problem is that i use slim revisited 7.1 gapps at the moment and the maintainer has stated that dirty flashing isn't recommended with those gapps currently. who knows, maybe cm 14 broke the backup scripts somehow? idk :confused:
[Android Apps and Games] sino8r:
Some folks are saying that they're having trouble with YouTube apk showing up in their app drawer after pasting it into the /system/app folder. The OP states a step that maybe throwing y'all off. There is no need for an additional folder within /system/app. Not sure why he mentions this... Correct me if I'm wrong here. No offense meant. Try to just paste it, rename, and change permissions directly in /system/app folder instead. Of course, delete the old one first. Also, you need to uninstall the YouTube app from /data/app folder. That's where the system apps update and other user installed apps go. Should be able to do that automatically. If you didn't do that first, there maybe an old apk sitting in the /data/app folder. Also, it could be downloading the wrong type (variable by cpu architecture). Make sure and verify that as well. Hope that helps!
[Android Apps and Games] kyzn:
I've always done it system/app/YouTube and haven't encountered any issues. I've never tried system/app. The OP way is reasonable as browsing through the system/app directory, you see the same pattern used for system installed apps. Of course I don't have YouTube installed by default as I am on a custom ROM. I walked through another user here using the system/app/YouTube way and his installation worked fine.

644 on folder, 755 on app. System installed YouTube without ads.
[Android Apps and Games] sino8r:
Weird.... Mine won't show unless it's in system folder directly. I tried priv-app as well just for sh!ts and giggles. I wonder why the op states to make its own folder anyways? It could be for library files or scripts. I haven't broken out smali in a few years and maybe tempted to do so for fun. Could be the Android version as well. I'm running kitkat still on my Note 4 so it could be the reason. I guess we'll need the experts to weigh in on this if they get the chance. I'm curious to find out...
[Android Apps and Games] Phrodini:
Yeah.. Mine works just fine using OPs instructions
[Android Apps and Games] wyvernaxe:
755 folder 644 apk reboot thats it.
[Android Apps and Games] JAYNO20:
I use youtube for hours a day sometimes and I never see ads.
[Android Apps and Games] elkadeho:
Titanium backup it's needed and if nothing works it might help to flash an other Rom/flash Rom again/new version .. This works for me once I get ads every month or so

Btw: when I just flashed a new Rom the first video showed ads and from there on they got blocked, quite weird, but hey, it works
[Android Apps and Games] gmanos06:
Just load it in the "module" tab of magisk manager.

BTW it works perfect for me.
[Android Apps and Games] akg2002:
I am using this from time. Till now i never get ads
[Android Apps and Games] tintn00:
I recently updated my ROM on both my tablet and phone to 7.1.2. For some reason when I run the installer through TWRP, the youtube app no longer shows up in my drawer as if I never installed it. Can someone please help with the installation process? I've been installing this app regularly for well over a year whenever I update my ROMs without issues until now. Please advise.
[Android Apps and Games] storm68:
Odd.. I just discovered this followed op and no problems
[Android Apps and Games] gueschmid:
I have a Galaxy Tab A (T580). I updated also to a extremly debloated Nougat-Rom. I tried to install this, but have no succses. The installion found the APK and wrote some hints, but in /system/app there is only a empty youtube-directory.
[Android Apps and Games] Shantanu:
I confirm that it's working just fine on YouTube 12.21.57

My ROM: Resurrection Remix 5.8.2 based on Android 7.1.1

With Background playback.
[Android Apps and Games] BobbyJones23:
Works just fine for me and has been for months now. I've got RR 5.8.3 based on 7.1.2 and never had any ads. So not sure why it's not working for some.
[Android Apps and Games] aser_elhbayeb:
All versions till now has worked very well.
[Android Apps and Games] storm68:
I agree. All versions worked till now
[Android Apps and Games] zappomax:
Thx a lot!!!!!!!!!!
[Android Apps and Games] BaTarrY:
New YouTube update is on apkmirror: 12.23.57.

Take your time and make this mod great as always.
[Android Apps and Games] EternalFlame:
Hmm can´t get this to work,

what i did_

- uninstalled latest YT on my device (Nexus 6 / ROM : AEX 7.1.2)

- downloaded :

apk installer.zip

youtube_12.19.56-1219563300_minAPI21(armeabi-v7a)(nodpi)-adaway.apk

com.google.android.youtube_12.19.56-1219562300_minAPI16(armeabi-v7a)(nodpi)_apkmirror.com.apk

- put them all under

/root/sdcard/download (when i´m opening the folder via amaze file explorer the path is called /storage/emulated/0/Download tho)

- booted into recovery

- flashed installer.zip

- rebooted

= nothing installed

When i´m installing this particular yt version (12.19.56) manually i got ads and no background playback.

meh :silly:
[Android Apps and Games] kepaware:
Same here
[Android Apps and Games] EternalFlame:
I found the culprit, i was using

youtube_12.19.56-1219563300_minAPI21(armeabi-v7a)(nodpi)-adaway.apk

com.google.android.youtube_12.19.56-1219562300_minAPI16(armeabi-v7a)(nodpi)_apkmirror.com.apk

but both need to be 1219563300, so, now i got it installed and have no ads... yay, but, background playing still does not work, hmm :p
[Android Apps and Games] fake2die:
Because that patch version only support adaway..

Go to iYTBP thread if u want background playback too..
[Android Apps and Games] Seif.Kemo:
is it possible for u to make and old version 11.06.54 ad free ? because i like the old youtube where there is no arrows for next and previous video and it was much better :D just asking if u can
[Android Apps and Games] Xellotath:
Is there no removal steps / uninstaller ? I could uninstall regular Youtube app, this one I can only Disable or Force Stop

NVM used system app remover
[Android Apps and Games] TheDemon12:
[MENTION=4898097]arter97[/MENTION] waiting for the latest update
[Android Apps and Games] twe90kid:
thanks!
[Android Apps and Games] orphicone:
add me to the list of 'suddenly stopped working'. i tried reinstalls, rolling back google play services, detaching from market, older versions of this modified apk, basically everything i could find in the last 50 pages of this thread but nothing worked EXCEPT logging out of youtube. LOGOUT -- no ads. Log back in -- ads come back immediately. i also tried the modified version which allows backgrounding, same thing. Something fishy is going on. I have samsung tab s2 t713 for reference on nougat. Anyone have any other ideas?
[Android Apps and Games] Timmmmaaahh!:
And I've been waiting for Anna Kournikova to return my calls but we both know forcing these things doesn't help anyone, right? Don't ask for updates, it's not polite around here.
[Android Apps and Games] Xaif:
Wbo is Anna Koirnikova?
[Android Apps and Games] AndroidHtc101:
Timmmmaaahh I've got Anna Kournikova number if you want it!:)
[Android Apps and Games] ChazzMatt:
YouTube could give you a quick answer...
[Android Apps and Games] eliaspizarro:
does atv package exist?
[Android Apps and Games] britchel:
Then I'm going to use that version. Can't stand background play
[Android Apps and Games] tooandrew:
I'm also on that list. Lg v20, running nougat. tried both as manually replacing the apk and as a Magisk module
[Android Apps and Games] fake2die:
Wait,,if u don't want baground playback,,use this thread version..

iYTBG support adaway and baground playback,,

This thread YT only support adaway..
[Android Apps and Games] Taiki321:
Samething here, it worked for months without any problem. Today I got those lovely ads again. Nothing on previous pages worked for me
[Android Apps and Games] orphicone:
for what it's worth i finally tried MicroG + OGYoutube (ad away version) and it is everything I could ever want (ad free dark themed youtube) that is currently working fine. The non-root version installs right alongside existing youtube and doesn't require anything special (except microG) I made a throwaway google account to login to it and everything is kosher (though login isn't required). I think the only benefit to this version is it is newer which I don't care. So, consider that. Check XDA thread titled "[MODULE] OG Youtube AdAway for magisk" which has non-magisk APK files in it (must find MicroG 1.2 separately). In the original thread, author has discontinued development and pulled links.
[Android Apps and Games] Razerman:
I don't have experience on this threads APK but I thought I would share my experience with this ads problem.

I first started looking on if I could somehow add the background play to the youtube APK because I don't have my phone rooted and can't install the xposed module. Integrating those changes to the APK was easy but because the youtube app is already installed as a system app, I couldn't install the modified one. So, I had to rename the APK, that was a bit harder but I managed to do it. Well, the renaming broke the sign in possibility so I started googling around and found out that OGYoutube managed to fix it with modified MicroG. Little modifications here and there and BOOM, I could log in and I had the background play version along side the official youtube app :). I was also surprised that this APK didn't have any video ads either even though all I did was add the changes made with YouTubeBackgroundPlayback xposed module. The version in question at that time was 11.35.60.

I had been using that for quite a while but a few weeks back I thought about trying an update since I really liked the new comment system. After doing those changes to the version 12.17.54, everything worked great except I had those same unskippable ads that people are talking about here as well. I went with the ads for a few days and thought that I'll probably have to revert to the previous version "tomorrow" to get rids of the ads. But then on the next day even though I did nothing, the ads were gone with the new version as well?_? Haven't had a single ad since that and I've been using this version for a few days now.

I must wonder what kind of ads are those since they seem to be completely random?
[Android Apps and Games] laura almeida:
Check your PM
[Android Apps and Games] xXRapToRiXx:
Today out of nowhere ads returned.... I did not update the app and I checked the site for a newer version but nothing. I will reflash it but my hopes are low...
[Android Apps and Games] willysusilo:
Now this app can't block ads, I have tried older versions and ads still appear

I think youtube has changed something to make ads appear on adaway patched apk
[Android Apps and Games] sagrgar:
The Amazon prime ad was still showing.
[Android Apps and Games] TheUndertaker21:
Ads seems to be showing now
[Android Apps and Games] firemaker911:
Hello To The Android-Users.

One Question:

When I Unlock The Bootloader Of My

"Moto G4 Play", Root My Phone

And Update To The Latest Nougat

Of The Resurrection-Remix-Rom, The

StandAlone-Applications From The

Xposed-Framework/Xposed-Installer

(First Side Of This Thread)

Will Work Like A Charm??

P.S: Xposed With Nougat Incompatibility
[Android Apps and Games] yaesudx:
Ads are Back nooooo
[Android Apps and Games] ∆ P:
If Anyone is having trouble while installing YT with no ads+ background play, Watch this video

[youtube]npFNqrOC9i4[/youtube]
[Android Apps and Games] K-alz:
Never mind. Thanks for this
[Android Apps and Games] anon1135:
works thx
[Android Apps and Games] Taiki321:
This does not work for me, i don't get the youtube app...
[Android Apps and Games] shawndak:
These updated links are awesome!!! Thanks!

To install with arter 97's installer you must remove background play from the app name.
[Android Apps and Games] ∆ P:
May be you have selected some wrong apk version...

If don't know your device DPI try nodpi apk
[Android Apps and Games] shindiggity:
Probably a dumb question but how do we know what the newest apk is, don't see them dated
[Android Apps and Games] AndresF1406:
There's no xposed modules. Just apks... But yes, it works fine on Nougat.
[Android Apps and Games] TheDemon12:
Though I never forced anyone here. Just asked him to update whenever he was free
[Android Apps and Games] Timmmmaaahh!:
Of course not, I understand. Asking for updates is just something that is easily frowned upon. People will confirm this in every section of XDA, let's call it the unofficial "NO ETA" rule. Asking for an update, even with the best intentions, lays some form of pressure on the dev and we want to avoid that so they can express their creativity on their own pace. If I may, I would like to suggest visiting the iYTBP thread, it's based on [MENTION=4898097]arter97[/MENTION]'s work and includes background playback as an added bonus. It's being actively kept up-to-date by several contributors. Is this place amazing or what! :D
[Android Apps and Games] :
deleted for illegal content
[Android Apps and Games] SegAgeS:
I'm having a problem where my watching history is not showing. it shows what i've watched on my computer but not my phone
[Android Apps and Games] K-alz:
Could anyone please tell me which apk I need to download for nexus 6p (running s.i.x ROM)? I've tried arm64, arm32, x86 and (all nodpi) and literally nothing worked.

Thanks
[Android Apps and Games] dillalade:
Same I just followed that YouTube instruction link.

However upon restart after flashing the mod the YouTube app is not anywhere to lunch from (however it was installed in my system/app partition.)

No idea what to do to get this to launch.

Advice anyone (Sony xz, DPI=480)
[Android Apps and Games] K-alz:
I went to this thread and it worked for me. You'd have to manually put the YouTube app in your system/app. Just follow instruction in this thread and you'll get it. Make sure you download the right YouTube apk for your device.

https://xdaforums.com/android/apps-games/app-iytbp-injected-youtube-background-t3560900
[Android Apps and Games] wkobaint:
This mod YouTube really works on my miui8!!

Thanks bro!!!

Just use YouTube version from mod and it's work!
[Android Apps and Games] baxtex:
Been using this for a couple for a month or two without any problems. Yesterday the app started showing ads again. I removed it with system app uninstaller and reinstalled the latest, still having the same problem. I haven't updated the app from the store and I'm running Resurrection Remix on latest Nougat.
[Android Apps and Games] dymosilesia:
On the first time background use. There shows Youtube Red notification. Does Google know that you are using this app on your account and you didnt pay for Red? Can they ban our account or something for "hacking" (xd) YT Red?

//Edit: Background works but still can see ads (e.g. stupid 30 secs android pay).
[Android Apps and Games] zelendel:
Could they? Yup and be completely in their rights. Will they though is the question. I doubt it unless ad revenue takes too big of a hit.
[Android Apps and Games] ag43:
Is there a 560dpi version?
[Android Apps and Games] steve4982:
Fixed, followed instructions from a previous post :)
[Android Apps and Games] mondohow:
I don't remember seeing a 560 dpi version on apkmirror. Maybe the nodpi version would be best for you in this case.
[Android Apps and Games] ag43:
it doesn't work at all... the youtube app disappeard after flashing.
[Android Apps and Games] van_gogh:
Lol it doesn't work for YOU. Because you didn't read instructions.
[Android Apps and Games] ag43:
off course i meant it doesn't work for me. i've read the instructions and followed to the latter. no youtube app.
[Android Apps and Games] bbN:
download both latest zip as well as installer, unzip YouTube apk from zip ( mostly u missed this part ;) ) place both installer zip and unzipped YouTube apk in ur "downloads" folder, reboot recovery flash installer zip.
[Android Apps and Games] ag43:
a. i've done it. it doesn't work! stop assuming that you know best.

b. at least give the right insturctions... it should be "/sdcard/download" and not "downloads" folder.
[Android Apps and Games] Tommydorns:
Have you tried moving it System/app with a file explorer with root capabilities and fix the permissions?

Edit: Providing information like phone model and OS would be more helpful than coming off like a jerk! Obviously, no one is required to help you!
[Android Apps and Games] rahnstephens:
ad removal

is there a way to remove the ads on you tube on my laptop?
[Android Apps and Games] steve4982:
Errr.. Google Adblock and you can install a chrome/firefox extension etc.

As for android just follow the steps, worked for me although I had to copy the apk into the system app Youtube folder as Youtube.apk then reboot.
[Android Apps and Games] linsalata28:
Is the latest update out? I just hate the play store update popping up all the time.

If so can someone please post a link?

It would be much appreciated. arm64

Thank you!
[Android Apps and Games] ag43:
sorry. it gets annoying that after 3 times that i wrote that i've read the instructions and it didn't work people still treat me like an idiot. anyway - i've used magisk module and it works now.
[Android Apps and Games] AndroidHtc101:
I highly recommend "Ublock Origin" extension for Firefox and Chrome. Goodbye ads on the Internet :)