yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] wanam:
Okay, try attached file and upload your xposed logs if the problem persists.

I added both packages support, but i didn't have time yet to digg into its sources, and i can't test it.
[Xposed Framework Modules] Mike B.:
[MENTION=3562083]wanam[/MENTION]: I believe the attached file is the "YouTube for Android TV 1.0.5.5.apk" [MENTION=5595610]GabbyWC[/MENTION] is referring to.
[Xposed Framework Modules] GabbyWC:
Hey, I'll give that update a try and report back. It appears that I unintentionally uploaded an older version of YouTube for Android TV (v1.0.4.6) because the current v1.0.5.5 APK was actually in a completely separate folder. I'm sorry that I didn't catch on to this earlier. Do you still want me to upload the latest APK and the YouTubeLeanback.odex file?
[Xposed Framework Modules] wanam:
No need to upload it, i can get it from the PlayStore, just give a try and upload your Xposed logs.
[Xposed Framework Modules] GabbyWC:
I installed your test version, enabled the module, rebooted the device and here's what the Xposed log shows. I wasn't able to copy-and-paste the text but I was able to take a screen shot.
[Xposed Framework Modules] GabbyWC:
Based on its file size, I believe that may be an older v1.0.4.6 APK of YouTube for Android TV which I mistakenly uploaded a couple of days ago. The latest version (v1.0.5.5) is located in the device's /data/app/com.google.android.youtube.tv-1 folder and can also be downloaded from Google Play at https://play.google.com/store/apps/details?id=com.google.android.youtube.tv.

EDIT: You're right. I was going off the zip file size (thinking it wasn't compressed) but the latest APK is indeed 8.62 MB in size. Sorry for the confusion.
[Xposed Framework Modules] Mike B.:
That IS the correct 1.0.5.5 version full apk. FYI, an apk is actually already a ZIP in disguise, but In any case it seems that [MENTION=3562083]wanam[/MENTION]'s brute force method used for the full YouTube app is unable to deal with that AndroidTV version so far.
[Xposed Framework Modules] GabbyWC:
Yup, I realized my error just after I made my post and didn't see an erase option so I edited my post instead. The last line of the Xposed log I uploaded is indeed where things stand at this point.
[Xposed Framework Modules] wanam:
Then it has a different way to manage its ads, FYI it's not a full brute force method, i rely partially on brute force on a limited context to avoid anr craches, i will check its sources tomorrow.

Edit : do you still get a hidden skip button while playing ads?
[Xposed Framework Modules] GabbyWC:
Thanks for your work on this so far, wanam. I don't know if the AdAway software I have installed on my rooted Nexus Player has any effect on the number of video ads which appear (because I don't see them very often) but if you're able to handle all of them through your module, that would certainly be appreciated.

---------- Post added at 08:50 PM ---------- Previous post was at 08:38 PM ----------

When a video ad does come up before the video I want to watch, there's a skip ad button that can be clicked on after 5 seconds of viewing the ad. I've noticed that the "Good Mythical Morning" comedy videos on YouTube randomly have ads in front of them so those are what I test with on Android TV.
[Xposed Framework Modules] Mike B.:
If you have any questions or concerns about AdAway, feel free to search the AdAway thread where we have discussed YouTube issues at length before, but AdAway can only deal with ads that are served via local DNS resolution (i.e. Invoked with a server name) and redirected by your /system/hosts file. It can't do anything about ads invoked via numeric IP or embedded in videos which is why the YouTube Adaway module is necessary, at least for the full YouTube app. Use the AdAway DNS Request Log to see what server names, if any, your application uses to fetch ads.
[Xposed Framework Modules] GabbyWC:
I appreciate the suggestion but this isn't currently possible on Android TV devices running Android 5.1 or higher because the operating system inexplicably hides 3-dot / hamburger menus in most apps (including AdAway).
[Xposed Framework Modules] Mike B.:
This is clearly OT here but I'd be glad to discuss the issue in the AdAway thread. I'm curious to find out how you can select AdAway source lists or set preferences if you can't even access the menu... ;)
[Xposed Framework Modules] mattspew:
I use DroidMote for anything that doesn't support the remote. But if the 3-dots are missing they're missing......
[Xposed Framework Modules] explorer-10:
Any updates regarding YouTube adaway for latest YouTube v10.x.x?
[Xposed Framework Modules] marknoll:
Running this version and all is good here. Good job!!
[Xposed Framework Modules] wanam:
I know that, but is the button still hidden with the test version i uploaded?

What the problem with YT10.x.x?!
[Xposed Framework Modules] wanam:
A new update 2.6.0 has been pushed with YouTube TV support.

