From 9138b250edf506eac25ddb204e69b5033da5032d Mon Sep 17 00:00:00 2001 From: YifePlayte <62252171+YifePlayte@users.noreply.github.com> Date: Thu, 22 Aug 2024 12:56:12 +0800 Subject: [PATCH] Update ForceSupportBarrage.kt --- .../wommo/hook/hooks/multipackage/ForceSupportBarrage.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/java/com/yifeplayte/wommo/hook/hooks/multipackage/ForceSupportBarrage.kt b/app/src/main/java/com/yifeplayte/wommo/hook/hooks/multipackage/ForceSupportBarrage.kt index e7eba4e..207ec7f 100644 --- a/app/src/main/java/com/yifeplayte/wommo/hook/hooks/multipackage/ForceSupportBarrage.kt +++ b/app/src/main/java/com/yifeplayte/wommo/hook/hooks/multipackage/ForceSupportBarrage.kt @@ -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 @@ -52,6 +53,13 @@ object ForceSupportBarrage : BaseMultiHook() { } } } + dexKitBridge.findMethod{ + matcher { + usingStrings = listOf("isApplicationFloatNotificationEnable fail ") + } + }.single().getMethodInstance(safeClassLoader).createHook { + returnConstant(true) + } } private fun hookForBarrage() {