更改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
object ForceSupportSendApp : HookRegister() {
override fun init() {
hasEnable("force_support_send_app") {
findMethod("com.xiaomi.mirror.synergy.MiuiSynergySdk") {
name == "isSupportSendApp"
}.hookMethod {
after { param ->
hasEnable("force_support_send_app") {
param.result = true
}
}
}
}
}