forked from ferredoxin/QNotified
-
Notifications
You must be signed in to change notification settings - Fork 0
/
QQConfigTable.kt
99 lines (89 loc) · 3.38 KB
/
QQConfigTable.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/*
* QNotified - An Xposed module for QQ/TIM
* Copyright (C) 2019-2021 [email protected]
* https://github.com/ferredoxin/QNotified
*
* This software is non-free but opensource software: you can redistribute it
* and/or modify it under the terms of the GNU Affero General Public License
* as published by the Free Software Foundation; either
* version 3 of the License, or any later version and our eula as published
* by ferredoxin.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* and eula along with this software. If not, see
* <https://www.gnu.org/licenses/>
* <https://github.com/ferredoxin/QNotified/blob/master/LICENSE.md>.
*/
package me.singleneuron.qn_kernel.tlb
import cc.ioctl.hook.ReplyNoAtHook
import cc.ioctl.hook.VasProfileAntiCrash
import ltd.nextalone.hook.HideProfileBubble
import ltd.nextalone.hook.HideTotalNumber
import me.kyuubiran.hook.AutoMosaicName
import me.singleneuron.util.QQVersion.*
class QQConfigTable : ConfigTableInterface {
override val configs: Map<String?, Map<Long, Any>> = mapOf(
// 字符串关键字 updateProfileBubbleMsgView
HideProfileBubble::class.simpleName to mapOf(
QQ_8_3_9 to "S",
QQ_8_4_1 to "V",
QQ_8_4_5 to "V",
QQ_8_4_8 to "U",
QQ_8_4_10 to "Y",
QQ_8_4_17 to "Y",
QQ_8_4_18 to "Y",
QQ_8_5_0 to "Z",
QQ_8_5_5 to "Z",
),
VasProfileAntiCrash::class.java.simpleName to mapOf(
QQ_8_4_1 to "azfl",
QQ_8_4_5 to "azxy",
QQ_8_4_8 to "aymn",
QQ_8_4_10 to "Y",
QQ_8_4_17 to "Y",
QQ_8_4_18 to "Y",
QQ_8_5_0 to "com.tencent.mobileqq.profile.ProfileCardTemplate",
QQ_8_5_5 to "com.tencent.mobileqq.profile.ProfileCardTemplate",
QQ_8_6_0 to "com.tencent.mobileqq.profilecard.vas.component.template.VasProfileTemplateComponent",
),
//com.tencent.mobileqq.activity.aio.core.TroopChatPie中一般是包含R.id.blz的
HideTotalNumber::class.java.simpleName to mapOf(
QQ_8_4_1 to "bE",
QQ_8_4_5 to "bE",
QQ_8_4_8 to "r",
QQ_8_4_10 to "t",
QQ_8_4_17 to "t",
QQ_8_4_18 to "t",
QQ_8_5_0 to "s",
QQ_8_5_5 to "bz",
QQ_8_6_0 to "aE",
),
AutoMosaicName::class.java.simpleName to mapOf(
QQ_8_4_1 to "t",
QQ_8_4_5 to "t",
QQ_8_4_8 to "enableMosaicEffect",
QQ_8_4_10 to "enableMosaicEffect",
QQ_8_4_17 to "enableMosaicEffect",
QQ_8_4_18 to "enableMosaicEffect",
QQ_8_5_0 to "enableMosaicEffect",
QQ_8_5_5 to "r",
QQ_8_6_0 to "k",
),
)
override val rangingConfigs: Map<String?, Map<Long, Any>> = mapOf(
ReplyNoAtHook::class.java.simpleName to mapOf(
QQ_8_1_3 to "k",
QQ_8_1_5 to "l",
QQ_8_2_6 to "m",
QQ_8_3_6 to "n",
QQ_8_4_8 to "createAtMsg",
QQ_8_5_5 to "l",
QQ_8_6_0 to "__NOT_USED__",
),
)
}