yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] mrSpider:
good news!
[Android Apps and Games] Kris6699:
What about those of us, who do pay for Google play music, but live in a place Google doesn't care about I.E Canada............... No Android pay, no YouTube red
[Android Apps and Games] Timmmmaaahh!:
VPN? lol.. Paying is only one option. Here in Belgium Google's choice of products and services is very poor as well. YT is my least favorite option for streaming.

Cooked with Resurrected bacon!
[Android Apps and Games] xybur:
Sometimes folks just want to run YT with the screen off (you know, for music playback or something). I had xposed when I was on 6.0.1,but when I updated to nougat I gave up on the background playback. Sometimes you just gotta let go~
[Android Apps and Games] kos25k:
https://xdaforums.com/android/apps-games/app-screen-backlight-off-xda-exclusive-t3037380
[Android Apps and Games] suua:
Can Anyonen kindly make a zip to flash via recovery??

Thank you
[Android Apps and Games] MetaruSonikkuX:
I tried both 64-bit APKs and neither blocked ads. The previous version worked.
[Android Apps and Games] cc101:
Something's changed, ads are getting through like it wasn't patched at all.
[Android Apps and Games] vdub12:
Starting yesterday the app started crashing. I noticed that it would work if I clear the data for the app but then as soon as I reboot the phone or the app closes on its own in the background it won't open again until I clear the data again. I updated to the latest modified apk with the same results and if I update to the official Google version it works great with no crashing. I wonder if Google has found a way to stop people from using the modified apk.
[Android Apps and Games] radz_:
Playstore just pushed an update 12.01.55, im sure you updated yours
[Android Apps and Games] cc101:
Nope, I'm not one of them.

Still on 47.55 and still getting ads.
[Android Apps and Games] vdub12:
Apk still force closing with latest version. Google YouTube works fine if I update to the unmodified version.
[Android Apps and Games] kryzeK:
No force close here, works perfectly on my 6P with Stock ROM + root. Thanks so much dev! You're fast...
[Android Apps and Games] vdub12:
Is there any way to troubleshoot this force close. Logs, etc. Seems like the only option is to use the factory YouTube app. Not sure what's going on. Nothing has changed and it does it with multiple different versions on the APK. Doesn't do it at all when updated to the YouTube from the app store.

---------- Post added at 08:09 PM ---------- Previous post was at 07:59 PM ----------

Signing out of the app seems to stop the force close. Must be related to the YouTube account in some way.

---------- Post added at 08:18 PM ---------- Previous post was at 08:09 PM ----------

Logging into a different account doesn't force close. So it's only happening on one specific account. When I remove and readd the account it still force closes. Any ideas?
[Android Apps and Games] kopitalk:
Flashable arter97's YouTube AdAway v12.01.55 (arm)(480dpi) anyone? I don't do other dpi as I don't use them.

Edit: Link removed as arter97 is going to release flashable zips.
[Android Apps and Games] kos25k:
install scoop xposed module.is the simplest log module.it automatically catches a log when anh app f.closes.
[Android Apps and Games] ubergeek77:
I've had no issues installing this, but as other members have mentioned, it's as though the apk isn't patched at all. I'm still seeing ads. I'm not sure which version exactly this started in, but ads are not being blocked in the two most recent releases - the one from today and the one just before that.
[Android Apps and Games] vdub12:
Here is the log of the force close. It seems to be related to Xposed but not sure how unless it's the AdAway code inside the modified apk.
[Android Apps and Games] Sam Nakamura:
Are you sure you switched off auto update individually for youtube on Playstore, otherwise the patched app gets overwritten by the unpatched version..

Uninstall and reinstall the patched version and make sure it's not automatically updated
[Android Apps and Games] ubergeek77:
Yes, I'm sure. And I just reinstalled it again to triple-check. Still getting ads. The permissions for the /system/app/YouTube directory are set to 755, and 644 for the .apk.
[Android Apps and Games] kopitalk:
Now this is a clue.

Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library "/system/app/YouTube/youtube.apk!/lib/armeabi-v7a/libcronet.so" not found
[Android Apps and Games] vdub12:
Yes, that's what I was thinking to but I'm not sure what to make of it. I found some talk about libcronet.so in xda in regards to building custom roms but thats about it. Not sure how its related or what could correct it. If it was like a linux system I would try and resolve the dependency but in Android I have no clue if that is even possible. Looks like it would require the apk to be modified.

