Skip to content

Commit 806638f

Browse files
committed
fix(Mapy): Add support for latest version 9.70.1.
1 parent 625f277 commit 806638f

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

patches/api/patches.api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public final class app/revanced/patches/mapy/misc/spoof/BypassSignatureCheckKt {
2323
}
2424

2525
public final class app/revanced/patches/mapy/premium/UnlockPremiumPatchKt {
26-
public static final fun getBypassSignatureCheck ()Lapp/revanced/patcher/patch/BytecodePatch;
26+
public static final fun getUnlockPremiumPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
2727
}
2828

2929
public final class app/revanced/patches/park4night/subscription/UnlockProPatchKt {

patches/src/main/kotlin/app/revanced/patches/mapy/premium/Fingerprints.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ internal val userInfoFromJsonFingerprint = fingerprint {
1111
internal val featuresSyntheticInitFingerprint = fingerprint {
1212
custom { method, classDef ->
1313
method.name == "<init>" && classDef.endsWith("/FeaturesApiModel;")}
14-
parameters("I", "Z", "Z", "Z", "I", "Z", "Z", "Z", "L")
15-
}
14+
parameters("I", "Z", "Z", "Z", "I", "Z", "Z", "Z", "Z", "L")
15+
}

patches/src/main/kotlin/app/revanced/patches/mapy/premium/UnlockPremiumPatch.kt

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import com.android.tools.smali.dexlib2.Opcode
99
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
1010

1111
@Suppress("unused")
12-
val bypassSignatureCheck = bytecodePatch(
12+
val unlockPremiumPatch = bytecodePatch(
1313
name = "Unlock premium features",
1414
) {
15-
compatibleWith("cz.seznam.mapy")
15+
compatibleWith("cz.seznam.mapy"("9.70.1"))
1616

1717
execute {
1818
userInfoFromJsonFingerprint.method.apply {
@@ -31,13 +31,14 @@ val bypassSignatureCheck = bytecodePatch(
3131

3232
featuresSyntheticInitFingerprint.method.addInstructions(0,
3333
"""
34-
const/4 p2, 0x1
35-
const/4 p3, 0x1
36-
const/4 p4, 0x1
37-
const/4 p5, -0x1
38-
const/4 p6, 0x1
39-
const/4 p7, 0x1
40-
const/4 p8, 0x1
34+
const/4 p2, 0x1 # userBadge
35+
const/4 p3, 0x1 # advancedMyMaps
36+
const/4 p4, 0x1 # premiumSupport
37+
const/4 p5, -0x1 # offlineMapCount
38+
const/4 p6, 0x1 # customNavigationSpeeds
39+
const/4 p7, 0x1 # advancedRouting
40+
const/4 p8, 0x1 # watchSupport
41+
const/4 p9, 0x1 # peakfinder
4142
"""
4243
)
4344
}

0 commit comments

Comments
 (0)