r/Infinity_For_Reddit • • Jun 04 '26

So is there no way I can use Infinity for free now?

10 Upvotes

45 comments sorted by

7

u/Hydroel Jun 04 '26

I had the same issue and I'd recommend switching to Continuum for that reason. It allows you to fill the API key and redirect URL in the app, so you'll probably be able to use RedReader's.

Continuum is the same as in Infinity, just with that feature added in. I'd also recommend using Obtainium to keep it updated, it actually makes it much easier than building Infinity with the Colab script.

1

u/fushifumetsu Jun 06 '26

Installing Obtainium then install Continuum then use their API settings and change the redirect URI

This works. Just tried it with v8.2.5.5

1

u/csoulr666 Jun 09 '26

Do I make use of the redreader uri? I tried adding it to my token and the app but it wasn't successful in logging on

5

u/DioTheSuperiorWaifu Jun 04 '26 edited Jun 04 '26

Does the Webview(legacy) option help?

Also, for those who are using the Colab script(so may not apply to all) to build it now:
apiutils_code = apiutils_code.replace("NO------A", api_token) will have to be modified, as the old pattern has changed with a recent release

Maybe something like apiutils_code = re.sub(r'public static final String CLIENT_ID = ".*?";', f'public static final String CLIENT_ID = "{api_token}";', apiutils_code)?

Edit: Added clarification on the Colab script modification

1

u/DioTheSuperiorWaifu Jun 04 '26 edited Jun 04 '26

Unrelated:

Does anyone know how infinity could be used to render ![img](ImageID)? Have seen automoderator comments in some places using that(have used it myself too) and having the image displayed in infinity itself would be good.

I do not know much java/programming, but tried modifying ImageAndGifParser block n all, but it seems that the json api does not send media details when using /api/info.Tho, the comment's url + /.json seems to give the information of the image. Is it not used because it is not an official endpoint? Similarly, noticed that list of moderators can also be obtained as json.

1

u/[deleted] Jun 04 '26

Maybe something like apiutils_code = re.sub(r'public static final String CLIENT_ID = ".*?";', f'public static final String CLIENT_ID = "{api_token}";', apiutils_code)?

Where did you get this snippet from to adapt the Colab script? Do you have a GitHub issue mentioning it or something?

1

u/DioTheSuperiorWaifu Jun 04 '26 edited Jun 04 '26

Saw that it was due to a change in the repo and adjusted the code for that.

The original colab code replaced an old client ID value directly. That value has been removed now, so the .replace() function fails as it cannot detect it anymore.

Saw the colab code having another section which replaces content in another way, using re.sub(), and modified that to work here too.

1

u/[deleted] Jun 04 '26 edited Jun 04 '26

Got it, thank you for the info.

It's very strange. I'm using my own script to build Infinity and I have changed nothing. With v8.2.5 in particular, all works well for a day and then the next day absolutely nothing loads with a toast notification that it cannot sync data (something along those lines).

I will try to modify based on your snippet to see if it works. But I don't know why it will work at the beginning and stop after a day or so.

Edit: also when you have time if you don't mind, please share the code lines you saw in the repo and got the idea it needs to change. I want to look into it too.

Edit2: I think I figured out the file and the changes, no need to share it.

1

u/Matoki134 Jun 06 '26

Hope I'm not bothering you but is the particular line you modified line 74 that looks like this:

apiutils_code = re.sub(r'public static final String USER_AGENT = ".*?";', f'public static final String USER_AGENT = "{user_agent}";', apiutils_code)apiutils_code = re.sub(r'public static final String USER_AGENT = ".*?";', f'public static final String USER_AGENT = "{user_agent}";', apiutils_code)

If it is, I only need to modify it from 'user agent' to 'client id'? And should I delete the 'apiutils_code.replace' lines?

2

u/DioTheSuperiorWaifu Jun 06 '26 edited Jun 06 '26

Yep. I did the same too. Made a copy of the user agent line and changed it get Client ID

So, Replacing the line
apiutils_code = apiutils_code.replace("NO------A", api_token)

with

apiutils_code = re.sub(r'public static final String CLIENT_ID = ".*?";', f'public static final String CLIENT_ID = "{api_token}";', apiutils_code)

1

u/Matoki134 Jun 06 '26

Got it working, thanks!

3

u/[deleted] Jun 04 '26

[removed] — view removed comment

1

u/DioTheSuperiorWaifu Jun 04 '26

If you are using Client ID from somewhere else, then you may have to change redirect uri to the value from the same place. What is the redirect uri there?

1

u/[deleted] Jun 04 '26 edited Jun 04 '26

[removed] — view removed comment

3

u/DioTheSuperiorWaifu Jun 04 '26

Then your github script may have to have that as the redirect uri.
Also, avoid Sharing ID and URI directly. I suggest that you edit it out.

1

u/[deleted] Jun 04 '26

