Skip to content

Commit

Permalink
Merge pull request nining377#252 from luoxingran/master
Browse files Browse the repository at this point in the history
优化一起听HOOK类逻辑
  • Loading branch information
nining377 authored Jun 15, 2022
2 parents 19c5ae8 + ec7f562 commit 74bc5d7
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ public ListentogetherHook(Context context, int versionCode) {
if (versionCode == 8007070) {
findAndHookMethod(findClass("com.netease.cloudmusic.module.listentogether.y", context.getClassLoader()),
"u", XC_MethodReplacement.returnConstant(true));
}else if (versionCode >= 8007065) {
}else if (versionCode > 8007055) {
findAndHookMethod(findClass("com.netease.cloudmusic.module.listentogether.x", context.getClassLoader()),
"u", XC_MethodReplacement.returnConstant(true));
}else if (versionCode >= 8007055) {
}else if (versionCode > 8007026) {
findAndHookMethod(findClass("com.netease.cloudmusic.module.listentogether.w", context.getClassLoader()),
"o", XC_MethodReplacement.returnConstant(true));
}else if (versionCode >= 8007026) {
}else if (versionCode > 8007004) {
findAndHookMethod(findClass("com.netease.cloudmusic.module.listentogether.w", context.getClassLoader()),
"n", XC_MethodReplacement.returnConstant(true));
}else if (versionCode >= 8007004) {
}else if (versionCode > 8006076) {
findAndHookMethod(findClass("com.netease.cloudmusic.module.listentogether.u", context.getClassLoader()),
"m", XC_MethodReplacement.returnConstant(true));
}else if (versionCode >= 8006076) {
}else if (versionCode > 8006045) {
findAndHookMethod(findClass("com.netease.cloudmusic.module.listentogether.r", context.getClassLoader()),
"l1", XC_MethodReplacement.returnConstant(true));
}else if (versionCode >= 8006045) {
}else if (versionCode == 8006045) {
findAndHookMethod(findClass("com.netease.cloudmusic.module.listentogether.p", context.getClassLoader()),
"h1", XC_MethodReplacement.returnConstant(true));
}
Expand Down

0 comments on commit 74bc5d7

Please sign in to comment.