更改cast hook逻辑

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

View File

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