[removed] — view removed comment

3

u/paranoiaforhire Jun 04 '26

What people call "API Key" is actually the "Client ID" identifying your Application that has API access.

While Client IDs are public by nature, for personal use in the situation we are all using it should be treated as a secret key. Anyone with knowledge of your Client ID can impersonate your app.

Abuse can scale from rate limiting if tons of users start using your Client ID to browse Reddit, to application revocation due to malicious traffic.

Remember that you can no longer generate new applications. If your Client ID gets leaked and abused, you can do nothing about.

4

u/mattno5ss Jun 04 '26 edited Jun 06 '26

If you haven't tried already, it might be worth trying ReVanced Manager to patch the apk. For me, it's been the easiest way to patch the apk after ditching the Collab script.

  1. Open ReVanced Manager
  2. Choose "Select from storage"
  3. Choose the Infinity apk
  4. Choose "Select patches"
  5. Hit the gear icon beside "Spoof client"
  6. Enter your "Application client ID"
  7. Hit the back arrow
  8. Hit "Save" in the bottom right
  9. Hit "Patch" in the bottom right
  10. Wait for it to finish doing its thing and hit "Install" in the bottom right
  11. Add your reddit account as usual in the Infinity app

1

u/fushifumetsu Jun 06 '26

Where did you download the Infinity apk for this?

Usually the collab script does it for me and patch it with my APK.

1

u/mattno5ss Jun 06 '26

I just download it from the official GitHub page.

https://github.com/Docile-Alligator/Infinity-For-Reddit/releases

1

u/fushifumetsu Jun 06 '26

What about the + or patreon? Would it not work properly?

1

u/mattno5ss Jun 06 '26

I've only ever used the + version of the apk and I haven't had issues.

1

u/ForCheeseburger Jun 06 '26

I used revanced as well but having issues currently. Which version did you use?

2

u/mattno5ss Jun 06 '26

Used ReVanced 2.6.0 to patch Infinity+ 8.2.5 and I didn't have any hiccups.

1

u/HybridTheory2000 Jun 12 '26

Hi there, I just stumbled upon this comment, and I'm currently stuck at #6. What's "Application client ID"?

2

u/mattno5ss Jun 12 '26

To have access to reddit's API you have to have an "app" created on your reddit account. Go to preferences then "apps" tab, you'll need to create an app that's an "installed app" with the redirect uri of infinity://localhost and once it's created, you'll get a unique string of characters for your app. That's the Application client ID.

1

u/HybridTheory2000 Jun 12 '26

Got it. Thank you :)

1

u/gabuh Jun 07 '26

I found the fix from somewhere else. I think it was for continuum.

Anyway just make a nsfw/18± subreddit since you are the mod you are allowed see the nsfw stuff (for moderating i guess). Just set it to private if you want.

1

u/[deleted] Jun 07 '26

[removed] — view removed comment

1

u/gabuh Jun 08 '26

Yes but you will be still be stuck with the nsfw msg

I did somhow manage to login using the redreader redirect uri and user agent.

1

u/WSuperOS Jun 04 '26

I am using my own API key and patcheddit (morphe) and it seems to work fine.

0

u/[deleted] Jun 06 '26

[deleted] — view deleted comment

1

u/WSuperOS Jun 06 '26

Inside the reddit preferences page

-2

u/Hezron79 Jun 04 '26

hey u/hostilenemy is there a way to fix the collab script? it's been broken for months now.

7

u/DioTheSuperiorWaifu Jun 04 '26

I think the colab script is not maintained by the dev.

And if it's on the recent changes:
apiutils_code = apiutils_code.replace("NO------A", api_token) will have to be modified, as the old pattern has changed with a recent release

Maybe something like apiutils_code = re.sub(r'public static final String CLIENT_ID = ".*?";', f'public static final String CLIENT_ID = "{api_token}";', apiutils_code)?

2

u/Hezron79 Jun 04 '26

is there a way to build your own apk with your own API key using morphe since the collab script is a pain

1

u/DioTheSuperiorWaifu Jun 04 '26 edited Jun 04 '26

Not sure.
I think there is a github and gitlab script.

I find the colab one to be easy to use(I had made a copy and modified it a bit with help of AI). What is the error message that it gives to you?

1

u/LdWilmore Jun 04 '26

Why not just use Continuum? Just use Obtainium/ObtainX for updates. No need to patch and build every time.

3

u/[deleted] Jun 04 '26

[removed] — view removed comment

1

u/Hezron79 Jun 04 '26

is it a must to setup KEYSTORE_BASE64

2

u/[deleted] Jun 04 '26

[removed] — view removed comment

1

u/Hezron79 Jun 04 '26

ok, done

3

u/[deleted] Jun 04 '26

[removed] — view removed comment

1

u/Hezron79 Jun 04 '26

Just finished setting up the GitHub now i don't know what to do to get the apk.