5 Commits
3.98 ... 3.99

Author SHA1 Message Date
81331dfe81 Update version to 3.99 | Support QQ 8.9.0 and 8.9.1 2022-07-19 22:11:34 +08:00
20f1ceca4d Support QQ 8.9.0 and 8.9.1 2022-07-19 22:02:04 +08:00
fc8589f1ee Fix hook BaseChatPie failure bug 2022-07-19 21:57:06 +08:00
Fankesyooni
67378b2ebf Merge pull request #19 from StarWishsama/patch-1
适配 QQ 8.9.0
2022-07-17 01:04:11 +08:00
NoRainCity
bf4ecd8345 Update QQ 8.9.0 2022-07-16 20:53:33 +08:00
4 changed files with 12 additions and 15 deletions

View File

@@ -2,7 +2,7 @@
[![Blank](https://img.shields.io/badge/build-passing-brightgreen)](https://github.com/fankes/TSBattery) [![Blank](https://img.shields.io/badge/build-passing-brightgreen)](https://github.com/fankes/TSBattery)
[![Blank](https://img.shields.io/badge/license-AGPL3.0-blue)](https://github.com/fankes/TSBattery/blob/master/LICENSE) [![Blank](https://img.shields.io/badge/license-AGPL3.0-blue)](https://github.com/fankes/TSBattery/blob/master/LICENSE)
[![Blank](https://img.shields.io/badge/version-v3.98-green)](https://github.com/fankes/TSBattery/releases) [![Blank](https://img.shields.io/badge/version-v3.99-green)](https://github.com/fankes/TSBattery/releases)
[![Blank](https://img.shields.io/github/downloads/fankes/TSBattery/total?label=Release)](https://github.com/fankes/TSBattery/releases) [![Blank](https://img.shields.io/github/downloads/fankes/TSBattery/total?label=Release)](https://github.com/fankes/TSBattery/releases)
[![Blank](https://img.shields.io/github/downloads/Xposed-Modules-Repo/com.fankes.tsbattery/total?label=LSPosed%20Repo&logo=Android&style=flat&labelColor=F48FB1&logoColor=ffffff)](https://github.com/Xposed-Modules-Repo/com.fankes.tsbattery/releases) [![Blank](https://img.shields.io/github/downloads/Xposed-Modules-Repo/com.fankes.tsbattery/total?label=LSPosed%20Repo&logo=Android&style=flat&labelColor=F48FB1&logoColor=ffffff)](https://github.com/Xposed-Modules-Repo/com.fankes.tsbattery/releases)
[![Telegram](https://img.shields.io/badge/Follow-Telegram-blue.svg?logo=telegram)](https://t.me/XiaofangInternet) [![Telegram](https://img.shields.io/badge/Follow-Telegram-blue.svg?logo=telegram)](https://t.me/XiaofangInternet)

View File

@@ -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) }
}
}
/** /**
* 干掉消息收发功能的电源锁 * 干掉消息收发功能的电源锁
* 每个版本的差异暂未做排查 * 每个版本的差异暂未做排查

View File

@@ -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()) {

View File

@@ -5,8 +5,8 @@ plugins {
} }
ext { ext {
appVersionName = "3.98" appVersionName = "3.99"
appVersionCode = 21 appVersionCode = 22
enableR8 = true enableR8 = true
} }