[APP][MOD][4.4+] Instagram without ads and annoyances

Search This thread

Grishka11

Member
Jun 30, 2012
39
176
31
Saint-Petersburg
Is it possible to allow the carousel to act normally rather than having it stick on the first image? I think that is part of what makes posts "seen" so they don't keep showing up at the top. It seems like I'm having to scroll longer to get to posts or images I haven't seen and to see the check mark from IG that says I'm all caught up. If I swipe through the carousel on those posts, they finally go away. Does this make sense?
It is. You need to comment out that part in GrishkaHooks.java and recompile it.
 

rohithksaj

Senior Member
Jun 28, 2011
1,350
269
kerala
https://www.androidfilehost.com/?fid=4349826312261711310

V126 arm64 patched with no follower list crash.

If you do a clean install, you will see sponsored posts in the home feed when you first log in. Just force stop the app and the sponsored posts should disappear.


MODERATORS, PLEASE CLOSE THIS THREAD!


after 3 weeks of use, today i received 11 new login alerts, from 11 diferent countries. I have two factor authenticator, they can't steal my account. I only use instagram in muy phone, no other place, so this app is the main reason of the alerts.

UNINSTALL ASAP!

Am using this app for last 3 weeks and there is no unusual activity in my account !
 

neekless

Senior Member
Sep 1, 2014
485
481
Singapore
MODERATORS, PLEASE CLOSE THIS THREAD!


after 3 weeks of use, today i received 11 new login alerts, from 11 diferent countries. I have two factor authenticator, they can't steal my account. I only use instagram in muy phone, no other place, so this app is the main reason of the alerts.

UNINSTALL ASAP!

Yes. When an issue like this that happens ONLY to you, it's definitely the app's problem and not because you have enemies that wanna hack you. /s

---------- Post added at 19:44 ---------- Previous post was at 19:43 ----------

Thanks! Now the question is, anyone willing to automate and build an apk for me and anyone else that may want it? Maybe neekless? If not, I might give it a shot over the weekend but I have very little experience doing this.

Don't think I have the know how to do this sorry. All I'm doing is following the OP's instructions to add the patches. Never fiddled with the java myself.
 

crazymika

Senior Member
Oct 18, 2012
59
36
Xiaomi 13 Ultra
Thanks! Now the question is, anyone willing to automate and build an apk for me and anyone else that may want it? Maybe neekless? If not, I might give it a shot over the weekend but I have very little experience doing this.

if you are willing to install some software on your computer the whole process is really easy
All you need are java runtime, jdk, apktool, android build tool, and tool to sign your apk(i use one from shatter box)
once you have build one the later version are very easy and fast

here v128 one i build from apkmirror
I'm not a android developer so I just create a random signature.
 

rohithksaj

Senior Member
Jun 28, 2011
1,350
269
kerala
Yes. When an issue like this that happens ONLY to you, it's definitely the app's problem and not because you have enemies that wanna hack you. /s

---------- Post added at 19:44 ---------- Previous post was at 19:43 ----------



Don't think I have the know how to do this sorry. All I'm doing is following the OP's instructions to add the patches. Never fiddled with the java myself.


Any way to get the new instagram ! I mean new update ?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 108
    Hi all. It seems like there's a lot of people annoyed by ads on Instagram. I was, too, until I figured out a novel way to patch it.

    Changes
    • Removed ads in the feed.
    • Removed ads in stories.
    • Removed "who to follow" blocks in the feed.
    • Removed stories in the feed (those between the posts, not those on top of course).
    • Carousel posts always show the first media instead of randomly jumping to the second one.
    • Analytics requests are blocked.
    • Enabled "internal" settings, accessible by either long-pressing the home tab or in the settings menu. These allow doing a lot, so use with care. The most useful feature so far is the ability to manually override each of the gazillion server-side configuration values.

    Without further ado, here's the link: Download.

    How my patch works
    Instagram, as, probably, all the other Facebook apps, uses Proxygen for its HTTP client. Since Proxygen is written in C++, it needs JNI bindings to be used in an Android app. This means that the Java classes that interface with the native code can't be obfuscated. So, instead of digging through piles of obfuscated code that gets reshuffled with each update, I did the most straightforward thing: I injected my code into Proxygen's Java part. I had to make minimal modifications to the bytecode in order to intercept the API responses and pass them through my code before the app gets any chance to process them.

    To repeat the process yourself:
    1. Download any Instagram apk or pull one from your device.
    2. Run apktool d on it.
    3. Download View attachment 4752809 and unpack it. Place the two files into smail/com/facebook/proxygen in your disassembled Instagram folder, replacing the existing ones.
    4. Download View attachment 4842971, unpack it and place the folder into any of the smali folders; I did smali_classes3 because there was no room for method references in the first dex.
    5. Build the new apk with apktool b.
    6. Sign it.
    7. Install it.
    8. Enjoy!
    The sources for the hooks are in View attachment 4842969. You compile these with javac, then run dx to convert them to dex, then baksmali to get the smali files that apktool can then integrate into Instagram's dex.

    Unlocking the developer settings is another thing entirely as it doesn't depend on the API. There's no getting around the obfuscated code. You need to find an enum class that has RELEASE, DEBUG, INHOUSE as its values. There are several methods that return boolean; you need to change the one that returns true to false (this determines whether this is a release build), and then another one to return true so that the build type returned ends up as INHOUSE. Decompiling it using jadx makes figuring this out a lot easier.

    I'll probably automate the patching process at some point in the future.

    Hope you enjoy!

    13/10/2019: updated to v114 and updated hooks files.
    26
    V123 arm64 patched with no follower list crash.
    https://www.androidfilehost.com/?fid=4349826312261680102

    If you do a clean install, you will see sponsored posts in the home feed when you first log in. Just force stop the app and the sponsored posts should disappear.
    21
    V120 arm64 patched with no follower list crash.
    https://www.androidfilehost.com/?fid=4349826312261642003

    If you do a clean install, you will see sponsored posts in the home feed when you first log in. Just force stop the app and the sponsored posts should disappear.

    I have also noticed sponsored posts appearing in the explore section. I'm not sure if OP's patches get rid of sponsored posts there, so just live with it.