yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] anonymous1:
Sorry to start a thread on this old device and guessing there may not be anyone who can help me.

I flashed the Lenovo VibeUI ROM from needrom which seemed to work well, but I wanted to go back to stock and used the Ulefone 'onekey flashing tool' which usually worked to go back to the stock ROM. This time there was an error message, so I used SP Flashtool to flash the stock rom.

However the phone appears bricked - no screen, no charging indicator when plugged into the charger or USB on PC, whether latest official V1 or V2 ROM flashed. Not identified by PC as plugged in, but with battery removed, it appears I can 'flash' stock ROM using SP FT or Onekey official flashing software, but it is still 'dead' when battery reinserted.

Even though flashing the ROM with SP Flash Tool and the official Onekey flashing tool appear to flash the ROM to the EMMC, the phone won't even boot to the boot logo. Plugging in the charger doesn't show the charging indicator. I think the issue is with the 'ERROR: NAND flash was not detected!' message when I do a memory test. Not quite sure how this happened.

I thought it was difficult to brick MTK devices, but I seem to have achieved the almost impossible! Does anyone have any idea how I can recover from this bricking? The phone is recognised by SP FT so I hope there is a possibility.

Is there an easy way of solving this as I would like to donate this phone to someone who needs it? Tried lots of 'fixes' from XDA and other sites, but nothing working so far.

Any help/advice greatly appreciated.

:fingers-crossed:
[Xiaomi Mi 8 Questions & Answers] Thanksforthe_delay:
I have tried Havoc OS, seeing it seems to be the most popular ROM for Mi 8, but the area around the notch in Havoc looks horrendous, it's all jagged and pixelated in contrast to how smooth it is in MIUI. Is there an AOSP ROM we which does not have this problem?
[Xiaomi Mi 8 Questions & Answers] rexbordz:
Hello. I agree with this. I really love the rom but the notch is just... Anyway, have you found another aosp rom that has a good notch edging?
[Android Apps and Games] Grishka11:
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:

Download any Instagram apk or pull one from your device.

Run apktool d on it.

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.

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.

Build the new apk with apktool b.

Sign it.

Install it.

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.
[Android Apps and Games] Ac3Da3m0n:
App seems to crash when I access my following list by going to my profile. Running Android Pie.
[Android Apps and Games] Ferreira_F10:
I can confirm this. App crashes when I open my following and followers list, and when I open my "viewed by" stories list.

Enviado de meu Redmi Note 5 usando o Tapatalk
[Android Apps and Games] İrfan:
I'll test on my Xiaomi Redmi Note 6 Pro
[Android Apps and Games] el_easy:
Can I download pics with this Mods? :confused::confused:
[Android Apps and Games] Ac3Da3m0n:
No. It's not modded Instagram app.
[Android Apps and Games] Andish:
Crashes on following/followers list

And on multiple logins also
[Android Apps and Games] Grishka11:
No. This doesn't touch any of the UI because I aim for it to be as portable between versions as possible. To modify the UI you inevitably have to touch obfuscated code.
[Android Apps and Games] Grishka11:
These crashes are caused by apktool not decoding resources properly. I created an issue on github.
[Android Apps and Games] nicknitewolf:
Great work. On the most part, ads are blocked. However, branded content shows up in the feed sometimes. I think there's an internal setting called "branded content show settings" not sure if this is the right option.

Also has anyone figured out which internal flag switches the feed back to a linear post history instead of the personalized one?

Edit:

To those who can't seem to install the apk, you have to disable Play Protect in the Google Play Store as that is blocking apps with an unknown signature from being installed.
[Android Apps and Games] lukekaramazov:
There are some crashes when I tweaking settings, otherwise good mod.
[Android Apps and Games] Sorenzol:
Great work, thanks :)
[Android Apps and Games] mijorus:
I can confirm it crashes when trying to open the followers list
[Android Apps and Games] pratik_193:
[MENTION=4714822]Grishka11[/MENTION], for many people its crashing including me. Can you upload a patched version so that its easier for everyone to just install the apk?
[Android Apps and Games] el_easy:
Thanks bro, I will wait for the next version because the crashes ...

By the way, I hope one day you can do the same with Facebook app, I know evilwomba does that, but he takes too long to update..:D
[Android Apps and Games] Grishka11:
What do you mean? This is a patched version. There's a bug in apktool that causes it to crash because of the non-standard way the resources are stored in the original apk to reduce its size.

