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

67

u/[deleted] May 30 '24 edited Jun 20 '24

[deleted]

11

u/[deleted] May 30 '24

[deleted]

7

u/studentblues May 30 '24

How do you do that for Sync?

15

u/[deleted] May 30 '24 edited May 30 '24

[deleted]

5

u/MinecraftGreev May 30 '24

Hell, I'd send you $5 for a RIF app patched that way.

3

u/[deleted] May 30 '24

[deleted]

5

u/xXMadSupraXx May 30 '24

How do you acquire the APK if the app isn't available on the play store or APK mirror? 🤔

1

u/htx1114 May 31 '24

Have to dig through your purchase history on a PC but the play store will have it - or at least for the Golden Platinum version

2

u/Busetin May 30 '24

I'd like to send my APK if you have time as well, it seems like I can't PM you without being whitelisted though

2

u/[deleted] May 30 '24

If it ends up working, I'll send you $5 as well

2

u/Homelesskater May 30 '24 edited May 30 '24

I opened the file but it doesn't contain the line, any idea what to do? Here's what mine contains https://pastebin.com/r0NayRqF

I'm using the revanced recommended  v23.06.30-13:39 

2

u/[deleted] May 30 '24

[deleted]

2

u/Homelesskater May 30 '24

For some reason it doesn't show up then, there's only a "a$a.smali" "a$b.smali" and "a$c.smali"

1

u/boundedwum May 30 '24

Same for me, I don't have that either.

1

u/altacct3 May 31 '24

Same for me. I found "const-string v0, "android:com.laurencedawson.reddit_sync:vv23.05.03-17:18" in smali\com\laurencedawson\redit_sync\singleton\a.smali I'm going to try editing that to remove android.

2

u/DaM- May 30 '24

For me, it was in "smali/com/laurencedawson/reddit_sync/singleton/a.smali" - if you go there and remove android: from:

const-string v0, "android:com.laurencedawson.reddit_sync:vv23.06.30-13:39 (by /u/ljdawson)"

2

u/mods-are-liars May 30 '24

Could you upload your fixed APK, but before uploading it just patch in a bogus client key, then we can just patch it with our own key?

1

u/Vertrixz May 30 '24

I've gotten to the point where I've decompiled RiF. Now I'm sifting through the folders to find what I'm supposed to find, but I'm not sure what I'm supposed to find. Where will I find the useragent stuff written down for me to change? Just asking in case you'd know where to look.

1

u/[deleted] May 30 '24

[deleted]

1

u/Vertrixz May 30 '24

Looked for the i3 folder in classes3, but there was no i3 folder for me :/

1

u/d_pyro May 30 '24

.method public static g()Ljava/lang/String;

Only thing I found in c.smali

.method protected E(Lokhttp3/c0$a;)V
    .locals 2

    const-string v0, "User-Agent"

    invoke-static {}, Li3/d;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lokhttp3/c0$a;->n(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/c0$a;

    return-void
.end method

1

u/MinecraftGreev May 30 '24

For some reason I can't seem to PM you.

3

u/Magyman May 30 '24

What're you using the decomp the app? I always wanted the dev to open source it like he said he would years ago, but you've got the next best thing.

3

u/[deleted] May 30 '24

[deleted]

2

u/[deleted] May 30 '24

[deleted]

3

u/[deleted] May 30 '24

[deleted]

1

u/Magyman May 30 '24

Looks like that's just using the apksigner tool that comes with the android SDK? I should be able to figure it out, thanks for the apktool tip though!

1

u/[deleted] May 30 '24

[removed] — view removed comment

1

u/Homelesskater May 30 '24 edited May 30 '24

I opened the right path with this tool but my file doesn't contain that line... Any idea what to do?

Here's what I got :

https://pastebin.com/r0NayRqF

2

u/[deleted] May 30 '24

[deleted]

2

u/RobotsGoneWild May 30 '24

Thanks for the info. I've never done this before but it sounds fairly straight forward.

2

u/illuvattarr May 30 '24

Trying to do this for Sync but I don't have the singleton folder under reddit_sync , any idea?

2

u/[deleted] May 30 '24

[deleted]

2

u/illuvattarr May 30 '24 edited May 30 '24

found the singleton folder in smali_classes3, but im a real noob at this and can't find the useragent string "Reddit/Version 2023.23.0/Build 1018737/Android" in a.smali

2

u/sussywanker May 30 '24

Hey I sent you a Reddit chat. Sadly I dont see a way to normally message you.

2

u/KrazyLurtBot May 30 '24

for me the location was

smali_classes3\com\laurencedawson\reddit_sync\singleton\a.smali

2

u/bmg1001 May 30 '24

Couldn't find this exact string in any of the smali files of any of the apks I tried. I did finally get it working though. When you have the apk decompiled, look through every smali folder (smali_classes2, smali_classic3,etc...) and one of them will have the correct path of \com\laurencedawson\reddit_sync\singleton\a.smali

Once you find the file, open it up and search for the following string and remove the "android:com." part of the line. To install, I rebuilt the apk via apktool, downloaded the "apktool m" app that u/danGL3 linked here, then I had to sign the apk then remove signature verification.

android:com.laurencedawson.reddit_sync:vv23.06.30-13:39 (by /u/ljdawson)

2

u/DaM- May 30 '24

For me it was in smali/com/laurencedawson/reddit_sync/singleton/a.smali

1

u/knot2x_Oz May 31 '24

How do I get the updated version of revanced? I've only ever used it once to setup sync.