Skip to content

Commit adc7471

Browse files
committed
修复cookie类动态hook失败导致的8.7.86以上版本报错
1 parent 79d63d0 commit adc7471

5 files changed

Lines changed: 7 additions & 6 deletions

File tree

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ android {
88
applicationId "com.raincat.dolby_beta"
99
minSdkVersion 21
1010
targetSdkVersion 29
11-
versionCode 353
12-
versionName "3.5.3"
11+
versionCode 354
12+
versionName "3.5.4"
1313

1414
ndk {
1515
abiFilters "arm64-v8a"

app/src/main/java/com/raincat/dolby_beta/helper/ClassHelper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ public static String getCookie(Context context) {
145145
.filter(c -> c.getSuperclass() == Object.class)
146146
.filter(c -> Stream.of(c.getDeclaredFields()).anyMatch(m -> m.getType() == ConcurrentHashMap.class))
147147
.filter(c -> Stream.of(c.getDeclaredFields()).anyMatch(m -> m.getType() == SharedPreferences.class))
148-
.filter(c -> Stream.of(c.getDeclaredFields()).anyMatch(m -> m.getType() == File.class))
149148
.filter(c -> Stream.of(c.getDeclaredFields()).anyMatch(m -> m.getType() == long.class))
150149
.findFirst()
151150
.get();

app/src/main/java/com/raincat/dolby_beta/hook/LoginFixHook.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ public LoginFixHook(Context context) {
2323
@Override
2424
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
2525
super.beforeHookedMethod(param);
26-
if (param.args[0].equals("/api/login/cellphone")) {
26+
if (param.args[0].equals("/api/login/cellphone")
27+
|| param.args[0].equals("/api/login")
28+
|| param.args[0].equals("/api/login/sns")) {
2729
if (((String) param.args[1]).contains("\"checkToken\":\"\"")) {
2830
Class<?> watchmanClass = XposedHelpers.findClassIfExists("com.netease.mobsecurity.rjsb.watchman", context.getClassLoader());
2931
if (watchmanClass == null)

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
google()
77
}
88
dependencies {
9-
classpath "com.android.tools.build:gradle:4.1.3"
9+
classpath "com.android.tools.build:gradle:4.0.2"
1010
}
1111
}
1212

0 commit comments

Comments
 (0)