ReVanced / revanced-patches

🧩 Patches for ReVanced
https://revanced.app
GNU General Public License v3.0
2.45k stars 285 forks source link

bug: (Instagram) "Open supported links" functionality broken by patch #3776

Closed Vandino86 closed 4 weeks ago

Vandino86 commented 4 weeks ago

Bug description

When Instagram is installed normally via Google Play, "App info" --> Defaults --> "Set as default" --> enabling "Open supported links" will grant me access to the "Supported web addresses" menu (also in the "Set as default" menu) which looks like this (the last 4 entries were disabled by default):

Image

I downloaded an APK of Instagram and was able to patch it with the "Hide ads" patch (currently the only available patch for IG) and install it without error. However, the same "Supported web addresses" menu looks like this with "Open supported links" enabled:

Image

^All of these entries were disabled by default. However, "www.instagram.com" always disables itself. Every time I enable it, back out of the "Supported web addresses" menu, and then go back into it, it's disabled again. None of the other entries have this issue: when I enable them, they stay enabled. Same with the 4 entries in the same menu when using the version of Instagram straight from Google Play. As a result, I can't open "www.instagram.com" links using ReVanced Instagram; they just open up in my default browser (Cromite) instead.

For a workaround attempt, I copied and pasted a "www.instagram.com" link into Samsung Notes and got rid of the "www." portion so that it'll open in ReVanced Instagram instead of Cromite (ex. https://www.instagram.com/p/C1u8aRpy4t7/ --> https://instagram.com/p/C1u8aRpy4t7/), but tapping on the "instagram.com" link simply opens ReVanced Instagram without actually going to the post that the link is meant to go to.

I've patched and installed versions 352.1.0.41.100 & 353.0.0.46.90 (both arm64-v8a, 360-480 dpi) and they both have the same issue.

Error logs

No response

Solution

No response

Additional context

No response

Acknowledgements

oSumAtrIX commented 4 weeks ago

Install the unpatched app and see if it makes a difference.

Vandino86 commented 4 weeks ago

Install the unpatched app and see if it makes a difference.

Do you mean installing the unpatched APK instead of installing straight from Google Play? I tried that for a bit and the "Supported web addresses" menu looked the same as Google Play-installed IG, though I didn't test opening links.

oSumAtrIX commented 4 weeks ago

Do that as well as debug sign the Instagram APK (Using https://github.com/patrickfav/uber-apk-signer/releases/tag/v1.3.0 for example, lookup how to use this online) and test again.

Vandino86 commented 4 weeks ago

Do that as well as debug sign the Instagram APK (Using https://github.com/patrickfav/uber-apk-signer/releases/tag/v1.3.0 for example, lookup how to use this online) and test again.

"www.instagram.com" links work in unpatched IG 353.0.0.46.90 (installed via the APK saved on my phone).

I ran that program on my Windows 10 PC and I was able to resign both my unpatched and patched IG 353.0.0.46.90 APKs, but I'm not sure which one you want me to install and use (unpatched or patched).

oSumAtrIX commented 4 weeks ago

Try both then?

Vandino86 commented 4 weeks ago

Try both then?

I just tried the debug-signed version of the unpatched IG APK and then the debug-signed version of the ReVanced patched IG APK and they both have the same issues as non-debug-signed ReVanced IG: "www.instagram.com" is always disabled and links don't actually open to the post.

So I guess this is a signing issue rather than a ReVanced patching issue?

oSumAtrIX commented 4 weeks ago

Yep. Probably a limitation on Androids end.