Skip to content

Commit

Permalink
1、移除pyncmd音源
Browse files Browse the repository at this point in the history
  • Loading branch information
RainCat committed Jun 13, 2022
1 parent 41fd131 commit 3ed75c2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
Binary file modified app/src/main/assets/UnblockNeteaseMusic.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public class SettingHelper {

public static final String proxy_original_key = "β_proxy_original_key";
public static final String proxy_original_title = "代理源(空格隔开)";
public static final String proxy_original_default = "kuwo qq pyncmd kugou";
public static final String proxy_original_default = "kuwo qq kugou";

public static final String proxy_cover_key = "β_proxy_cover_key";
public static final String proxy_cover_title = "重新释放脚本";
Expand Down
10 changes: 0 additions & 10 deletions app/src/main/java/com/raincat/dolby_beta/hook/CdnHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,5 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
param.setResult(param.args[2]);
}
});

Class<?> okHttpClientBuilderClass = XposedHelpers.findClassIfExists("okhttp3.OkHttpClient$Builder", context.getClassLoader());
if (okHttpClientBuilderClass != null)
XposedBridge.hookAllMethods(okHttpClientBuilderClass, "addInterceptor", new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
super.beforeHookedMethod(param);
param.setResult(param.thisObject);
}
});
}
}
12 changes: 12 additions & 0 deletions app/src/main/java/com/raincat/dolby_beta/hook/ProxyHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import javax.net.ssl.SSLSocketFactory;

import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedBridge;
import de.robv.android.xposed.XposedHelpers;

import static de.robv.android.xposed.XposedBridge.hookAllConstructors;
import static de.robv.android.xposed.XposedHelpers.findAndHookMethod;
Expand Down Expand Up @@ -83,6 +85,16 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
}
});

Class<?> okHttpClientBuilderClass = XposedHelpers.findClassIfExists("okhttp3.OkHttpClient$Builder", context.getClassLoader());
if (okHttpClientBuilderClass != null)
XposedBridge.hookAllMethods(okHttpClientBuilderClass, "addInterceptor", new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
super.beforeHookedMethod(param);
param.setResult(param.thisObject);
}
});

if (isPlayProcess)
findAndHookMethod("com.netease.cloudmusic.service.PlayService", context.getClassLoader(), "onCreate", new XC_MethodHook() {
@Override
Expand Down

0 comments on commit 3ed75c2

Please sign in to comment.