Skip to content

Commit f1248a7

Browse files
author
weishu.tws
committed
[VXP]: disable hotpatch of QQ.
1 parent 3597465 commit f1248a7

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

exposed-core/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dependencies {
3131
}
3232

3333
group = 'me.weishu.exposed'
34-
version = '0.5.4'
34+
version = '0.5.5'
3535

3636
apply plugin: 'com.novoda.bintray-release'
3737

exposed-core/src/main/java/me/weishu/exposed/ExposedBridge.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import android.content.Context;
66
import android.content.Intent;
77
import android.content.ServiceConnection;
8+
import android.content.SharedPreferences;
89
import android.content.pm.ApplicationInfo;
910
import android.os.Build;
1011
import android.os.IBinder;
@@ -107,6 +108,7 @@ public static void initOnce(Context context, ApplicationInfo applicationInfo, Cl
107108
initForXposedModule(context, applicationInfo, appClassLoader);
108109
initForXposedInstaller(context, applicationInfo, appClassLoader);
109110
initForWechat(context, applicationInfo, appClassLoader);
111+
initForQQ(context, applicationInfo, appClassLoader);
110112
}
111113

112114
private static boolean patchSystemClassLoader() {
@@ -419,6 +421,22 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
419421
});
420422
}
421423

424+
@SuppressLint("ApplySharedPref")
425+
private static void initForQQ(Context context, ApplicationInfo applicationInfo, ClassLoader appClassLoader) {
426+
if (applicationInfo == null) {
427+
return;
428+
}
429+
final String QQ = decodeFromBase64("Y29tLnRlbmNlbnQubW9iaWxlcXE=");
430+
if (!QQ.equals(applicationInfo.packageName)) {
431+
return;
432+
}
433+
if (QQ.equals(applicationInfo.processName)) {
434+
SharedPreferences sp = context.getSharedPreferences(decodeFromBase64("aG90cGF0Y2hfcHJlZmVyZW5jZQ=="), // hotpatch_preference
435+
Context.MODE_PRIVATE);
436+
sp.edit().remove(decodeFromBase64("a2V5X2NvbmZpZ19wYXRjaF9kZXg=")).commit(); // key_config_patch_dex
437+
}
438+
}
439+
422440
private static void initForWechat(Context context, ApplicationInfo applicationInfo, ClassLoader appClassLoader) {
423441
if (applicationInfo == null) {
424442
return;

0 commit comments

Comments
 (0)