更改cast hook逻辑

This commit is contained in:
LittleTurtle2333
2022-03-31 17:00:57 +08:00
parent f83d439374
commit daa3c02d1a

View File

@@ -6,17 +6,15 @@ import com.lt2333.simplicitytools.util.hasEnable
import com.lt2333.simplicitytools.util.xposed.base.HookRegister import com.lt2333.simplicitytools.util.xposed.base.HookRegister
object ForceSupportSendApp : HookRegister() { object ForceSupportSendApp : HookRegister() {
override fun init() { override fun init() {
hasEnable("force_support_send_app") {
findMethod("com.xiaomi.mirror.synergy.MiuiSynergySdk") { findMethod("com.xiaomi.mirror.synergy.MiuiSynergySdk") {
name == "isSupportSendApp" name == "isSupportSendApp"
}.hookMethod { }.hookMethod {
after { param -> after { param ->
hasEnable("force_support_send_app") {
param.result = true param.result = true
} }
} }
} }
} }
} }