Open zabi94 opened 6 years ago
:-/ Looks like they've started using ProGuard on their APKs. I will see if I can find a workaround; otherwise, this will unfortunately be the end of this module, as I do not have the time to update it for every single Tumblr version.
Idea: it should still be possible to hook com.tumblr.rumblr.TumblrService#timeline(String)
which seems to return some kind of wrapper for a com.tumblr.rumblr.model.Timeline
object. This in turn contains a List<com.tumblr.rumblr.model.TimelineObject>
, which we can apply the good ol' ad filtering function on. Maybe. Haven't tested this out at all, if anyone wants to give it a shot please go ahead. Currently I'm totally swamped by school projects :-(
Edit: I forgot, this won't work since the ads are injected post-request. This only gets you the non-ad posts.
I already use Java extensively, this might be my chance to get started with the android environment. I'll see what I can do, if no one else more qualified does
Okay so I took a quick look, and so far it looks like a reasonable way to recognize GraywaterAdapter#add(int, Object, boolean)
(this is the current method I hook to block ads - the ad is the Object
parameter) is by grepping for (ITT;Z)V
(there should only be one result). This can be done via code too, but it would mean iterating through every method of every class which is horribly inefficient, so that isn't going to work. In other words, I could update the module to work right now, but it would break on the next app update.
The goal is now to find a non-obfuscated class which can be used as a starting point to determine the obfuscated type of GraywaterAdapter
, then scan that class for methods matching the ILjava/lang/Object;Z
(int, Object, boolean) signature. Essentially, we're looking for places where the class is leaked via any kind of information visible via reflection.
Came to say it was broken, nice to read someone's trying to fix it! Hope to see an update on the Xposed Repo! Cheers
Any update? Tumblr ads are taking control!!!
Ads are not getting blocked anymore
If you are submitting a bug report and do not include the following info, your issue will be ignored!
Please paste your Xposed logs (Xposed Installer -> Logs -> Menu -> Save to SD card) below:
Thank you for helping us help you help us all.