Merge pull request #20 from chase535/patch-1

适配大量 QQ 8.x.x
This commit is contained in:
Fankesyooni
2022-07-20 12:50:43 +08:00
committed by GitHub
2 changed files with 68 additions and 9 deletions

View File

@@ -107,18 +107,74 @@ class HookEntry : IYukiHookXposedInit {
*/
private fun PackageParam.hookQQBaseChatPie(version: String) {
when (version) {
"8.2.11" -> {
"8.0.0" -> {
interceptBaseChatPie(methodName = "bq")
interceptBaseChatPie(methodName = "aL")
}
"8.0.5", "8.0.7" -> {
interceptBaseChatPie(methodName = "bw")
interceptBaseChatPie(methodName = "aQ")
}
"8.1.0", "8.1.3" -> {
interceptBaseChatPie(methodName = "bE")
interceptBaseChatPie(methodName = "aT")
}
"8.1.5" -> {
interceptBaseChatPie(methodName = "bF")
interceptBaseChatPie(methodName = "aT")
}
"8.1.8", "8.2.0", "8.2.6" -> {
interceptBaseChatPie(methodName = "bC")
interceptBaseChatPie(methodName = "aT")
}
"8.2.7", "8.2.8", "8.2.11", "8.3.0" -> {
interceptBaseChatPie(methodName = "bE")
interceptBaseChatPie(methodName = "aV")
}
"8.8.17" -> {
"8.3.5" -> {
interceptBaseChatPie(methodName = "bR")
interceptBaseChatPie(methodName = "aX")
}
"8.3.6" -> {
interceptBaseChatPie(methodName = "cp")
interceptBaseChatPie(methodName = "aX")
}
"8.3.9" -> {
interceptBaseChatPie(methodName = "cj")
interceptBaseChatPie(methodName = "aT")
}
"8.4.1", "8.4.5" -> {
interceptBaseChatPie(methodName = "ck")
interceptBaseChatPie(methodName = "aT")
}
"8.4.8", "8.4.10", "8.4.17", "8.4.18", "8.5.0" -> {
interceptBaseChatPie(methodName = "remainScreenOn")
interceptBaseChatPie(methodName = "cancelRemainScreenOn")
}
"8.5.5" -> {
interceptBaseChatPie(methodName = "bT")
interceptBaseChatPie(methodName = "aN")
}
"8.6.0", "8.6.5", "8.7.0", "8.7.5", "8.7.8", "8.8.0", "8.8.3", "8.8.5" -> {
interceptBaseChatPie(methodName = "ag")
interceptBaseChatPie(methodName = "ah")
}
"8.8.11", "8.8.12" -> {
interceptBaseChatPie(methodName = "bc")
interceptBaseChatPie(methodName = "bd")
}
"8.8.17", "8.8.20" -> {
interceptBaseChatPie(methodName = "bd")
interceptBaseChatPie(methodName = "be")
}
"8.8.23" -> {
"8.8.23", "8.8.28" -> {
interceptBaseChatPie(methodName = "bf")
interceptBaseChatPie(methodName = "bg")
}
"8.8.33" -> {
interceptBaseChatPie(methodName = "bg")
interceptBaseChatPie(methodName = "bh")
}
/** 8.8.35 贡献者StarWishsama */
"8.8.35", "8.8.38" -> {
interceptBaseChatPie(methodName = "bi")

View File

@@ -47,11 +47,14 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
private const val moduleVersion = BuildConfig.VERSION_NAME
private val qqSupportVersions = arrayOf(
"8.2.11(Play)", "8.8.17", "8.8.23",
"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.88", "8.8.90", "8.8.93", "8.8.95",
"8.8.98", "8.9.0", "8.9.1"
"8.0.0", "8.0.5", "8.0.7", "8.1.0", "8.1.3", "8.1.5", "8.1.8",
"8.2.0", "8.2.6", "8.2.7", "8.2.8", "8.2.11", "8.3.0", "8.3.5",
"8.3.6", "8.3.9", "8.4.1", "8.4.5", "8.4.8", "8.4.10", "8.4.17",
"8.4.18", "8.5.0", "8.5.5", "8.6.0", "8.6.5", "8.7.0", "8.7.5",
"8.7.8", "8.8.0", "8.8.3", "8.8.5", "8.8.11", "8.8.12", "8.8.17",
"8.8.20", "8.8.23", "8.8.28", "8.8.33", "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.88", "8.8.90",
"8.8.93", "8.8.95", "8.8.98", "8.9.0", "8.9.1"
)
private val qqSupportVersion by lazy {
if (qqSupportVersions.isNotEmpty()) {
@@ -221,4 +224,4 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
else -> binding.mainTextApiWay.text = "Activated by anonymous"
}
}
}
}