mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-12 19:31:17 +08:00
更改cast hook逻辑
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user