I mainly patched Instagram because I use it myself a lot. Facebook isn't a thing where I'm from, so I don't even have the app installed, I use the mobile website on the rare occasions when I need it. I can try, of course...
[Android Apps and Games] MrMarques01:
Great work and pretty interesting approach. Keep it up!
[Android Apps and Games] pratik_193:
You are right. The mod is amazing! It was getting very annoying to see ad after every 2nd or 3rd post on insta.
[Android Apps and Games] mijorus:
Any news about a possible fix?
[Android Apps and Games] kancrutt:
confirmed about sponsored post shows up sometimes.

keep up the good work!
[Android Apps and Games] :
Is it just me or when trying to add new insta post, my gallery thumbnails are not able to show? Refer attached screenshot.

I'm on latest v19 black theme same package.
[Android Apps and Games] ShieldPower:
Nice and Privacy

Now only Facebook can spy on me and ohter tracker but no ads thanks!
[Android Apps and Games] SeanFromSoCal:
I had that same issue when I let a clean up app delete my .thumbnail database file. I had to browse the folders again using the built-in file explorer and it rebuilt the thumbnail cache then it worked.
[Android Apps and Games] Sander9847:
Is something similar to the Proxygen method possible for removing ads for Facebook messenger? Would be awesome to work across more than 1 version and not needing to work with the obfusicated code.
[Android Apps and Games] PoochyX:
How's it hanging

([emoji3590]09-09-18[emoji813])
[Android Apps and Games] theevildevil:
the latest version has stopped working for me. Anyone else also having the same issue?

Edit: scratch that. The latest version was working well with Ad blocking but doesn't work now. Whitelisted the app and it works.
[Android Apps and Games] fuarkgl3:
Did anyone have problems with instaXtreme? I mean, blocked account
[Android Apps and Games] matteo2:
I have issues with clone black version

Inviato dal mio SM-G950F utilizzando Tapatalk
[Android Apps and Games] stefano.sp:
Not sure whether the crashes have been fixed.

I found a workaround.

If it's still an open issue, I share my method.

It seems that apktool is corrupting the resources, making the app crash in the list of following users.

So we should keep the resources untouched.

1- decompile the original app excluding resources [apktool d Instagram.apk -r --no-res]

2- apply the patch (by replacing the files in smali)

3- recompile the patched app [apktool b Instagram]

4- open both the patched app and the original app with 7-Zip

5- now compare the content of the apps and see the difference (the folder "r" is missing in the patched app, lost because of apktool)

6- with 7-Zip: extract the folder "r" from the original app and copy it into the patched app

7- close 7-Zip, align and sign the patched app

8- enjoy your ads-free IG

*** if this method fails, try with the opposite action at point 6: copy the patched classes.dex and classes3.dex from the patched app to the original app. And then align+sign the original app. This method works 100% with IG v. 104.0.0.21.118-165030898
[Android Apps and Games] theharsherik:
Ads

Insta should just introduce an ads free version, I'd gladly pay for that.
[Android Apps and Games] Bxperiaz3:
Does anyone have an updated instagram apk with this patch? I'm not advanced enough to do the process myself unfortunately.
[Android Apps and Games] neekless:
This is v111 arm64. Not the newest but new enough.

https://www.androidfilehost.com/?fid=1899786940962597385

But the adblocking ability hasn't worked since v104 so I don't really think there's any point in using this.
[Android Apps and Games] skyjuice123:
Instagram are designed for use in handphones; understand one can use desktop having Google Chrome but not in Firefox which requires a paid add-on.. is there other solutions ?
[Android Apps and Games] matteo2:
Bad news...

Inviato dal mio SM-G950F utilizzando Tapatalk
[Android Apps and Games] Grishka11:
They wrapped the ReadBuffer object into another object – that's why ad blocking stopped working. This broke how I was associating request URLs with response buffers to know whether and how to rewrite the responses. I've updated the post with the fixed hooks and v114 apk for arm64.

Still crashes on some screens because of Facebook's "smart" resource optimizations...
[Android Apps and Games] matteo2:
It works very good for me and finally black themed. Can you add the download function of photos and stories?

Inviato dal mio SM-G950F utilizzando Tapatalk
[Android Apps and Games] neekless:
The resource crashing can be resolved by following the method here https://xdaforums.com/android/apps-games/app-instagram-ads-annoyances-t3927066/post80232449

Here's v114 arm64 without resource crashing https://www.androidfilehost.com/?fid=1899786940962608900
[Android Apps and Games] matteo2:
Is that method still working?

