Skip to content

Commit

Permalink
Update ForceSupportBarrage.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
YifePlayte committed Aug 22, 2024
1 parent a22d457 commit 9138b25
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import com.github.kyuubiran.ezxhelper.ClassUtils.setStaticObject
import com.github.kyuubiran.ezxhelper.EzXHelper.appContext
import com.github.kyuubiran.ezxhelper.EzXHelper.safeClassLoader
import com.github.kyuubiran.ezxhelper.HookFactory.`-Static`.createHook
import com.github.kyuubiran.ezxhelper.Log
import com.github.kyuubiran.ezxhelper.finders.MethodFinder.`-Static`.methodFinder
import com.yifeplayte.wommo.hook.hooks.BaseMultiHook
import com.yifeplayte.wommo.hook.utils.DexKit.dexKitBridge
Expand Down Expand Up @@ -52,6 +53,13 @@ object ForceSupportBarrage : BaseMultiHook() {
}
}
}
dexKitBridge.findMethod{
matcher {
usingStrings = listOf("isApplicationFloatNotificationEnable fail ")
}
}.single().getMethodInstance(safeClassLoader).createHook {
returnConstant(true)
}
}

private fun hookForBarrage() {
Expand Down

0 comments on commit 9138b25

Please sign in to comment.