yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] evilwombat:
Manually patching youtube APK for Lollipop?

Hello. Given the state of affairs regarding XPosed and Lillopop / Art, I would like to explore some alternative ways to bring the awesomeness of Youtube Adaway to Lollipop-based devices. Since Youtube Adaway is basically discovering the non-proguarded names of classes to modify and patching them, I wonder if a Lollipop user can adb-pull the youtube APK off their device, unpack it, patch the necessary classes the same way that youtube adaway does, re-pack it, sign it, and reinstall it on their device?

Yes, it's not the cleanest solution, but it is probably a lot faster than waiting for Xposed for ART. In the meantime, we could actually use youtube again without all the advertising BS.

Unfortunately, I could not find your sources, so I cannot try this myself. But, what do you think of this idea?
[Xposed Framework Modules] wanam:
Actually the latest YouTube updates are fully proguarded, and i'm forced to update for each major YT update because i'm patching proguarded sources only.
[Xposed Framework Modules] jineshpatel30:
So if you have some time could you make patched YouTube.apk for lollipop users ? (Not all the updates ...even major updates would be gr8 )

Now youtube ads become so annoying and also irrelevant "suggestion" driving us crazy so if you consider giving patched apk to lollipop user it'll be very helpful :)
[Xposed Framework Modules] egingell:
He's not patching YouTube in the traditional sense. He's injecting code into the existing YouTube app which requires Xposed which doesn't and likely never will work on L.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] jineshpatel30:
Yah but as he is injecting code in existing app it can also be done directly in apk file by patching and recompiling (afaik) that's why i said that if he has some time and he can so for lollipop users it will be great...after doing this there will be different sign so we won't able to get updates from playstore but it's ok as we r able to get rid of annoying ads :)
[Xposed Framework Modules] egingell:
Oh, I misread... mostly. He said in an Eric Cartman-esque voice.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] Vagelis1608:
Xposed will work on Lollipop once [MENTION=4419114]rovo89[/MENTION] adds support for ART (so basically Lollipop)

Sent from my D620r [Stock 4.4.2]
[Xposed Framework Modules] Mertak:
Hi wanam,

now its ok. Clear all data from YT and after restart all works good.

Thx for good app :)
[Xposed Framework Modules] explorer-10:
Does 2.2.2 support v6.0.13?
[Xposed Framework Modules] anagramgenius:
Yes
[Xposed Framework Modules] GrayFace:
Is there any chance for a similar app for Play Store? Pre-roll ads in trailers are horrible. And unlike YouTube, there are no alternative Play Store clients.
[Xposed Framework Modules] tarroyo:
Rovo is working on his own time, I just hope we get Xposed working on ART before the next nexus device (or whatever it'll be called) is released.
[Xposed Framework Modules] Er.ArvindCool:
It's not working. Here's the log

-----------------

28-Dec-2014 5:41:55 PM UTC

Loading Xposed v54 (for Zygote)...

Running ROM '16.0.B.2.13' with fingerprint 'Sony/C2305_1278-1427/C2305:4.2.2/16.0.B.2.13/eng.administrator.1386656745:user/release-keys'

-----------------

28-Dec-2014 5:44:59 PM UTC

Loading Xposed v54 (for Zygote)...

Running ROM '16.0.B.2.13' with fingerprint 'Sony/C2305_1278-1427/C2305:4.2.2/16.0.B.2.13/eng.administrator.1386656745:user/release-keys'

Loading modules from /mnt/asec/ma.wanam.youtubeadaway-1/pkg.apk

File does not exist

-----------------

28-Dec-2014 6:28:10 PM UTC

Loading Xposed v54 (for Zygote)...

Running ROM '16.0.B.2.13' with fingerprint 'Sony/C2305_1278-1427/C2305:4.2.2/16.0.B.2.13/eng.administrator.1386656745:user/release-keys'

Loading modules from /mnt/asec/ma.wanam.youtubeadaway-2/pkg.apk

File does not exist

-----------------

29-Dec-2014 4:49:06 AM UTC

Loading Xposed v54 (for Zygote)...

Running ROM '16.0.B.2.13' with fingerprint 'Sony/C2305_1278-1427/C2305:4.2.2/16.0.B.2.13/eng.administrator.1386656745:user/release-keys'

Loading modules from /mnt/asec/ma.wanam.youtubeadaway-1/pkg.apk

File does not exist

But I have checked the directory through root browser pkg.apk is there.

My rom is pure xperia z2 for canvas2+.
[Xposed Framework Modules] egingell:
You moved it to your SD card. Move it back to the phone. Xposed modules won't work that way.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] Alexey71:
@wanam

Hi. New version. Only I have an application crash
[Xposed Framework Modules] wanam:
New update 2.2.3 posted:

- YouTube 10.02.3 support

- Lower Xposed API requirement 40+ (for MIUI users)

- Updated and added some translations (Thanks to all translators)
[Xposed Framework Modules] Fenir8:
Thanks man :). Any chance we can get this pushed to the repo?
[Xposed Framework Modules] manbat:
2.2.3 is in repo...