I don't mean to be rude but I will NOT reply to any bug report without xposed logs.
[Xposed Framework Modules] GabbyWC:
Hey, I tried out your latest version and here's what I noticed:

* v2.6.0 is available to download through Xposed Installer on my Nexus 5 but only v2.5.2 was showing as available for download through Xposed Installer on my Nexus Player.

* I downloaded v2.6.0 from the Dropbox link on your web site and installed it manually, enabled it in Xposed and rebooted my Nexus Player.

* I have attached a picture of my latest Xposed log. There's no brute force error (or any error message that I can see) this time around.

* Unfortunately, however, video ads are still appearing in YouTube for Android TV. :( I have checked and made sure that both of YouTube AdAway's removal options are enabled.

* As expected, I'm not seeing any video ads in YouTube v10.28.59 on my Nexus 5.

EDIT: You had a question about the skip ad button so I attached three pictures which show how the interface looks when a video ad is displayed on the Nexus Player.
[Xposed Framework Modules] wanam:
Try this test version.
[Xposed Framework Modules] GabbyWC:
Okay, I went through the usual steps and tried that version out but video ads still appear on the Nexus Player.
[Xposed Framework Modules] wanam:
Okay, one more try.

FYI i don't own an Android TV to test it, so i'm just trying to analyze YT pro-guarded sources.
[Xposed Framework Modules] GabbyWC:
This test version is looking good! I updated, went through the usual steps and have tried about 25 YouTube videos so far without a single video ad appearing on my Nexus Player. :) If any other Nexus Player owners want to give it a try and report their results, now would be a good time to start.
[Xposed Framework Modules] wanam:
Great, i pushed 2.6.1 to the Xposed repo to get more reports.
[Xposed Framework Modules] GabbyWC:
Excellent work, wanam. The YouTube AdAway module is the reason why I installed Xposed on my Nexus Player in the first place so it's nice to see it working.
[Xposed Framework Modules] Xshad3:
Hello guys,

I have problem with downloading 2.6.0 version.
[Xposed Framework Modules] Mike B.:
The latest version is 2.6.1. If you can't see it yet in the repository, get it from here or from [MENTION=3562083]wanam[/MENTION]'s Dropbox.
[Xposed Framework Modules] mattspew:
You guys rock!!

Thanks a bunch guys! :highfive:

You've completely made my day adding support for the Nexus Player; just spent a good 30mins testing Youtube and didn't see a single ad! Fantastic! I use the Nexus Player a lot for music and there was nothing worse then song song song annoying ad song song song same annoying ad song song song same annoying ad song song song same annoying ad song song song same annoying ad .

Sending some beer money your way!
[Xposed Framework Modules] hakarune:
I'm having a bug issue when using chromecast. I'd there's an ad chromecast plays it like normal, but with this module enabled the skip button is gone on the YouTube app and I have to grab a second device to redo the video and be allowed to press skip. Worst part of the problem is when there's really long ads (5+min). Thanks.
[Xposed Framework Modules] Rakuu:
Ive never been able to skip ads on chromecast, for me the skip button shows on the tv, im using an older YT version though(tbo), i didnt even know they were skippablw yet.
[Xposed Framework Modules] wanam:
With 2.6.1 update?
[Xposed Framework Modules] hakarune:
I will have to check on it. I didn't have the update installed yet. Updating now. Will report back later.
[Xposed Framework Modules] DJ_Casper:
Sometimes I see messages like "Suggested videos". Can it be fixed?
[Xposed Framework Modules] googchrome:
Excellent work. Thanks !
[Xposed Framework Modules] sgloki77:
Installed 2.6.1 update, and ads still present while streaming through chromecast, no way to skip them either, the skip button shows up on the tv screen but not on the phone

off topic, but youtube ads are getting ridiculously long(2-6 mins)
[Xposed Framework Modules] hakarune:
[MENTION=3562083]wanam[/MENTION] yeah it doesn't let me.

screenshot
[Xposed Framework Modules] marknoll:
Would it be advisable to update my 2.5.3 to your current version?
[Xposed Framework Modules] Mike B.:
Unless you have trouble with streaming devices such as Player/AndroidTV/Chromecast there's no overriding reason to update, but then it can't hurt... ;)
[Xposed Framework Modules] Ilkinansr92:
Anyone else getting this msg on Note 4 running lollipop only think I can think of is because we have to install exposed framework with recovery and I do have it installed as other modules work.

