Skip to content

Commit 55a18f8

Browse files
committed
Add WeChat 6.5.13-1081 Support
1 parent 9ae4740 commit 55a18f8

File tree

2 files changed

+26
-13
lines changed

2 files changed

+26
-13
lines changed

app/src/main/java/com/yyxx/wechatfp/xposed/ObfuscationHelper.java

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,39 @@
55

66
public class ObfuscationHelper {
77

8-
private static int sVersionIdx = 0;
9-
108
public static class MM_Classes {
11-
public static Class<?> PayUI, FetchUI, Payview, WalletBaseUI, PreferenceAdapter;
9+
10+
public static Class<?> PayUI, FetchUI, PayView, WalletBaseUI, PreferenceAdapter;
1211

1312
private static void init(int idx, LoadPackageParam lpparam) throws Throwable {
1413
PayUI = XposedHelpers.findClass("com.tencent.mm.plugin.wallet.pay.ui." + new String[]{
1514
"WalletPayUI", //6.5.8
1615
"WalletPayUI", //6.5.10-1080
16+
"WalletPayUI", //6.5.13-1081
1717
"WalletPayUI", //6.5.13-1100
1818
}[idx], lpparam.classLoader);
19-
Payview = XposedHelpers.findClass("com.tencent.mm.plugin.wallet_core.ui." + new String[]{
19+
PayView = XposedHelpers.findClass("com.tencent.mm.plugin.wallet_core.ui." + new String[]{
2020
"l", //6.5.8
2121
"l", //6.5.10-1080
22-
"l", //6.5.10-1061
22+
"l", //6.5.13-1081
2323
"l", //6.5.13-1100
2424
}[idx], lpparam.classLoader);
2525
FetchUI = XposedHelpers.findClass("com.tencent.mm.plugin.wallet.balance.ui." + new String[]{
2626
"WalletBalanceFetchPwdInputUI", //6.5.8
2727
"WalletBalanceFetchPwdInputUI", //6.5.10-1080
28+
"WalletBalanceFetchPwdInputUI", //6.5.13-1081
2829
"WalletBalanceFetchPwdInputUI", //6.5.13-1100
2930
}[idx], lpparam.classLoader);
3031
WalletBaseUI = XposedHelpers.findClass("com.tencent.mm.wallet_core.ui." + new String[]{
3132
"WalletBaseUI", //6.5.8
3233
"WalletBaseUI", //6.5.10-1080
34+
"WalletBaseUI", //6.5.13-1081
3335
"WalletBaseUI", //6.5.13-1100
3436
}[idx], lpparam.classLoader);
3537
PreferenceAdapter = XposedHelpers.findClass("com.tencent.mm.ui.base.preference." + new String[]{
3638
"h", //6.5.8
3739
"h", //6.5.10-1080
40+
"h", //6.5.13-1081
3841
"h", //6.5.13-1100
3942
}[idx], lpparam.classLoader);
4043
}
@@ -53,36 +56,43 @@ private static void init(int idx) throws Throwable {
5356
PaypwdView = new String[]{
5457
"qVO", //6.5.8
5558
"ryk", //6.5.10-1080
59+
"rNe", //6.5.13-1081
5660
"rLB", //6.5.13-1100
5761
}[idx];
5862
PaypwdEditText = new String[]{
5963
"vyO", //6.5.8
6064
"wjm", //6.5.10-1080
65+
"wFP", //6.5.13-1081
6166
"wDJ", //6.5.13-1100
6267
}[idx];
6368
PayInputView = new String[]{
6469
"mOL", //6.5.8
6570
"nnG", //6.5.10-1080
71+
"npM", //6.5.13-1081
6672
"nol", //6.5.13-1100
6773
}[idx];
6874
PayTitle = new String[]{
6975
"qVK", //6.5.8
7076
"ryg", //6.5.10-1080
77+
"rMZ", //6.5.13-1081
7178
"rLw", //6.5.13-1100
7279
}[idx];
7380
Passwd_Text = new String[]{
7481
"qVK", //6.5.8
7582
"ryz", //6.5.10-1080
83+
"rNt", //6.5.13-1081
7684
"rLQ", //6.5.13-1100
7785
}[idx];
7886
PreferenceAdapter_vpQ = new String[]{
7987
"uoo", //6.5.8
8088
"uYA", //6.5.10-1080
89+
"vrF", //6.5.13-1081
8190
"vpQ", //6.5.13-1100
8291
}[idx];
8392
PreferenceAdapter_vpP = new String[]{
8493
"uon", //6.5.8
8594
"uYz", //6.5.10-1080
95+
"vrE", //6.5.13-1081
8696
"vpP", //6.5.13-1100
8797
}[idx];
8898
}
@@ -97,16 +107,19 @@ private static void init(int idx) throws Throwable {
97107
Finger_icon = new int[]{
98108
2130838280, //6.5.8
99109
2130838289, //6.5.10-1080
110+
2130838298, //6.5.13-1081
100111
2130838298, //6.5.13-1100
101112
}[idx];
102113
Finger_title = new int[]{
103114
2131236833, //6.5.8
104115
2131236918, //6.5.10-1080
116+
2131236963, //6.5.13-1081
105117
2131236964, //6.5.13-1100
106118
}[idx];
107119
Passwd_title = new int[]{
108120
2131236838, //6.5.8
109121
2131236923, //6.5.10-1080
122+
2131236968, //6.5.13-1081
110123
2131236969, //6.5.13-1100
111124
}[idx];
112125
}
@@ -127,17 +140,17 @@ public static boolean init(int versioncode, String versionName, LoadPackageParam
127140

128141
public static int isSupportedVersion(int versionCode, String versionName) {
129142
if (versionName.contains("6.5.8")) {
130-
sVersionIdx = 0;
131143
return 0;
132144
}
133145
if (versionName.contains("6.5.10") && versionCode == 1080) {
134-
sVersionIdx = 1;
135146
return 1;
136147
}
137-
if (versionName.contains("6.5.13") && versionCode == 1100) {
138-
sVersionIdx = 2;
148+
if (versionName.contains("6.5.13") && versionCode == 1081) {//Play版微信
139149
return 2;
140150
}
151+
if (versionName.contains("6.5.13") && versionCode == 1100) {
152+
return 3;
153+
}
141154
return -1;
142155
}
143156
}

app/src/main/java/com/yyxx/wechatfp/xposed/plugin/XposedWeChatPlugin.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
108108
}
109109
});
110110

111-
XposedHelpers.findAndHookConstructor(ObfuscationHelper.MM_Classes.Payview, Context.class, new XC_MethodHook() {
111+
XposedHelpers.findAndHookConstructor(ObfuscationHelper.MM_Classes.PayView, Context.class, new XC_MethodHook() {
112112
@TargetApi(21)
113113
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
114-
L.d("Payview Constructor");
114+
L.d("PayView Constructor");
115115

116116
if (mNeedFingerprint && mWalletPayUIActivity != null) {
117117
initFingerPrintLock();
@@ -154,10 +154,10 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
154154
}
155155
});
156156

157-
XposedHelpers.findAndHookMethod(ObfuscationHelper.MM_Classes.Payview, "dismiss", new XC_MethodHook() {
157+
XposedHelpers.findAndHookMethod(ObfuscationHelper.MM_Classes.PayView, "dismiss", new XC_MethodHook() {
158158
@TargetApi(21)
159159
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
160-
L.d("Payview dismiss");
160+
L.d("PayView dismiss");
161161
if (mWalletPayUIActivity != null) {
162162
mFingerprintIdentify.cancelIdentify();
163163
mWalletPayUIActivity = null;

0 commit comments

Comments
 (0)