Inviato dal mio SM-G950F utilizzando Tapatalk
[Android Apps and Games] matadors09:
Can we get thet last update without link ? Someone send le a link :)
[Android Apps and Games] Redhawk2000:
Its in the opening post
[Android Apps and Games] nakedowl:
Thanks
[Android Apps and Games] joannerve:
Plenty of ads

---------- Post added at 06:50 PM ---------- Previous post was at 06:49 PM ----------

Plenty of ads
[Android Apps and Games] neekless:
Clear app data. I've been using it. Zero ads.
[Android Apps and Games] Redhawk2000:
No ads for me either.

Edit - although I'm using version 114 from the OP
[Android Apps and Games] pleasedie:
*Delete please*
[Android Apps and Games] neekless:
V115 arm64 patched with no follower/following list crashes

https://www.androidfilehost.com/?fid=1899786940962613657
[Android Apps and Games] tlf55:
I still see sponsored post :( clean install the latest v115
[Android Apps and Games] caike08:
Hello,

Could someone please explain why I can log in to my account using only part of my username? Like, if my username is daniel67, and I type daniel plus my password, it logs me in?
[Android Apps and Games] sagacio:
how can I hide myself from viewing stories?
[Android Apps and Games] thunderrrroad:
blah

*edit*

so this noob downloaded the apk from a post someone made a page or two ago (v115) without the followers crash... anyways, things are working better with that (i.e. better order in the news feed ... almost chronological!) and ad-free (that has been working since I first installed)... are there any other features that I'm missing with the patch/modified insta app? I could be mistaken, but I thought I read in one of the op's posts about developer options, seeing who unfollowed you, disabling some other settings?? ... I am really sorry I am not that versed in this stuff (I am kind of tech savvy but I'm still a girl so ha I am not that great with everything that is going on with this phone) so any help would be amazing and appreciated!
[Android Apps and Games] Athes94:
does anyone have instagram v114 or v115 download with the mod?
[Android Apps and Games] thunderrrroad:
I can't post a link (cause I haven't commented enough :| ...) but go a page back and you will find the link v115 x86
[Android Apps and Games] matteo2:
I have v114 and I receive "message not send" error when I try to send my story to someone with direct. Do you have this issue?

Inviato dal mio SM-G950F utilizzando Tapatalk
[Android Apps and Games] shanemod:
Force close when to "connect to contact" function
[Android Apps and Games] neekless:
OP has not provided a patch for enabling developer options and I am unable to follow his method as it involves a complex process beyond my abilities

---------- Post added at 14:09 ---------- Previous post was at 14:08 ----------

It's arm64 btw not x86

V117 arm64 no following list crash

https://androidfilehost.com/?fid=4349826312261611233
[Android Apps and Games] metaxda:
try "Instagram Lite".

it's official and lite version already.
[Android Apps and Games] selw0nk:
Instagram Lite as in the browser or is there a Play Store app?
[Android Apps and Games] Sneeuwtijger:
There is a Play Store app but only available in certain countries - you can always download an apk on a mirror like m.apkpure.com
[Android Apps and Games] metaxda:
it's an official app released by Fb , for countries where there is slower network infrastructure.

so, it consumes less data and less resources on the phone, etc.

you need to sideload the APK
[Android Apps and Games] theyellowplan:
Anyone willing to patch v120?
[Android Apps and Games] neekless:
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.
[Android Apps and Games] Jonhson Abigaile:
Thank you for post.
[Android Apps and Games] theyellowplan:
Thank you so much!
[Android Apps and Games] JohnyR21:
This works, thanks!
[Android Apps and Games] nadia p.:
Thank you for your hard work. I've been trying to follow this thread but I'm not clear what is meant by a "clean install" noted above. I've downloaded the APK file referenced above, disabled Google Play Store Protection, however when I attempt to install this on a Samsung Galaxy Tab A 10.1 (2019) running Android 9 it won't allow me to install it. This device is not rooted.
[Android Apps and Games] nadia p.:
Could this be because of the CPU architecture differences? Exynos or One UI?
[Android Apps and Games] DimiONs:
A "clean installation" is:

1) uninstalling the application from the smartphone (stopping the application -> data cleansing -> deleting)

2) restart the smartphone

3) installation of the desired version
[Android Apps and Games] neekless:
V121 arm64 patched with no follower list crash.

https://www.androidfilehost.com/?fid=4349826312261653541

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.

Please note I'm not planning to patch every new version that comes out. Maybe every other version.

---------- Post added at 10:48 ---------- Previous post was at 10:44 ----------