Sent from my Samsung Galaxy Note 4
[Xposed Framework Modules] Mike B.:
This has been addressed MANY times in this thread. Make sure you have the current installer (alpha4) and framework (V5 Krait), then relax! ;)
[Xposed Framework Modules] Ilkinansr92:
Haha figured it out right after I posted, thnx for reply tho!

Sent from my Samsung Galaxy Note 4
[Xposed Framework Modules] martinisok:
I just Uninstalled updates for the youtube app and now I don't get ads through chromecast. Now running 10.14.56.
[Xposed Framework Modules] marknoll:
OK. Updated and runs fine
[Xposed Framework Modules] Rakuu:
I'm running 10.25.55 blacked out, and youtube adaway 2.6.1, and i'm still getting unkippable(skip button shows on tv) ads.
[Xposed Framework Modules] sgloki77:
I can confirm this works, running 10.03.5 after uninstalling updates , no ads at all [emoji41]
[Xposed Framework Modules] oroboros74:
Would you suggest uninstalling *all* YouTube updates to avoid the unskipable ads on Chromecast issue, or is there a version of YouTube that is more up to date that still would work.

In short, what version of Youtube would you suggest having installed?

EDIT: OP says that there's YouTube 10.11.55 support, would this be last suggested update?
[Xposed Framework Modules] henrik.dk:
not working with youtube 10.32.54. something is broken sadly.
[Xposed Framework Modules] wanam:
Tested and working fine here.

Post your xposed logs.
[Xposed Framework Modules] Thomas_BA:
Well the module is working fine when watching videos on the tablet, but with chromecast the add videos I have to watch in full length.

Can somebody upload the latest working YouTube app please?

Thanks
[Xposed Framework Modules] henrik.dk:
Thanks. I will give it a try when the ad popped up.
[Xposed Framework Modules] ElBeaner:
On YouTube version 10.31.55 I'm getting embedded ads in the videos(the pop up ads)
[Xposed Framework Modules] mattspew:
Can anyone confirm which version of YouTube works with the Chromecast? Currently on 10.31.55.

Getting very very very long unskippable ads too, but only when using Chromecast.

Phone, tablet and Nexus Player all working perfectly without bloody ads.
[Xposed Framework Modules] DannyXY_:
Please help

I'm not sure why it says that. Please help!
[Xposed Framework Modules] Thomas_BA:
Same here with a Samsung Galaxy Note 10.1 with Lollipop.

Everything works but not when casting. Have to watch the adds in full length. Can not even stop them after some seconds. What ever YouTube version I use.
[Xposed Framework Modules] Mike B.:
With all due respect to [MENTION=3562083]wanam[/MENTION], I'm not sure how he could stop ads that are directly sent to the Chromecast. My limited experience with the official YouTube app is that when you use it to send a video to the Chromecast, the stream no longer comes in through the phone and you can even power it off completely without any bearing over what the Chromecast continues to display, ads and all.

AndroidTV/Player and other devices may behave differently but at least that's what observe on the Chromecast with any recent YouTube app version. Mirroring or casting the output of the YouTube app to the Chromecast with AllCast or a similar product (as opposed to using YouTube's internal mechanism) does allow control over ads, video, and audio, as expected.
[Xposed Framework Modules] PhoenixNLx:
Same problems here on chromecast. Full ad lengths.. Not watchable anymore...
[Xposed Framework Modules] mattspew:
I'm pretty confident you're right; however I think the Xposed module is changing how the Chromecast communicates with YouTube.

When I'm home later I'll disable the module and test casting; I'm pretty sure the YouTube app and Chromecast will behave differently and allow the skipping of ads.
[Xposed Framework Modules] Iceman248:
Where can I find the Settings at? When I tap on the Module, it says that it has no interface. It works fine, I just can't find the settings page.
[Xposed Framework Modules] egingell:
Why do you need Settings? There are no options.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] Simba501:
Open it in the app drawer. There are a few options.

Sent from my Nexus 7
[Xposed Framework Modules] Iceman248:
That's the thing. I can't find in there. I've looked in multiple places. I don't see it anywhere.
[Xposed Framework Modules] wanam:
It's the end of the month and my data limit is almost reached, so I can't debug with videos, but you can PM me an example of both videos, I will check them later.
[Xposed Framework Modules] wanam:
I took a look at the YouTube App sources again, and it seems the country restriction is done on the server side, the restricted countries list used inside the App seems to be used as presentation layer only, same thing for the platform (mobile/desktop) restriction, if the video owner didn't enable the syndication you won't be able to see it on your mobile phone.

Yes, we can fake the Geo-location and the plate-form values while fetching the video information from the server, but i think this will cause many regressions, that's why i think i will stop here, let's keep it an ad hack only :) .