Sent from my SM-N910V / VZW Note 4 DE / Factory Bootloader Unlocked / Rooted / Custom Kernel-ed / TWRP 2.8.4.0.trltevzw
[Xposed Framework Modules] Fenir8:
I'll look again then, likely be an issue on my end

Edit: double checked and 2.2.2 is the last version I see on the repo on my end. Updated manually via Dropbox.
[Xposed Framework Modules] BartVCD:
YouTube v10.03.5 is out
[Xposed Framework Modules] XYZ-Moscow:
Xposed Installer 2.7 experimental1 doesn't show Youtube AdAway 2.2.3, but 2.6.1 and web show it.
[Xposed Framework Modules] wanam:
Too late, i will update tomorrow.

Good night.

Report this through the contact page on the xposed repo.
[Xposed Framework Modules] XYZ-Moscow:
Bug posted.
[Xposed Framework Modules] BartVCD:
[MENTION=3562083]wanam[/MENTION]

no reason to hurry, have a good night, take your time :)
[Xposed Framework Modules] wanam:
YA updated to support YT 10.03.5.

Use Dropbox mirror or Xposed web site if you can't see the update 2.2.4 on the Xposed installer.
[Xposed Framework Modules] mikey160984:
Hi Wanam!

I'm using an Huawei Ascend Mate 7 and, maybe you know, Xposed for Huawei is not working really good. Before I had a Note 3, and I used your Modules a long time.

So, I wasn't able to use YouTube adaway now for a while, because, the only Xposed Version that works is Xposed 2.4 and 2.5 with an special Version. So we can't use the latest APIs. With your version for Miui, that only requieres API 40+ it works perfect. Maybe you can continue this low level support? Many of the Huawei Users would be very happy I think.

Maybe the chance exists :)
[Xposed Framework Modules] wanam:
I will keep it on 40+, thanks for the feedback.
[Xposed Framework Modules] mikey160984:
Thanks Wanam, I think a lot Users appreciate this
[Xposed Framework Modules] Quipp:
still got ads

Hi, I still have ads when playing YouTube videos.

I'm using viper one Rom. Any ideas on how to get rid of the ads? Highly annoying to get an after every clip. When I used maximusHD Rom I had no troubles.
[Xposed Framework Modules] Vagelis1608:
He is gonna need your Xposed logs and Xposed version, at least.

Sent from my D620r [Stock 4.4.2]
[Xposed Framework Modules] Quipp:
Xposed version is 2.7 experimental.
[Xposed Framework Modules] Vagelis1608:
Try with the latest stable and see if that fixes it.

Sent from my D620r [Stock 4.4.2]
[Xposed Framework Modules] Alexey71:
Hi @wanam

New youtube
[Xposed Framework Modules] MikeRL100:
New YouTube also has some new "Spotlight" stuff under the default "What to Watch" tab. Is that considered an advertisement worth blocking? Maybe something to put into settings.

Just sent in $5 in beer money. Cause YouTube Ads suck so bad that even my ad blocker doesn't get rid of them. And they're everywhere. Thanks for getting rid of them.
[Xposed Framework Modules] wanam:
New YA update 2.2.5 with YT 10.04.5 support posted.

