fix(Sync for Reddit - Spoof client): Fix patch by using correct fingerprints
This commit is contained in:
parent
68ec011003
commit
273bedc74c
1 changed files with 6 additions and 6 deletions
|
|
@ -63,7 +63,7 @@ val spoofClientPatch = spoofClientPatch(
|
||||||
val randomName = (0..100000).random()
|
val randomName = (0..100000).random()
|
||||||
val userAgent = "$randomName:app.revanced.$randomName:v1.0.0 (by /u/revanced)"
|
val userAgent = "$randomName:app.revanced.$randomName:v1.0.0 (by /u/revanced)"
|
||||||
|
|
||||||
imgurImageAPIFingerprint.method.replaceInstruction(
|
getUserAgentFingerprint.method.replaceInstruction(
|
||||||
0,
|
0,
|
||||||
"""
|
"""
|
||||||
const-string v0, "$userAgent"
|
const-string v0, "$userAgent"
|
||||||
|
|
@ -75,8 +75,8 @@ val spoofClientPatch = spoofClientPatch(
|
||||||
|
|
||||||
// region Patch Imgur API URL.
|
// region Patch Imgur API URL.
|
||||||
|
|
||||||
val apiUrlIndex = getUserAgentFingerprint.stringMatches!!.first().index
|
val apiUrlIndex = imgurImageAPIFingerprint.stringMatches!!.first().index
|
||||||
getUserAgentFingerprint.method.replaceInstruction(
|
imgurImageAPIFingerprint.method.replaceInstruction(
|
||||||
apiUrlIndex,
|
apiUrlIndex,
|
||||||
"const-string v1, \"https://api.imgur.com/3/image\"",
|
"const-string v1, \"https://api.imgur.com/3/image\"",
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue