commit 502e19aac77db31330e5e08f4dcf2cf0fd7f6dfd
parent 83e3b46f012c1161e2aad27e240a2dc4b1d77d12
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date:   Sat, 28 Jun 2025 11:27:46 +0200

chore: mod detection version check

Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com>

Diffstat:
Mcommon/src/main/kotlin/me/rhunk/snapenhance/common/config/ConfigConstants.kt | 4++--
Mcore/src/main/kotlin/me/rhunk/snapenhance/core/SecurityFeatures.kt | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/src/main/kotlin/me/rhunk/snapenhance/common/config/ConfigConstants.kt b/common/src/main/kotlin/me/rhunk/snapenhance/common/config/ConfigConstants.kt @@ -8,4 +8,4 @@ val RES_OBF_VERSION_CHECK = VersionCheck(maxVersion = ("13.7.0.42" to 157172)) /* After this version, Snapchat will start detecting modifications to their app (to be confirmed) */ -val MOD_DETECTION_VERSION_CHECK = VersionCheck(maxVersion = ("12.81.0.44 (126022)" to 126023))- \ No newline at end of file +val MOD_DETECTION_VERSION_CHECK = VersionCheck(maxVersion = ("12.33.1.19 (84704)" to 84704))+ \ No newline at end of file diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/SecurityFeatures.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/SecurityFeatures.kt @@ -40,7 +40,7 @@ class SecurityFeatures( private fun isSafeMode(): Boolean { val snapchatVersionCode = context.androidContext.packageManager?.getPackageInfo(context.androidContext.packageName, 0)?.longVersionCode ?: throw IllegalStateException("Failed to get version code") - val shouldUseSafeMode = MOD_DETECTION_VERSION_CHECK.checkVersion(snapchatVersionCode)?.second == VersionRequirement.OLDER_REQUIRED // true if version is >12.81.0.44 + val shouldUseSafeMode = MOD_DETECTION_VERSION_CHECK.checkVersion(snapchatVersionCode)?.second == VersionRequirement.OLDER_REQUIRED context.config.experimental.nativeHooks.customSharedLibrary.get().takeIf { it.isNotEmpty() }?.let { runCatching {