By the way i made an update to get ride the the dead hooks, and splitted the brand feature to two parts (some of my friends still want to keep the videos suggestions):

- Hide Logo

- Hide videos suggestions
[Xposed Framework Modules] karanrajpal14:
Awesome! Thank you! Is there any way to turn off HD mode by default? I have a limited bandwidth connection so I rarely watch videos in HD. But turning it off everytime I open the app is kinda annoying. Sometimes I just forget. Is there anything that can be done?
[Xposed Framework Modules] wanam:
In my todo list.
[Xposed Framework Modules] karanrajpal14:
Great! And screen off audio playback too? If possible! Thanks again!
[Xposed Framework Modules] wanam:
This is a built-in feature on the official YouTube, It can be easily enabled with xposed it but it's not ready for use yet.
[Xposed Framework Modules] Vagelis1608:
?

Sent from my GT-I5500 [CM7.2]
[Xposed Framework Modules] wanam:
Okay, I built a Froyo/GB compatible version, it has the same features as the main one, but all the 3 options are applied when the module is active.

Try it and let me know if you get any issues.
[Xposed Framework Modules] Vagelis1608:
Thanks a lot :) !!!

If you figure out how to make the options changeable, please do so if you have the time :) .

Sent from my GT-I5500 [CM7.2]
[Xposed Framework Modules] jfriend33:
Wasn't this issue fixed on the latest update? Is there anything else I need to be doing?

Thanks
[Xposed Framework Modules] Pyroh:
No, the country restrictions bypass was removed in the latest version.
[Xposed Framework Modules] the_prodigal_coder:
I have youTube v5.3.28 ... Moved to sd card with Link2sd app (my internal memory is too low... about 1 GB) ... After installing and activating your module via the xposed framework it seems to be doing nothing. The YouTube app still shows me 30 second long ads. I'm currently running CM 10 (xperia neo L).... Any help please ?

---------- Post added at 11:51 AM ---------- Previous post was at 11:41 AM ----------

OK after moving the YouTube app back to phone memory the module works fine. But I can't afford to keep a 30+ MB app in phone memory... Any help with this ? I've never had any other problems after moving apps like fb, whatsapp, YouTube to the sd card... I'll be happy to provide further information. Plz help [MENTION=3562083]wanam[/MENTION]
[Xposed Framework Modules] egingell:
YouTube is only 12mb including APK and DEX.

At any rate, it shouldn't matter where the APK and/or DEX are physically located. All the mod does is hook function calls made by YouTube. I'm guessing something else is wrong.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] the_prodigal_coder:
yes ... well sorry. but its still too large to keep on the phone... and the problem remains the same though. i.e. not working when the youtube app is forced to sd card
[Xposed Framework Modules] Vagelis1608:
Hide channel logo: Works!

Hide ads: I haven't seen any, yet, so I guess it works :)

Hide suggestions: Doesn't work but I like having them alot.

Edit: YouTube 5.3.24

Also I have YouTube linked to SD with Link2SD.

Sent from my GT-I5500 [CM7.2]
[Xposed Framework Modules] abced123:
is this mod in the official Xposed repo ? I did not see in the Xposed module listing though
[Xposed Framework Modules] CrossBones3129:
Anyway to set a cap on the quality when it auto switches? I really dont need to watch every video at 1080p. Just curious

EDIT: Spoke to soon! Just found "Yourtube". Sucka that its so outdated though. Doesn't support the latest versions!
[Xposed Framework Modules] wanam:
Can you uncheck the suggestions option and keep the ads one and see if get a hidden "skip" button while casting?
[Xposed Framework Modules] henrik.dk:
I youtubbed for quite some times and doesn't get the ad.

So it is just the ad when I am chromecasting as others reported.

sorry for that.
[Xposed Framework Modules] hp420:
Ads are playing with the latest YT update for me. How are you guys still ad-free? Still rockin' the legacy apk?
[Xposed Framework Modules] mattspew:
Sorry I've taken a while to get back to you.

I disabled the model in Xposed on my Nexus 9 and test casted to both my Nexus Player and Chromecast; ads are obviously showing, but now I have a "Skip ad" button on the screen of my tablet.

Unchecking "Hide logo and suggestions" didn't fix the issue.