I can't see anything here, maybe a side server feature.
[Xposed Framework Modules] Mike B.:
I suspect [MENTION=4698234]MikeRL100[/MENTION] might be referring to this type of (unwanted?) "feature":

<li>
<ol class="item-section">
<li><div class="feed-item-container browse-list-item-container branded-page-box yt-section-hover-container hide-container" data-visibility-tracking="CMcCEOE6IhMIv5iZ96a_wwIVTARqCh2WlAD7KI4e"><div class="feed-item-dismissable"><div class="generic-promo promo-container" style="background-image:url(https://s.ytimg.com/yts/img/superbowl-promo-web-vflnVe4A1.png)"><div class="feed-item-main no-thumbnail" style="color:#333"><a href="https://www.youtube.com/channel/UCDVYQ4Zhbm3S2dlz7P1GBDg" class="generic-promo-bg-link yt-uix-sessionlink spf-link g-hovercard" data-ytid="UCDVYQ4Zhbm3S2dlz7P1GBDg" data-sessionlink="itct=CMcCEOE6IhMIv5iZ96a_wwIVTARqCh2WlAD7KI4e"></a><span class="generic-promo-feedback close-icon dismiss-menu-choice no-notification" data-action="hide" data-dismissal-tracking-id="superbowl-promo" data-feedback-token=""></span><h4 class="generic-promo-title">Get the latest Super Bowl videos</h4><p class="generic-promo-description">Watch highlights, big plays and more on the NFL channel</p><div class="generic-promo-action-button">
<a href="https://www.youtube.com/channel/UCDVYQ4Zhbm3S2dlz7P1GBDg" class="yt-uix-button yt-uix-sessionlink yt-uix-button-primary yt-uix-button-size-large" data-sessionlink="itct=CMcCEOE6IhMIv5iZ96a_wwIVTARqCh2WlAD7KI4e"><span class="yt-uix-button-content">Watch now </span></a>
</div></div></div></div><div class="feed-item-dismissal-notices"><div class="feed-item-dismissal feed-item-dismissal-hide hid">This item has been hidden</div></div></div></li>
</ol></li>
[Xposed Framework Modules] MikeRL100:
Yeah the above. Exactly what it is. Maybe we only get it in certain countries.
[Xposed Framework Modules] wanam:
Yes, it is a remote feature but i can't get it to show.

Do you still get it with both options checked on my module?
[Xposed Framework Modules] Mike B.:
I still get it with both options checked (YouTube 10.04.5 + YouTubeAdaway 2.2.5). I'm not sure whether it's triggered by location (I'm US-based) or tied to specific accounts. It's not a major problem, merely yet another YouTube annoyance... ;)
[Xposed Framework Modules] Atharkhan101:
Ads are not being disabled on latest version. So 2.1.3 working fine for me. Y the latest version not removing ads?

Update: Oh, no even the latest version as well as version 2.1.3 not removing ads.
[Xposed Framework Modules] wanam:
Please try to read first post, this is not how we report a bug.
[Xposed Framework Modules] Atharkhan101:
1. Xposed framework is installed, YouTube AdAway module enabled, Resources hooks are enabled on Xposed Installer.

2. youtube version is 10.03.5

3. No option to attach log via xda app. Will do via pc in sometime.
[Xposed Framework Modules] esgie:
New yt app arrived: 10.05.6.
[Xposed Framework Modules] wanam:
New update 2.2.6 posted to support YT 10.05.6.

We are getting frequent YT updates these days, i guess i will have to try find a new way other than hardcode the hooked & proguarded methods.
[Xposed Framework Modules] radx:
Are there any plans to make another app that is not dependent on xposed? What choice do people running lollipop have? I love this module but it'd be great if there was a version that worked on lollipop too.
[Xposed Framework Modules] sam tyler:
2.2.6? I'm still on 2.2.4 as im on version 10.03.5 of YouTube! for some strange reason play won't show me any updates for YouTube. as usual I'm playing catch up!

sent from a THL W200c port to w200s phone
[Xposed Framework Modules] wanam:
I don't see any way other than modding the official App, but i won't take this way, sorry.

Same here, i keep following YT updates through this thread.
[Xposed Framework Modules] shall9505:
This may cheer you up : http://xdaforums.com/showthread.php?p=58751037

