commit 2b85856be024eb1943821c1351ab9c072d0df32e
parent fe777ff1d8a1e0fcb9662c14d988ed321627382e
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date:   Mon, 12 Feb 2024 21:28:31 +0100

refactor(core): remove unlimited multi snap feature

Diffstat:
MREADME.md | 1-
Mcommon/src/main/assets/lang/en_US.json | 4----
Mcommon/src/main/kotlin/me/rhunk/snapenhance/common/config/impl/Experimental.kt | 1-
Dcore/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/experiments/UnlimitedMultiSnap.kt | 25-------------------------
Mcore/src/main/kotlin/me/rhunk/snapenhance/core/manager/impl/FeatureManager.kt | 1-
5 files changed, 0 insertions(+), 32 deletions(-)

diff --git a/README.md b/README.md @@ -68,7 +68,6 @@ We no longer offer official LSPatch binaries for obvious reasons. However, you'r - Disable Spotlight - Enable Official App Appearance Settings (Darkmode) - Pin Conversations - - Multi Snap Limit bypass - Override Startup Page </details> diff --git a/common/src/main/assets/lang/en_US.json b/common/src/main/assets/lang/en_US.json @@ -672,10 +672,6 @@ "name": "My Eyes Only Passcode Bypass", "description": "Bypass the My Eyes Only passcode\nThis will only work if the passcode has been entered correctly before" }, - "unlimited_multi_snap": { - "name": "Unlimited Multi Snap", - "description": "Allows you to take an Unlimited Amount of Multi Snaps" - }, "no_friend_score_delay": { "name": "No Friend Score Delay", "description": "Removes the delay when viewing a Friends Score" diff --git a/common/src/main/kotlin/me/rhunk/snapenhance/common/config/impl/Experimental.kt b/common/src/main/kotlin/me/rhunk/snapenhance/common/config/impl/Experimental.kt @@ -16,7 +16,6 @@ class Experimental : ConfigContainer() { val appLockOnResume = boolean("app_lock_on_resume") val infiniteStoryBoost = boolean("infinite_story_boost") val meoPasscodeBypass = boolean("meo_passcode_bypass") - val unlimitedMultiSnap = boolean("unlimited_multi_snap") { addNotices(FeatureNotice.BAN_RISK)} val noFriendScoreDelay = boolean("no_friend_score_delay") { requireRestart()} val e2eEncryption = container("e2ee", E2EEConfig()) { requireRestart(); nativeHooks() } val hiddenSnapchatPlusFeatures = boolean("hidden_snapchat_plus_features") { diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/experiments/UnlimitedMultiSnap.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/experiments/UnlimitedMultiSnap.kt @@ -1,24 +0,0 @@ -package me.rhunk.snapenhance.core.features.impl.experiments - -import me.rhunk.snapenhance.core.features.Feature -import me.rhunk.snapenhance.core.features.FeatureLoadParams -import me.rhunk.snapenhance.core.util.hook.HookStage -import me.rhunk.snapenhance.core.util.hook.hookConstructor -import me.rhunk.snapenhance.core.util.ktx.setObjectField - -class UnlimitedMultiSnap : Feature("UnlimitedMultiSnap", loadParams = FeatureLoadParams.ACTIVITY_CREATE_ASYNC) { - override fun asyncOnActivityCreate() { - android.util.Pair::class.java.hookConstructor(HookStage.AFTER, { - context.config.experimental.unlimitedMultiSnap.get() - }) { param -> - val first = param.argNullable<Any>(0) - val second = param.argNullable<Any>(1) - if ( - first == true && // isOverTheLimit - second == 8 // limit - ) { - param.thisObject<Any>().setObjectField("first", false) - } - } - } -}- \ No newline at end of file diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/manager/impl/FeatureManager.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/manager/impl/FeatureManager.kt @@ -89,7 +89,6 @@ class FeatureManager( InfiniteStoryBoost(), AmoledDarkMode(), PinConversations(), - UnlimitedMultiSnap(), DeviceSpooferHook(), ClientBootstrapOverride(), GooglePlayServicesDialogs(),