The bizarre part is it only crashes when logged in to my primary account. Other accounts work fine.
[Android Apps and Games] Sam Nakamura:
Well, I have to check later on when I'm back home, haven't tried the new version yet..

Your installation looks correct, so it points to a problem with the patched apk..
[Android Apps and Games] arter97:
I'll make a flashable zip.

This will fix the FCs.

Also, wipe YT's data when you install my apk.

If not, ads may be still kick in.
[Android Apps and Games] ubergeek77:
Please do. If it helps, I'm not the only one with issues. According to other members, it seems like this happened very recently. Most likely within the last few updates.
[Android Apps and Games] kopitalk:
Did you extract the lib folder out of the patched apk? Mine working fine here; no ads, no fc.
[Android Apps and Games] vdub12:
I didn't mess with it at all. Just moved it to the /system/app/youtube folder and changed permissions. Everything worked great until yesterday. All of a sudden it started FCing. Nothing on the phone changed. It worked in the morning and didn't that night. Been using this modified apk for months. I was using ver 11.47 and during troubleshooting I tried 11.49 and 12.01.54 and 12.01.55. All had the same results. FC doesn't happen with the stock youtube app if I update from the app store over the modified apk system app.

It might be my install but it worked for months without problems. Removed the factory youtube system app. created a youtube directory in /system/app/. changed permissions for folder to 755 and apk to 644. Dev said he would make a flashable apk so hopefully that will fix it.
[Android Apps and Games] kopitalk:
I'm saying you need to extract the lib folder out of the patched apk so that youtube can find the lib files it needs.
[Android Apps and Games] vdub12:
Thanks. hopefully that will fix it.

I'm using a note4 so I have been using the nodpi arm32.

---------- Post added at 11:31 PM ---------- Previous post was at 11:24 PM ----------

Ohh. Is there a way to do that from the phone?

---------- Post added at 11:44 PM ---------- Previous post was at 11:31 PM ----------

Figured it out. ES pro opens them.

Still FC. What should the permissions to the lib folder be? 755? Should I extract the entire APK or just the lib folder?
[Android Apps and Games] mikeprius:
I also tried the 2 most recent. FC on YouTube.
[Android Apps and Games] kopitalk:
Permission for folders are 755, while all files 644. Extract just the "lib" folder and place it in /system/app/YouTube folder. Then under "lib" folder, rename folder "armeabi-v7a" to "arm".

Edit: If it still doesn't work, just wait for arter97 :laugh:
[Android Apps and Games] vdub12:
That did it. No more FC. Your a life saver. Thank you.
[Android Apps and Games] XeQtuR:
Is there a way to get a "blacked out" version of this YouTube, thanks.
[Android Apps and Games] Sam Nakamura:
I think most colors are hard coded, that is why theming the (more or less) official youtube app is only very limited possible.. Like back on cmte where only red turns black..
[Android Apps and Games] dexter9:
host file
[Android Apps and Games] user2k10:
Please provide a version for Note 4 640 dpi. Thanks for your work!

__________________
[Android Apps and Games] f41lbl0g:
For some reason, this new version still ended up showing ads. I went back to 11.35.60 in the old builds folder and everything is working fine.
[Android Apps and Games] arter97:
Try clearing cache.
[Android Apps and Games] f41lbl0g:
Installed it on a clean flash, then place in system/app/YouTube, gave permissions

The latest youtube that I installed showed ads, so I cleared cache but it still showed ads. Then I cleared cache again, deleted the 480 dpi version and installed nodpi version of latest, rebooted, cleared cache again and still ads.

Then I simply deleted it, went to a lower version and all is good. On a Oneplus One running android 7.0 if that matters.

Also, I had applied Adaway with the latest host file update in both scenarios.
[Android Apps and Games] daniel.Thames:
woww... thank you. awesome app. I don't really hate ad on Youtube but after playing 2-3 video, ad appear every 5 mins........really irritating. ;)
[Android Apps and Games] :
hello, first of all, thank you but is there another mirror site because i can't download the apk from the site :(
[Android Apps and Games] rony raj:
host file in android
[Android Apps and Games] honam1021:
Why we can't just resign the APK to stop Play Store from updating the app altogether? Does it break sign in or something else?
[Android Apps and Games] arter97:
Breaks Google account sync.
[Android Apps and Games] saadramiz:
Advice: use the titanium backup and detach YouTube from market, that way it won't auto update.
[Android Apps and Games] kalapapa:
I mean can't you just uncheck auto-update
[Android Apps and Games] saadramiz:
With that you can't press the update all button in the play store hence accidental updates might happen and then you'll have to do the process all over again.
[Android Apps and Games] kalapapa:
When I press update all it asks me if I went to skip those apps that I deselected from auto-update
[Android Apps and Games] saadramiz:
Good for you
[Android Apps and Games] tamboli007:
Working on Tesla N 7.0 ROM . Thank you :)
[Android Apps and Games] Midomad:
Really thanks i hope you will keep this awesome work for future updates.
[Android Apps and Games] SoulRipper:
This is absolutely brilliant! Nice mod, Sir.