[Conspiracy] Xposed for Lollipop

Soon... :) Working very well already.
[Xposed Framework Modules] iReclaimer:
done !

Is amazing not more ADS !
[Xposed Framework Modules] :
XPosed for Lollipop is out.

Can't wait for a working YouTube Adaway version :)
[Xposed Framework Modules] Tyrian89:
Already works. At least on my G3 running cm12.
[Xposed Framework Modules] :
Oh, really :confused:

I got a warning that xposed isn't active while AppSettings for example works.
[Xposed Framework Modules] xero110:
+1

Shield tablet and M7/CM12.
[Xposed Framework Modules] empire10:
Same here nexus 7 2013 YouTube adaway doesn't recognize xposed lollipop but great app BTW
[Xposed Framework Modules] egingell:
That doesn't mean it doesn't work.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] Alexey71:
Hi, new version
[Xposed Framework Modules] sam tyler:
Well, after what seemed an age play store let me update YouTube and of course that meant could update YouTube adaway. still have problems with video suggestions but I still think it's the phone and not the module (always had this problem ever since I installed this) but the main thing is there is no ads! and for me that's what I use the module for.

sent from a THL W200c port to w200s phone
[Xposed Framework Modules] Alexey71:
@wanam

no update?:crying:
[Xposed Framework Modules] wanam:
I'm quit busy now, i will try to update today if get some free time.
[Xposed Framework Modules] wanam:
I updated the module to support YT 10.06.3 and the new location of Xposed framework on Lollipop.

It is UNTESTED, i don't have now my Nexus on my hands to test it, try it and let me know if it works so i can push it the xposed repo.

Edit: published on xposed repo.
[Xposed Framework Modules] nrnbow:
Thanks, working for me! :good: :) Note 4 Android 4.4.4
[Xposed Framework Modules] Alex0901:
working for me ARHD 34.1 LOLLIPOP
[Xposed Framework Modules] coolvabs:
Installed it. Working great on my nexus 5 with Blisspop ROM 2.0 (lollipop 5.0.2) installed. Great work [MENTION=3562083]wanam[/MENTION].

Had been missing it since i had upgraded to lollipop
[Xposed Framework Modules] wanam:
Thanks for the feedback.

Update 2.2.7 (the same one) pushed to the xposed repo.
[Xposed Framework Modules] ayoubij:
Wanam i know this might be a little different but is there any way you can add a default screen resolution? Or a max one.

Because i have a slow connection i can not watch any video above 320p or it will take too much time buffering.

On default youtube is opening each video for me with 720p and i have to reduce it each time i watch a video.

Can this be done please? Thanks
[Xposed Framework Modules] SpasilliumNexus:
I've got YT 10.6.3 and the latest YT AdAway 2.2.7 installed, and I'm getting a ton of errors about this module in the Xposed log. Nexus 5, Lollipop 5.0.2, SELinux permissive.

Log attached.

YourTube module does this.
[Xposed Framework Modules] BigLisy:
My Xposed keeps saying 2.2.6 is the latest version. to me.

4.4.2 Galaxy Tab S.
[Xposed Framework Modules] ayoubij:
Yea but i was thinking if i can have one xposed module for youtube rather than 2 or 3 [emoji14]
[Xposed Framework Modules] brad2409:
Are you able to extend the ad blocking to surveys? They're getting really annoying. Thanks and keep up the great work.
[Xposed Framework Modules] SmithO77:
Ever since I started using this app maybe from a year ago, I never noticed it before but the video suggestions are not being blocked. When I view a video & scroll down the suggestions are still there. I'm using a GT-I9300. Is there a alternative that can block the recommendations & suggestions?
[Xposed Framework Modules] jaladhjin:
Negative on my AT&T LG G3 d850 running Lollipop

The module installs & loads.. but here's what I get :(
[Xposed Framework Modules] kryzeK:
Hi, several users complaining that this module consumes a lot of battery. Is aware of this? Why does this happen?
[Xposed Framework Modules] Forsaked:
I can't confirm this!

