feat(Photomath): Support version 8.37.0
(#3109)
This commit is contained in:
parent
2e41ce2157
commit
fb02b481e2
|
@ -14,7 +14,7 @@ import kotlin.random.Random
|
||||||
name = "Spoof device ID",
|
name = "Spoof device ID",
|
||||||
description = "Spoofs device ID to mitigate manual bans by developers.",
|
description = "Spoofs device ID to mitigate manual bans by developers.",
|
||||||
dependencies = [SignatureDetectionPatch::class],
|
dependencies = [SignatureDetectionPatch::class],
|
||||||
compatiblePackages = [CompatiblePackage("com.microblink.photomath", ["8.32.0"])]
|
compatiblePackages = [CompatiblePackage("com.microblink.photomath", ["8.37.0"])]
|
||||||
)
|
)
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
object SpoofDeviceIdPatch : BytecodePatch(
|
object SpoofDeviceIdPatch : BytecodePatch(
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
package app.revanced.patches.photomath.detection.deviceid.fingerprints
|
package app.revanced.patches.photomath.detection.deviceid.fingerprints
|
||||||
|
|
||||||
import app.revanced.patcher.fingerprint.MethodFingerprint
|
import app.revanced.patcher.fingerprint.MethodFingerprint
|
||||||
|
import com.android.tools.smali.dexlib2.Opcode
|
||||||
|
|
||||||
internal object GetDeviceIdFingerprint : MethodFingerprint(
|
internal object GetDeviceIdFingerprint : MethodFingerprint(
|
||||||
returnType = "Ljava/lang/String;",
|
returnType = "Ljava/lang/String;",
|
||||||
strings = listOf("androidId", "android_id"),
|
opcodes = listOf(
|
||||||
|
Opcode.SGET_OBJECT,
|
||||||
|
Opcode.IGET_OBJECT,
|
||||||
|
Opcode.INVOKE_STATIC,
|
||||||
|
Opcode.MOVE_RESULT_OBJECT,
|
||||||
|
Opcode.IF_NEZ,
|
||||||
|
Opcode.INVOKE_STATIC,
|
||||||
|
Opcode.MOVE_RESULT_OBJECT,
|
||||||
|
Opcode.INVOKE_VIRTUAL,
|
||||||
|
Opcode.MOVE_RESULT_OBJECT,
|
||||||
|
Opcode.INVOKE_VIRTUAL,
|
||||||
|
),
|
||||||
parameters = listOf()
|
parameters = listOf()
|
||||||
)
|
)
|
|
@ -5,11 +5,9 @@ import com.android.tools.smali.dexlib2.Opcode
|
||||||
|
|
||||||
internal object CheckSignatureFingerprint : MethodFingerprint(
|
internal object CheckSignatureFingerprint : MethodFingerprint(
|
||||||
strings = listOf(
|
strings = listOf(
|
||||||
"packageInfo.signatures",
|
"signatures",
|
||||||
"currentSignature"
|
|
||||||
),
|
),
|
||||||
opcodes = listOf(
|
opcodes = listOf(
|
||||||
Opcode.CONST_STRING,
|
|
||||||
Opcode.CONST_STRING,
|
Opcode.CONST_STRING,
|
||||||
Opcode.INVOKE_STATIC,
|
Opcode.INVOKE_STATIC,
|
||||||
Opcode.INVOKE_STATIC,
|
Opcode.INVOKE_STATIC,
|
||||||
|
|
|
@ -13,7 +13,7 @@ import app.revanced.util.exception
|
||||||
name = "Hide update popup",
|
name = "Hide update popup",
|
||||||
description = "Prevents the update popup from showing up.",
|
description = "Prevents the update popup from showing up.",
|
||||||
dependencies = [SignatureDetectionPatch::class],
|
dependencies = [SignatureDetectionPatch::class],
|
||||||
compatiblePackages = [CompatiblePackage("com.microblink.photomath", ["8.32.0"])]
|
compatiblePackages = [CompatiblePackage("com.microblink.photomath", ["8.37.0"])]
|
||||||
)
|
)
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
object HideUpdatePopupPatch : BytecodePatch(
|
object HideUpdatePopupPatch : BytecodePatch(
|
||||||
|
|
|
@ -13,7 +13,7 @@ import app.revanced.patches.photomath.misc.unlock.plus.fingerprints.IsPlusUnlock
|
||||||
@Patch(
|
@Patch(
|
||||||
name = "Unlock plus",
|
name = "Unlock plus",
|
||||||
dependencies = [SignatureDetectionPatch::class, EnableBookpointPatch::class],
|
dependencies = [SignatureDetectionPatch::class, EnableBookpointPatch::class],
|
||||||
compatiblePackages = [CompatiblePackage("com.microblink.photomath", ["8.32.0"])]
|
compatiblePackages = [CompatiblePackage("com.microblink.photomath", ["8.37.0"])]
|
||||||
)
|
)
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
object UnlockPlusPatch : BytecodePatch(
|
object UnlockPlusPatch : BytecodePatch(
|
||||||
|
|
Loading…
Reference in a new issue