However, I get a force close when uploading videos. 755/644 permissions set. I'm using CM13. Am I missing something?

Thanks!
[Android Apps and Games] kos25k:
On my Moto X Play i achieved dark theme while watching videos with substratum and dark stock theme inside app.Unfortunatelly my Z3 tablet doesn't support substratum.So i requested a full dark youtube theme from a new xposed module called personalize.let's hope..
[Android Apps and Games] davidheis:
Neither Adaway xposed module or this app work anymore. I think google did something to the way their ads work. The Legacy of Discord ads on every video is so annoying!
[Android Apps and Games] kopitalk:
I installed the latest apk on my TW MM and LOS 14.1 roms, and as I posted before, my YouTube has no ads, no fc; everything works as intended.
[Android Apps and Games] davidheis:
I'm so unlucky. The worst thing is that these ads I've been seeing are 30 seconds long and I've never seen any skip ad button on them! And they're almost exclusively misleading ads for Legacy of Discord game. :(
[Android Apps and Games] Sam Nakamura:
No ads here, everything works as expected... Sure it's not on your end?
[Android Apps and Games] davidheis:
I don't believe so. The youtube adaway xposed module was working before even on the latest YT app. Then suddenly a couple of days ago, I started seeing a kind of ad that seems much different from the ones I've been seen for years. I went back several versions back with an apk from apkmirror and it didn't work either. Tried reinstalling both the module and yt app.

After all that, I wanted to see if this patched apk worked. It doesn't. I've put the apk in /system/app/YouTube directory and the lib folder is also in it. Permissions for all files and folders are also set correctly.

I think this is a new ad format and Google is experimenting with it. You'll probably start seeing those as well soon.	:crying:
[Android Apps and Games] AndroidHtc101:
I see no ads at all on YouTube with latest apk.

I'm not going to update to the latest playstore version though
[Android Apps and Games] ubergeek77:
Happy to report that I'm not seeing ads on the latest update. Strangely, I was seeing ads right after I installed it, and I haven't touched anything since (haven't reinstalled, cleared data, logged out, none of that). But now I'm no longer seeing ads. Not sure what happened after a fresh install. If anything else comes up I'll be sure to mention it.
[Android Apps and Games] Ibuprophen:
Here's a flashable version of the one I use. I had also re-signed it to sever the app from the Play Store.

Removed...

Enjoy!
[Android Apps and Games] Timmmmaaahh!:
Cheers! Something went wrong though, it's probably me. Here's what I did:

1. Uninstalled YouTube

2. Rebooted to TWRP and flashed your zip

3. Cleared Dalvik/ART cache as instructed

4. Rebooted and now YouTube is there again but won't start (instant fc). Even with all permissions set, it won't run.

Here's the log of me trying to open the app: http://cloud.tapatalk.com/s/58827e498aa3f/2017-01-20-22-09-22YT.txt

http://cloud.tapatalk.com/s/58827ef93704b/Screenshot_2017-01-20-21-58-00.png?

Cooked with Resurrected bacon!
[Android Apps and Games] kos25k:
Maybevit needs to fully boot once to be fully uninstalled..
[Android Apps and Games] kopitalk:
It's always been arter97's work.

Edit: I didn't know that you can sign google apps apk with private keys...
[Android Apps and Games] awyeahh1:
guys, could someone please help out. I can't get this to work for the life of me.

Nexus 6, 7.0 rooted,

I did everything as in the guide.

uninstalled using tibu, followed by reboot.

created YouTube folder inside system/app

granted all possible permissions /checkboxes with ES,

put the according file arm32 480dpi,inside YouTube folder, reboot, = nada, no icons appears. what should I do? any ideas?

edit: nevermind folks, I figured I didn't grant all permissions.. it works perfect now.
[Android Apps and Games] Ibuprophen:
My deepest apologies to you all!

It's been a long time since I last used the YouTube app and I used to be able to modify a single entry within the YouTube app to detach it from the Play Store but, i looked at it again and YouTube now has a few additional entries that makes it more of a challenge to detach it.

Though possible, it would take some time to go through it and i really have a few other apps of mine i can't pull away from.

So sorry!!!
[Android Apps and Games] MJ999:
Does this apk work now ?

I tried re installing again and restarting the phone but it still shows ads

It used to work before

Sony z2 UB rooted
[Android Apps and Games] kyzn:
The apk has always worked for me since it came out.
[Android Apps and Games] Sam Nakamura:
Same here :good:

If issues occur its mostly permissions or play store update related for most users
[Android Apps and Games] kos25k:
dudes i make the install through solid explorer,have also y.t adaway module and adaway app..don't know which of these works...but i NEVER saw an add with all these.test with this way and see..
[Android Apps and Games] Timmmmaaahh!:
It's cool. I replaced the "signed" apk with the latest one from this thread in the YouTube folder and all is peachy again. Appreciate the effort though =)

Cooked with Resurrected bacon!
[Android Apps and Games] Rezus95:
CM 14.1, NEXUS 7 2gen LTE - doesn't work ..

P.S 755 on folder, and 644 on app.
[Android Apps and Games] Sam Nakamura:
Where have you placed the folder?

Are you on Kit-kat or older?

Model of device doesn't matter, only OS is important
[Android Apps and Games] apmm17:
Since today I started getting Ads.
[Android Apps and Games] Younex:
CM 14.1 is based on 7.1.1 Nougat
[Android Apps and Games] Sam Nakamura:
Sry, must sliped throu my mind :)

Folder?
[Android Apps and Games] Ibuprophen:
Removed by Popular Demand...
[Android Apps and Games] xk0niR:
Didnt arter wrote in a post he will provide flashable zips himself in the future?
[Android Apps and Games] Ibuprophen:
If I'm asked to stop by arter or by popular demand then i shall do so without a problem.

The flashable file is only the ARM32 because that's the version that I use on my device and wanted to help out those who also use that one too from my File Host Account.
[Android Apps and Games] cc101:
Did you get ops permission? If not, you could be in violation of the rules. Per section 12.
[Android Apps and Games] kopitalk:
... and you still put my userid in the script credit :eek:

Please don't get me into trouble.
[Android Apps and Games] allan1229:
Was still having ads with those app permission. Changed app permission to 777 and now no. ads. Hope that helps

Edit: just started getting ads again. Not sure what's going on
[Android Apps and Games] arter97:
Installer posted.

Please read the OP again.
[Android Apps and Games] kopitalk:
Awesome! I was thinking of creating something similar, but then my brain hurts :p Thanks arter97 :good:
[Android Apps and Games] KalayZz:
When I install this modded apk manually or through recovery my Youtube app gets broken.

So the first time I open it after I install it, it just works fine but when I close the app and remove it from recent apps it just says cannot connect or something in that line.

I have to remove the cache and the other thing from the YouTube app if I want it to work again.

Am I missing something or doing something wrong?

Please help me
[Android Apps and Games] KalayZz:
Thank you for responding but when I flash it the youtube apps gets deleted.

The apk file is in the phone memory in the download folder.

I have flashed it without renaming it and with both times it got deleted.

When I place it in manually I got the "error occured" message when I open the app after I close it.

So than I have to clear cache to get it working again but when I close it the error comes again.

I hope I could make you u understand me.

Edit : only on the newer version so after 11.39 I get the error and btw I'm using the nodpi version and I have a s7 edge if that is helpful info.
[Android Apps and Games] kopitalk:
If you do it manually don't forget to set correct permission for the files and folders, and then reboot your phone. Once boot up, go to apps manager to clear YouTube data.
[Android Apps and Games] KalayZz:
Some question if it doesn't work I will stick with the old version.

By folders (0755) you mean the "YouTube", "lib" and with the files (0644) you mean the "apk" and the "lib" files in the patched apk right?

The last question do I clear the data before I start the app after the reboot?

Cause if that is what I have to do I did it and it works till I close the app and remove it from recent apps after that when I reopen it I get the error ocurred thingy.

When I repeat it like above so clear data it works again till I close it again so its a loop :crying:

Thank you for helping btw.
[Android Apps and Games] kopitalk:
Before attempting again, dig deep to delete old youtube files in /system/app/, /system/priv-app/, /data/data/, /data/user/0/, data/user_de/0/, /data/dalvik-cache/, etc etc.
[Android Apps and Games] KalayZz:
Damn thats a lot of work ?

Can you tell me if that is the cause of the problem?

Because I had it working and it suddenly stopped working.

So I decided to update and with the new update it was the same.

If I use version 11.39 it works flawless and the original YouTube app also does work.
[Android Apps and Games] kopitalk:
I would suspect that when you update, somehow the data from 11.39 is not wiped entirely and it interferes with the updated app data. That's why I suggested hunting down all those leftovers before attempting to do another update.
[Android Apps and Games] KalayZz:
Damn stupid me ?

So I should remove those , reboot and than try again with the APK and lib files?

Thank you so much for helping me!

---------- Post added at 07:50 AM ---------- Previous post was at 07:22 AM ----------

Well I removed eveything related to YouTube but I can't get the apk in system/app it won't paste it in there.

Did I do something wrong?
[Android Apps and Games] Sam Nakamura:
Sure you have root privileges? As you are only allowed to modify this partition when your file explorer has root, otherwise the system refuses you to make any changes..
[Android Apps and Games] oakami:
The installer didn't work for me but I got this to work using a roundabout way on the OP3T. I'll make a step by step guide for future reference.

1. Flash the installer using the instructions in the first post

2. If you're like me, the youtube app should be completely removed. Go to the Play Store and install youtube but DON'T open it.

3. Install fx file manager and the root addon from play store

4. In fx, go to system (root)/system/app/youtube and copy the youtube.apk there

5. Paste the youtube.apk to system (root)/data/app/com.google.android.youtube-1, delete the base.apk there and rename youtube.apk to base.apk

6. Go to system (root)/system/app/youtube/lib/arm64v-87 (or whatever version you installed) and copy all the .so files

7. Paste these files to system (root)/data/app/com.google.android.youtube-1/lib and overwrite

8. Now you can open youtube and test

Can I request a background playback feature as well? It's now the last thing I miss from Xposed after installing this awesome app.
[Android Apps and Games] KalayZz:
Yea I do have root but my system partition was "full".

Thats why it didn't work.

Got it now but the newest update still doesn't work if I install it, it has ads and I did everything to get rid of it but couldn't get it so I went to playstore and removed YouTube and than the ads got away but still got the error occured thingy.

So I installed the older one back and it works but its old. ?
[Android Apps and Games] Sam Nakamura:
You should have uninstalled YouTube from Playstore before doing anything, after you installed arter97 version correctly you can't uninstall it anymore on play store as it is a system app..
[Android Apps and Games] KalayZz:
That is what I did I complety removed YouTube from my Phone.

Every place where I saw YouTube I deleted.

I had a problem putting YouTube apk from arter97 (thank you for this apk) in my system partition cause it was "full".

I fixed that problem and I did put the apk in there and rebooted.

I got the YouTube app and deleted the cache and data before opening.

I opened the app and TaDa I got ads, so I went and shut down my Phone and booted it up again and still ads.

So I went to playstore to unistall it and to my wonder when I opened the app again it wad without apps but I got this msg " error occured" .

So I went and got the 11.39 from arter97 (god bless him) and it worked.

So I couldn't get the new ones working, I may be to stupid for it.

Thank you for trying tho.
[Android Apps and Games] Sam Nakamura:
But you would be able to uninstall from PS except you didn't uninstall it or updated it unintentionally by PS (auto update)

Anyways at least it's working now
[Android Apps and Games] KalayZz:
Yea the older one is.

If you install it onto system/app you cant uninstall it right?

When I pressed unistall I still got arter97's version but with an error that I don't know what causes it because I'm not that smart with that kind of things.
[Android Apps and Games] Sam Nakamura:
If you still have issues, do again from scratch..

Uninstall all youtube related and follow instructions..
[Android Apps and Games] kaynpayn:
Not why but tried just the apk and it's showing ads right after replacing the file/rebooting. Play store isn't touching it, it says it needs to be updated and I disabled the auto update. I also have AdAway but that never did anything for YT ads. Something else is going on.
[Android Apps and Games] kyzn:
Don't uninstall using the Playstore, just delete the apk in the /system/app/YouTube folder. That's how I do it and never encountered any problems or ads when updating the patched apk.