Actually watching youtube means screen on, network usage and higher cpu/gpu usage, which results in battery drain... :p
[Xposed Framework Modules] Vagelis1608:
Surveys on YouTube?

Can you post a link or screenshot?

Sent from my D620r [Stock 4.4.2]
[Xposed Framework Modules] joluke:
+1
[Xposed Framework Modules] Mike B.:
You can get the latest stable version (currently 2.2.7) from the

Xposed repository

.
[Xposed Framework Modules] Batum69:
thanks developers works on nexus 5 5.0.2
[Xposed Framework Modules] wanam:
Maybe if i get some of them on my devices, otherwise it's a bit difficult to debug.

Working fine here, post your Xposed logs.

You are using an older version of YA on Lollipop or the Xposed framework is NOT installed, post your xposed logs.

Can you point me to some of these complaints or any helpful battery stats that prove this?
[Xposed Framework Modules] j1gga84:
When I activate Version 2.2.7 there is no green check mark like in previous versions and it seems that I still get ads (30 seconds of commercial before the starting of a video). Is that normal?

regards
[Xposed Framework Modules] civicsr2cool:
no combination of YouTube or adaway will get rid of these surveys. Also have had had lots of videos come up not available in my country last few weeks.
[Xposed Framework Modules] doublewhamy:
Having issues blocking ads on Nexus 7 2013 on Android 5.02, but everything seems in order when it comes to seeing if it is enabled. Would post pictures, but I haven't made enough past posts.

The issue has resolved itself.
[Xposed Framework Modules] remo0073:
Is this module compatible with YouTube Background Playback Module in stock Lollipop 5.0.2 (Moto G XT1032)?
[Xposed Framework Modules] Forsaked:
It work's with a Lollipop M8!
[Xposed Framework Modules] ayoubij:
Its not working on youtube 10.06.3 for me

Please update it to the lstest youtube
[Xposed Framework Modules] _jis_:
It is working fine for me on the latest YouTube version. Take a look two pages back to Wanam post.

Tapatalk Pro 4.6.2
[Xposed Framework Modules] notaviable:
Bug

The youtube app shows navbar and status bar when in fullscreen mode at the time video suggestions should pop up. i think your module doesent hook the part where the app exits fullscreen mode for showing the video suggestions.
[Xposed Framework Modules] civicsr2cool:
Pretty useless at this point. Tried the last three you tube versions in mix with last three ad aways, did YouTube change something?
[Xposed Framework Modules] wanam:
I removed it because i didn't have time to update the activation checker, but at least this means Xposed installer & framework are installed.