I'm sorry I have no experience with tablets so I can't help you. May be due cpu architecture differences.

I won't take credit as the hard work is done by [MENTION=4714822]Grishka11[/MENTION], who did the research and created the patches. All I did was follow his instructions and apply his patches, which honestly is something everybody reading this thread should be able to accomplish. It's really quite simple!
[Android Apps and Games] tinko975:
Images cant be dowlnoaded?
[Android Apps and Games] lightdelegate:
Just insta on my note 10.work perfect.
[Android Apps and Games] masbass:
works like a charm (no sponsored posts on Timeline, Stories or Browse) on UMIDIGI Play F1 on Android 9, thanks for taking all the sponsored crap out of IG! :) :) :)
[Android Apps and Games] mateus9898:
Thank you very much
[Android Apps and Games] Michael_Raj:
Should root my phone before using this or it works on normal stock android?
[Android Apps and Games] mateus9898:
It works on normal stock android!
[Android Apps and Games] kacali:
Yes
[Android Apps and Games] neekless:
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.
[Android Apps and Games] zurik:
Does someone know which file in apk to edit to enforce the app to show the "Add to your story" option? (No option on my account).

Can someone help me on this please?
[Android Apps and Games] Detsle:
I can’t install your mod on Android 7.1.2. Writes that it does not support my phone. The mods of other creators and the official client are installed without problem.

Can I somehow solve this? :confused:
[Android Apps and Games] matadors09:
Update ?
[Android Apps and Games] neekless:
V124 arm64 patched with no follower list crash.

https://www.androidfilehost.com/?fid=4349826312261701326

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.
[Android Apps and Games] zurik:
There's any way to re-enable the analytics on a business /creator account?
[Android Apps and Games] ricardofavmoreira:
Does anyone else get the "share IGTV videos" popup over the [ + ] icon every time they open the app with this version?

Other than this small annoyance the update is good. Thanks for the mod :)
[Android Apps and Games] DaiTeM:
thank you! just one minor annoyance:

in Italian language, for every sentence that ends with an ellipsis, the three dots are replaced by "\u2026" (see example in screenshots).
[Android Apps and Games] IonutGherman:
It's Instagram bug. I have it also and the language is set to UK.
[Android Apps and Games] Rolin_pt:
Thanks, works great after clean install
[Android Apps and Games] Koursaros:
Thanks! Works perfect for me too!

This bug with u2026 i had it beforehand install this up, so i believe it's from Instagram.
[Android Apps and Games] matteo2:
Do you have random force closing? I often have them and maybe I need clean install.

Inviato dal mio SM-G950F utilizzando Tapatalk
[Android Apps and Games] nreuge:
Yes, it's not very stable...
[Android Apps and Games] AsquareX:
Yes. For me it gets closed immediately after opening. But opening it for the second time keeps it running fine.
[Android Apps and Games] jineshpatel30:
Can you do similar magic and try to remove ads from Facebook main app ? It became bloated with tons of ads now in terms of sponsored, you may know, you may like and so on It would be great help.

PS: I'm aware of mod by [MENTION=5029215]evilwombat[/MENTION] in my signature but his method works on classes/dex modification and requires a lot of work. So if [MENTION=4714822]Grishka11[/MENTION] or [MENTION=5029215]evilwombat[/MENTION] can find some solution using this method it would be great for regular updates without breaking any functionality
[Android Apps and Games] rohithksaj:
Thank you my man ..it works like charm !
[Android Apps and Games] tinko975:
Can pictures be downloaded in this instagram version?
[Android Apps and Games] rohithksaj:
Nai. It's just normal insta without ads
[Android Apps and Games] neekless:
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.
[Android Apps and Games] fjoel:
Scam! WARNING, SCAM, SCAM, SCAM.

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!
[Android Apps and Games] kos25k:
wtf?i have instapro.is other version?
[Android Apps and Games] jrg67:
[Quote: fjoel Scam! WARNING, SCAM, SCAM, SCAM.

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!]

I have been using this since Sunday and do not have any unusual activity. For extra security, I just enabled 2FA but looking at my login activity, it only shows my phone. Maybe coincidence regarding your account? I'm thinking if this was a scam, there wouldn't be 26 pages of comments and users not having any issues like you've described. I could be wrong though and it is always better to be safe than sorry so I'll be keeping an eye on my account.
[Android Apps and Games] waylo:
It's suggestive, but hardly proof of anything. Someone just needs to know your insta handle and want it. They can try hacking it any number of ways. TFA can be activated if someone tries to 'change password' without knowing your existing password.