From f9a5dc6c91f37e9d7018e631739ca61511940d29 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Tue, 5 Dec 2023 00:42:18 +0100 Subject: [PATCH] feat(Photomath): Constrain patches to last working version --- .../patches/photomath/detection/deviceid/SpoofDeviceIdPatch.kt | 2 +- .../patches/photomath/misc/unlockplus/UnlockPlusPatch.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/photomath/detection/deviceid/SpoofDeviceIdPatch.kt b/src/main/kotlin/app/revanced/patches/photomath/detection/deviceid/SpoofDeviceIdPatch.kt index 1c57b8d0..d1c97cde 100644 --- a/src/main/kotlin/app/revanced/patches/photomath/detection/deviceid/SpoofDeviceIdPatch.kt +++ b/src/main/kotlin/app/revanced/patches/photomath/detection/deviceid/SpoofDeviceIdPatch.kt @@ -14,7 +14,7 @@ import kotlin.random.Random name = "Spoof device ID", description = "Spoofs device ID to mitigate manual bans by developers.", dependencies = [SignatureDetectionPatch::class], - compatiblePackages = [CompatiblePackage("com.microblink.photomath")] + compatiblePackages = [CompatiblePackage("com.microblink.photomath", ["8.32.0"])] ) @Suppress("unused") object SpoofDeviceIdPatch : BytecodePatch( diff --git a/src/main/kotlin/app/revanced/patches/photomath/misc/unlockplus/UnlockPlusPatch.kt b/src/main/kotlin/app/revanced/patches/photomath/misc/unlockplus/UnlockPlusPatch.kt index e9e7f539..15ec53ab 100644 --- a/src/main/kotlin/app/revanced/patches/photomath/misc/unlockplus/UnlockPlusPatch.kt +++ b/src/main/kotlin/app/revanced/patches/photomath/misc/unlockplus/UnlockPlusPatch.kt @@ -13,7 +13,7 @@ import app.revanced.patches.photomath.misc.unlockplus.fingerprints.IsPlusUnlocke @Patch( name = "Unlock plus", dependencies = [SignatureDetectionPatch::class, EnableBookpointPatch::class], - compatiblePackages = [CompatiblePackage("com.microblink.photomath")] + compatiblePackages = [CompatiblePackage("com.microblink.photomath", ["8.32.0"])] ) @Suppress("unused") object UnlockPlusPatch : BytecodePatch(