Make sure the module is enabled and post your Xposed logs.
[Xposed Framework Modules] dante`afk:
nvm got it working
[Xposed Framework Modules] Alexey71:
@wanam

Hi, new version
[Xposed Framework Modules] shadow322:
no new youtube adaway for this version?
[Xposed Framework Modules] wanam:
Be patient, it's the weekend.
[Xposed Framework Modules] Alexey71:
Hi, look logs , that the error of the module? cm12 5.0.2
[Xposed Framework Modules] esgie:
good day,

thank you for this must-have module.

may i ask if there is any eta for new version? ads are driving me crazy ;)
[Xposed Framework Modules] j1gga84:
No ETA's please, update comes when it comes ;)

The new week has just begun, be patient :good:

regards
[Xposed Framework Modules] wanam:
Busy with my family new member :) , the update may take a few delay.
[Xposed Framework Modules] MATRIKS:
Congrats ☺
[Xposed Framework Modules] SmithO77:
I've attached the logs
[Xposed Framework Modules] shivadow:
If you are desperately in need of avoiding ads just install xinstaller mod and then the older youtube.

Seeing as the latest youtube hasnt been pushed yet wanam isn't obliged to update this mod yet or even at all.

Always put your family first!.

Sent from a stolen phone!
[Xposed Framework Modules] MikeRL100:
So, first let me say waiting is not a problem for me in the least bit. Congratulations on your wife having a baby.

But I'm a bit curious on what's up if anything. Does the latest YouTube break anything? Has it not fully rolled out yet, and does he only update for staged roll outs that complete, or just update as time permits? Waiting is no prob!em - I am simply curious. If I get some information cleared up, maybe I can log some stuff and perhaps debug a bit for him so he isn't swamped if or when he decides to work more on the module. Remember, put yourself first. But I will go out of my way to help if I have a bit of time. Can't program, but I'm pretty good at finding bugs. Thanks for reading.
[Xposed Framework Modules] wanam:
New update 2.3.0 pushed to support YT 10.08.52.

If you can't find the update on Xposed installer, check Xposed web site or the mirror on my download page.
[Xposed Framework Modules] Alexey71:
Xposed 3.0

a lot of mistakes on the module, you can fix it?:)
[Xposed Framework Modules] wanam:
I can't reproduce this on stock Roms, it's maybe something specific to CM, i saw some reported resources hooking issues on Xposed running on CM12.
[Xposed Framework Modules] j1gga84:
YouTube 10.08.53 was just released :D

Anyway, thanks for the update :)

Regards

Sent from my GT-I9100 using german Tapatalk 4
[Xposed Framework Modules] wanam:
It's a minor version update so I guess it should be also supported.
[Xposed Framework Modules] Alexey71:
In fact of the matter in cm11 no errors

Maybe need to rebuild module under new XposedBridgeApi-20150213.jar?
[Xposed Framework Modules] tonyp:
This seems to be a bug in Xposed for Android 5.0.

Try to add a check for "lpparam.processName" additionally to the one of "lpparam.packageName" as a workaround.

Although I thought it only applies to the SystemUI.

(mentioning [MENTION=4419114]rovo89[/MENTION] just in case).
[Xposed Framework Modules] wanam:
Try attached file.

Thanks for the head up, i thinks it's not the same issue, in my case it fails on:

final android.content.res.XModuleResources moduleResources = android.content.res.XModuleResources
.createInstance(MODULE_PATH, resparam.res);

i just moved this after the YT package check, i didn't test it but i think it should fix this issue.
[Xposed Framework Modules] joluke:
Congratulations :D
[Xposed Framework Modules] Alexey71:
Fewer errors, but there is still
[Xposed Framework Modules] Alexey71:
@wanam

Hi
[Xposed Framework Modules] j1gga84:
YouTube updates all the time with only minor changes :D

Instead of this they should finally add background and screen-off playback. Just my 2 cents :)

Have a nice weekend.

Regards

Sent from my GT-I9100 using german Tapatalk 4
[Xposed Framework Modules] ayoubij:
They already have it but you need to subscribe and pay
[Xposed Framework Modules] pyler:
I am not sure :P

http://repo.xposed.info/module/com.pyler.youtubebackgroundplayback
[Xposed Framework Modules] shadow322:
YouTube v10.09.56 released
[Xposed Framework Modules] j1gga84:
Awesome, will test it, thank you :)

Regards

Sent from my SM-T805 using german Tapatalk 4
[Xposed Framework Modules] guyd:
Didn't work for me with YT 10.8.53 :(
[Xposed Framework Modules] joluke:
Works with the latest YouTube version: 10.09.56

Using YouTube AdAway 2.3.0
[Xposed Framework Modules] rovo89:
Check this please: http://xdaforums.com/xposed/problem-server-classes-resource-hooks-t3044270/post59277740
[Xposed Framework Modules] joluke:
[MENTION=4419114]rovo89[/MENTION] thanks for everything. You are awesome :D
[Xposed Framework Modules] mak725:
Any new update for YouTube 10.09.56?

2.3.0 Doesn't work :(
[Xposed Framework Modules] Mike B.:
Youtube Adaway 2.3.1

seems to "work" fine with YouTube 10.9.56. If you have trouble, [MENTION=3562083]wanam[/MENTION] will probably need a bit more information and some time to look into it.
[Xposed Framework Modules] jkbhso3:
Where did you get 2.3.1? The newest available for me is 2.3.0.

---------- Post added at 04:18 PM ---------- Previous post was at 03:59 PM ----------

How'd you get 10.09.56 when the latest on the playstore is 10.08.53?

Edit: Never mind. Found the link.
[Xposed Framework Modules] joluke:
http://www.apkmirror.com/apk/google-inc/youtube/youtube-10-09-56-android-apk-download/