mirror of
https://github.com/fankes/TSBattery.git
synced 2025-09-07 03:06:06 +08:00
Fix hook BaseChatPie failure bug
This commit is contained in:
@@ -145,10 +145,11 @@ class HookEntry : IYukiHookXposedInit {
|
|||||||
interceptBaseChatPie(methodName = "M3")
|
interceptBaseChatPie(methodName = "M3")
|
||||||
interceptBaseChatPie(methodName = "S")
|
interceptBaseChatPie(methodName = "S")
|
||||||
}
|
}
|
||||||
|
/** 8.9.0 贡献者:StarWishsama */
|
||||||
"8.9.0" -> {
|
"8.9.0" -> {
|
||||||
interceptBaseChatPie(methodName = "N3")
|
interceptBaseChatPie(methodName = "N3")
|
||||||
interceptBaseChatPie(methodName = "S")
|
interceptBaseChatPie(methodName = "S")
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
isHookClientSupport = false
|
isHookClientSupport = false
|
||||||
loggerD(msg = "$version not supported!")
|
loggerD(msg = "$version not supported!")
|
||||||
@@ -435,16 +436,8 @@ class HookEntry : IYukiHookXposedInit {
|
|||||||
hookModuleRunningInfo(isQQ = true)
|
hookModuleRunningInfo(isQQ = true)
|
||||||
hookQQSettingsSettingActivity(isQQ = true)
|
hookQQSettingsSettingActivity(isQQ = true)
|
||||||
if (prefs.get(DataConst.ENABLE_QQTIM_WHITE_MODE)) return@loadApp
|
if (prefs.get(DataConst.ENABLE_QQTIM_WHITE_MODE)) return@loadApp
|
||||||
/** 通过在 [SplashActivityClass] 里取到应用的版本号 */
|
/** 通过在生命周期里取到应用的版本号 */
|
||||||
SplashActivityClass.hook {
|
onAppLifecycle { onCreate { hookQQBaseChatPie(versionName) } }
|
||||||
injectMember {
|
|
||||||
method {
|
|
||||||
name = "doOnCreate"
|
|
||||||
param(BundleClass)
|
|
||||||
}
|
|
||||||
afterHook { hookQQBaseChatPie(instance<Activity>().versionName) }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* 干掉消息收发功能的电源锁
|
* 干掉消息收发功能的电源锁
|
||||||
* 每个版本的差异暂未做排查
|
* 每个版本的差异暂未做排查
|
||||||
|
Reference in New Issue
Block a user