From 8e1648322948151e4565fb0d86e0f37d0a02d73f Mon Sep 17 00:00:00 2001 From: Dawid Krajcarz <80264606+drobotk@users.noreply.github.com> Date: Wed, 2 Apr 2025 00:28:57 +0200 Subject: [PATCH] feat(Photomath): Support latest version (#4672) --- .../photomath/detection/deviceid/SpoofDeviceIdPatch.kt | 2 +- .../patches/photomath/detection/signature/Fingerprints.kt | 4 ++-- .../patches/photomath/misc/annoyances/HideUpdatePopupPatch.kt | 2 +- .../patches/photomath/misc/unlock/plus/UnlockPlusPatch.kt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/patches/src/main/kotlin/app/revanced/patches/photomath/detection/deviceid/SpoofDeviceIdPatch.kt b/patches/src/main/kotlin/app/revanced/patches/photomath/detection/deviceid/SpoofDeviceIdPatch.kt index 16c84b056..ca308be08 100644 --- a/patches/src/main/kotlin/app/revanced/patches/photomath/detection/deviceid/SpoofDeviceIdPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/photomath/detection/deviceid/SpoofDeviceIdPatch.kt @@ -12,7 +12,7 @@ val getDeviceIdPatch = bytecodePatch( ) { dependsOn(signatureDetectionPatch) - compatibleWith("com.microblink.photomath"("8.37.0")) + compatibleWith("com.microblink.photomath") execute { getDeviceIdFingerprint.method.replaceInstructions( diff --git a/patches/src/main/kotlin/app/revanced/patches/photomath/detection/signature/Fingerprints.kt b/patches/src/main/kotlin/app/revanced/patches/photomath/detection/signature/Fingerprints.kt index 5d7a20783..c6563270e 100644 --- a/patches/src/main/kotlin/app/revanced/patches/photomath/detection/signature/Fingerprints.kt +++ b/patches/src/main/kotlin/app/revanced/patches/photomath/detection/signature/Fingerprints.kt @@ -14,5 +14,5 @@ internal val checkSignatureFingerprint = fingerprint { Opcode.INVOKE_STATIC, Opcode.MOVE_RESULT, ) - strings("signatures") -} \ No newline at end of file + strings("SHA") +} diff --git a/patches/src/main/kotlin/app/revanced/patches/photomath/misc/annoyances/HideUpdatePopupPatch.kt b/patches/src/main/kotlin/app/revanced/patches/photomath/misc/annoyances/HideUpdatePopupPatch.kt index a3586de1c..e8e09b417 100644 --- a/patches/src/main/kotlin/app/revanced/patches/photomath/misc/annoyances/HideUpdatePopupPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/photomath/misc/annoyances/HideUpdatePopupPatch.kt @@ -11,7 +11,7 @@ val hideUpdatePopupPatch = bytecodePatch( ) { dependsOn(signatureDetectionPatch) - compatibleWith("com.microblink.photomath"("8.32.0")) + compatibleWith("com.microblink.photomath") execute { hideUpdatePopupFingerprint.method.addInstructions( diff --git a/patches/src/main/kotlin/app/revanced/patches/photomath/misc/unlock/plus/UnlockPlusPatch.kt b/patches/src/main/kotlin/app/revanced/patches/photomath/misc/unlock/plus/UnlockPlusPatch.kt index 8cc80c72e..1339a4477 100644 --- a/patches/src/main/kotlin/app/revanced/patches/photomath/misc/unlock/plus/UnlockPlusPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/photomath/misc/unlock/plus/UnlockPlusPatch.kt @@ -11,7 +11,7 @@ val unlockPlusPatch = bytecodePatch( ) { dependsOn(signatureDetectionPatch, enableBookpointPatch) - compatibleWith("com.microblink.photomath"("8.37.0")) + compatibleWith("com.microblink.photomath") execute { isPlusUnlockedFingerprint.method.addInstructions(