refactor(core): remove unlimited multi snap feature
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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") {
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,7 +89,6 @@ class FeatureManager(
|
||||
InfiniteStoryBoost(),
|
||||
AmoledDarkMode(),
|
||||
PinConversations(),
|
||||
UnlimitedMultiSnap(),
|
||||
DeviceSpooferHook(),
|
||||
ClientBootstrapOverride(),
|
||||
GooglePlayServicesDialogs(),
|
||||
|
||||
Reference in New Issue
Block a user