r/revancedapp • • May 30 '24

Question/Problem Did reddit break third party apps dev token patch?

[removed] — view removed post

224 Upvotes

275 comments sorted by

View all comments

Show parent comment

68

u/remghoost7 May 30 '24 edited Jul 18 '24

edit - You do not need to patch this with Revanced. The changed line is the patch. You need to be a moderator to use it though (which can be done by making your own subreddit).

Here's a patched Boost 1.12.12 for anyone that might want it.

I changed the line above to "tacos" instead of "android" and it seems to work fine.I installed it via ADB.

You'll have to uninstall your prior version to install this one (since the signature is different).

I couldn't get Swift Backup to work (since you need to be rooted to backup the data), so I had to re-login to reddit. Just an FYI, it took a few restarts of the app for the login to work. I have no clue why. But it seems to work fine now that I'm logged in.

-=-

The comment above used to say this:

For boost, need to change useragent.

It's currently:

android:com.rubenmayayo.reddit:1.12.12-210011212 (by /u/rmayayo)

Remove "android"

com.rubenmayayo.reddit:1.12.12-210011212 (by /u/rmayayo)

If you want to modify it yourself, you'll have to download it from a site like APKMirror, then use apktool with a command like this:
apktool.bat boost.1.12.12.apk

The line you're looking for is line 161 in this file:
boost/smali_classes2/xb/l.smali

You'll recompile it with a command like this:
apktool.bat b "C:\path\to\decompiled\boost"

Then you'll have to re-sign it with uber-apk-signer using a command like this:
java -jar uber-apk-signer-1.3.0.jar -a boost.1.12.12.apk

-=-

Also, if anyone knows how to move the upvote/downvote buttons to the right side again, please let me know. I was using 1.12.7 which was before he made that change. Kind of hate it on the left (since I'm right handed). But I couldn't find that line in 1.12.7, so I patched 1.12.12 instead.

7

u/mezdup1 May 30 '24

Doing the Lord's work

4

u/Aurum0 May 30 '24 edited May 30 '24

Thank you so much for breaking it down step by step. Really appreciate it!!

Edit: Did the steps as described and boost is working completely fine again. Again thank you so much!

3

u/bigfootgary May 30 '24 edited May 31 '24

Thanks. I get 439: too many requests error.

I was able to login though.

Edit: login never actually works.. you login in the browser it pops up, but never goes through to app.

3

u/N0_Name_ May 30 '24 edited May 30 '24

I was getting the same thing but after logging in it looked like it started to work.

edit: nvm maybe. I installed it on my main phone after testing and now I can't login anymore. It gives me an error after I agree to connect the app.

editx2: Ok it went through now. Strange but it works I guess.

editx3: Looks like the too many request error comes in waves. After I was able to log in it was working for a while before it started to give me the error which in my case its error 429.

→ More replies (6)

2

u/I_wanted_to_be_duck May 31 '24

Make sure you have a subreddit You're a mod of.

For some reason my account lost its subreddit, and that was the reason I kept getting 439 errors

2

u/urvanity May 31 '24

Did this too. I don't get the 439 errors now.

→ More replies (3)
→ More replies (1)

3

u/501stRookie May 31 '24

Is it possible to do this for Reddit is Fun?

→ More replies (4)

2

u/ComputerSagtNein May 30 '24

Could you do that for Sync as well?

5

u/remghoost7 May 30 '24 edited May 31 '24

So, apparently you have to still patch this with Revanced, according to this comment. But then another comment says it won't patch....? Idk. I'm not an Android dev, I'm a python dev. Other than that, I have no clue. I altered the correct line and that's all I've got.

Best of luck!

edit - found the comment.

edit 2 - You need to be a moderator in order to use the version below, just an FYI. We're all allegedly taking advantage of the moderator API still being active.

Here's the altered version of Sync v23.06.30.

2

u/ComputerSagtNein May 30 '24

Do I just need to install it or patch it with revanced?

2

u/skyline_kid May 31 '24

I posted farther up but I did have to patch it since I'm not a mod and I kept getting Oauth errors. Might be different for you though

2

u/That1Guy5 May 30 '24

This fails to be patched by revanced

com.android.apksig.apk.MinSdkVersionException: Failed to determine APK's minimum supported Android platform version

→ More replies (9)
→ More replies (2)

2

u/starslam204 May 30 '24

Not sure if it's because I'm working from a different patch (1.12.11) but my l.smali file was in smalli_classes4/xb/

Also not an Android developer, don't know why that is. It's compiling properly though.

→ More replies (1)

2

u/WI_Dark May 31 '24 edited May 31 '24

YMMV- this worked for me.

TLDR- make your own private sub to get rid of too many requests error

I was having issues with the too many requests error. Somebody suggested making your own sub. I did that and the issues have gone away.

2

u/Bonald9056 May 31 '24

I've tried that but now it throws an unspecified "Error" (i.e. not a 429 error) and doesn't load anything.

→ More replies (2)

2

u/worldsokayestmarine May 31 '24

A god among men (or women). Thanks dude.

2

u/magiccoupons May 31 '24

How do we do this with Joey? Willing to give it a try myself.

2

u/remghoost7 May 31 '24

Not sure.
You'd have to find where that sort of line would live in the decompiled app.

They're apparently updating Revanced as we speak though, so you might go check over here for updates on an "official" way to do it.

→ More replies (2)

2

u/super_cyka_blyat May 31 '24

Settings -> General -> Views -> Thumbnails on the left

Click that box off and it should work

2

u/Nokadoki May 31 '24 edited May 31 '24

Trying to install this gives me an installation conflict saying that it was was prevented by an existing installation of the app even though I don't have any version of boost intalled. Anyone know any solution or where the issue may be coming from? Installing boost from an apk works but once revanced tries to install the patched apk it no longer works.

→ More replies (2)

2

u/pc-erin May 31 '24

The buttons moving is different card styles I think. In the upper right hit the context menu, then pick post view. The old style was Card, but the latest version might default to Card 2.0

Also, if you can't do the data backup, you'll lose all your user tags since those are stored in the app, not on reddit.

1

u/Chanw11 May 30 '24

Getting an error patching it

  • Logs Reading APK Decoding app manifest Loading patches Executing patches Applied 1 patches Compiling patched dex files Compiled 4 dex files Aligning APK Signing APK An error occurred: h1.f: Failed to determine APK's minimum supported Android platform version at g1.a.g(Unknown Source:16) at g1.a.n(Unknown Source:82) at g1.a.m(Unknown Source:61) at app.revanced.library.ApkSigner$Signer.signApk(SourceFile:2) at app.revanced.library.ApkUtils.sign(SourceFile:2) at app.revanced.manager.flutter.MainActivity.runPatcher$lambda$34(Unknown Source:553) at app.revanced.manager.flutter.MainActivity.k(Unknown Source:0) at app.revanced.manager.flutter.f.run(Unknown Source:20) at java.lang.Thread.run(Thread.java:1012) Caused by: j1.a: Data Descriptor presence mismatch between Local File Header and Central Directory for entry AndroidManifest.xml. LFH: true, CD: false at com.android.apksig.internal.zip.LocalFileRecord.getRecord(SourceFile:2) at com.android.apksig.internal.zip.LocalFileRecord.outputUncompressedData(SourceFile:1) at com.android.apksig.internal.zip.LocalFileRecord.getUncompressedData(Unknown Source:27) at g1.a.e(Unknown Source:12) at g1.a.g(Unknown Source:0) ... 8 more
→ More replies (5)
→ More replies (69)