mirror of
https://github.com/fankes/TSBattery.git
synced 2025-09-04 17:55:30 +08:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
81331dfe81
|
|||
20f1ceca4d
|
|||
fc8589f1ee
|
|||
|
67378b2ebf | ||
|
bf4ecd8345 |
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[](https://github.com/fankes/TSBattery)
|
[](https://github.com/fankes/TSBattery)
|
||||||
[](https://github.com/fankes/TSBattery/blob/master/LICENSE)
|
[](https://github.com/fankes/TSBattery/blob/master/LICENSE)
|
||||||
[](https://github.com/fankes/TSBattery/releases)
|
[](https://github.com/fankes/TSBattery/releases)
|
||||||
[](https://github.com/fankes/TSBattery/releases)
|
[](https://github.com/fankes/TSBattery/releases)
|
||||||
[](https://github.com/Xposed-Modules-Repo/com.fankes.tsbattery/releases)
|
[](https://github.com/Xposed-Modules-Repo/com.fankes.tsbattery/releases)
|
||||||
[](https://t.me/XiaofangInternet)
|
[](https://t.me/XiaofangInternet)
|
||||||
|
@@ -145,6 +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.1" -> {
|
||||||
|
interceptBaseChatPie(methodName = "N3")
|
||||||
|
interceptBaseChatPie(methodName = "S")
|
||||||
|
}
|
||||||
else -> {
|
else -> {
|
||||||
isHookClientSupport = false
|
isHookClientSupport = false
|
||||||
loggerD(msg = "$version not supported!")
|
loggerD(msg = "$version not supported!")
|
||||||
@@ -431,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) }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* 干掉消息收发功能的电源锁
|
* 干掉消息收发功能的电源锁
|
||||||
* 每个版本的差异暂未做排查
|
* 每个版本的差异暂未做排查
|
||||||
|
@@ -51,7 +51,7 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
|
|||||||
"8.8.35", "8.8.38", "8.8.50", "8.8.55",
|
"8.8.35", "8.8.38", "8.8.50", "8.8.55",
|
||||||
"8.8.68", "8.8.80", "8.8.83", "8.8.85",
|
"8.8.68", "8.8.80", "8.8.83", "8.8.85",
|
||||||
"8.8.88", "8.8.90", "8.8.93", "8.8.95",
|
"8.8.88", "8.8.90", "8.8.93", "8.8.95",
|
||||||
"8.8.98"
|
"8.8.98", "8.9.0", "8.9.1"
|
||||||
)
|
)
|
||||||
private val qqSupportVersion by lazy {
|
private val qqSupportVersion by lazy {
|
||||||
if (qqSupportVersions.isNotEmpty()) {
|
if (qqSupportVersions.isNotEmpty()) {
|
||||||
|
@@ -5,8 +5,8 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
appVersionName = "3.98"
|
appVersionName = "3.99"
|
||||||
appVersionCode = 21
|
appVersionCode = 22
|
||||||
enableR8 = true
|
enableR8 = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user