So knowing NOTHING about how your module works; maybe there is a way to check if the playback is local or cast before removing ads/button.
[Xposed Framework Modules] GabbyWC:
Hey, [MENTION=3562083]wanam[/MENTION]. The YouTube for Android TV app on my Nexus Player updated to v1.1.16 a couple of days ago. https://play.google.com/store/apps/details?id=com.google.android.youtube.tv&hl=en The changelog only mentions "improved stability" but as I found out a short while ago, it also streams occasional video ads that slip through your module. It doesn't happen as often as ads would play without your module but perhaps it's something to investigate? I've attached a couple of screenshots and one of them contains a current Xposed log.
[Xposed Framework Modules] The Stig 04:
Is anyone getting a survey about insurance's before a video starts? I'm on 10.31.55 but even came on when I reverted back to 10.11.55.

Thanks.
[Xposed Framework Modules] y0000:
Hi guys i use the app to LG G3 D855 5.1.1 android version but dont block the youtube spams. Any idea?
[Xposed Framework Modules] Bec de Xorbin:
This doesn't hide the logo anymore.
[Xposed Framework Modules] mattspew:
Those having issues should just downgrade their YouTube app to a supported version. If you don't know how, Google "side loading apk" and turn off auto updates. It's very simple.

I never upgrade YouTube until the module have been updated.
[Xposed Framework Modules] Vagelis1608:
Great module.

Only problem is that suggestions are getting through. Ads and logos are hidden.

YouTube v10.33.51

Latest YouTube AdAway.

No errors in the log.
[Xposed Framework Modules] Dashaquavius:
[MENTION=3562083]wanam[/MENTION] I got two words.

YouTube Gaming?

:D
[Xposed Framework Modules] suhelbrar:
I understand that the latest version (v 2.6.1) added support for YouTube on Android TV. But the recent update to YouTube (on Android TV platform) has started getting ads again. I'll be thankful if you can have a look at that and fix it in the upcoming update.
[Xposed Framework Modules] MikeRL100:
I've noticed ads coming back with the latest YouTube as well, but I think it's a bug with the recent YouTube AdAway update itself, not YouTube. I updated YouTube yesterday and was fine. But after I updated the module and rebooted, all the ads came back. Can't be because of the YT update.
[Xposed Framework Modules] GabbyWC:
Yup, I posted about the same issue one page back at http://xdaforums.com/showpost.php?p=62547443&postcount=990. The video ads don't appear often but they still show up sometimes and it would be nice to have all the video ads blocked again. I've attached screenshots of my latest Xposed log and a video ad that appeared during my testing.
[Xposed Framework Modules] wanam:
I'm on the latest YT buid 10.34.57 and i can't get any ad to display! i will keep an eye on it.
[Xposed Framework Modules] GabbyWC:
[MENTION=3562083]wanam[/MENTION], it's good to hear from you. The random video ads appear on YouTube for Android TV v1.1.16 which started rolling out to users in the last few days. https://play.google.com/store/apps/details?id=com.google.android.youtube.tv&hl=en This is the YouTube app that's used on devices like the Google Nexus Player and NVIDIA Shield TV.
[Xposed Framework Modules] wanam:
Ah ok, i tough you are talking about the mobile one.

I will take a look at it.
[Xposed Framework Modules] GabbyWC:
Thanks, [MENTION=3562083]wanam[/MENTION]. I think that your module is working okay with the mobile version because I have not seen any video ads with YouTube v10.34.57 on my Nexus 5.
[Xposed Framework Modules] wanam:
It's proguard again, a new methods have been added by Google and just broke the proguard map, i'm a bit surprised how Google keep updating this App, i hope it's not only the ads part that they are improving :D

Try the new update 2.6.3.
[Xposed Framework Modules] GabbyWC:
Excellent. I'll try out this new version today and report back. I encourage other users to do the same. Google's changelog for YouTube for Android TV v1.1.16 says "improved stability" but I guess they forgot to mention "more ways to push through ads." ;)
[Xposed Framework Modules] MikeRL100:
I've updated the module and rebooted. I still see some ads thus far. I see suggested ads under the Home tab for Netflix movies and TV series. I wonder if there's more ads as well.
[Xposed Framework Modules] nimkip:
Updated to 2.6.3 for YouTube TV and I can't get any videos with ads to load at all. Videos without ads load normally.
[Xposed Framework Modules] GabbyWC:
Yup, I'm noticing the same thing. With YouTube AdAway v2.6.3 installed and enabled on my Nexus Player, the vast majority of the YouTube videos I tried just showed a spinning circle and did not load at all. There were only a few that did load.
[Xposed Framework Modules] wanam:
Okay i will debug this as soon as I get some free time.
[Xposed Framework Modules] krazman325:
I am successfully using v.2.6.1 with YT v.10.34.57 on my rooted os4.3 Note3. 2.6.2 & 2.6.3 both allowed ads and kept the "recommended" screen from populating. No problems with 2.6.1.