From dab59a5c06aada80b78f4c53f3163e07b9da6553 Mon Sep 17 00:00:00 2001 From: nining377 Date: Fri, 19 Feb 2021 00:26:50 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E5=A4=8D=E4=B8=8D=E7=9F=A5?= =?UTF-8?q?=E5=90=8D=E5=8E=9F=E5=9B=A0=E7=9A=84=E4=B8=8B=E8=BD=BD=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5bug=202=E3=80=81=E4=BF=AE=E5=A4=8D=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/raincat/dolby_beta/hook/AdAndUpdateHook.java | 2 ++ .../main/java/com/raincat/dolby_beta/hook/DownloadMD5Hook.java | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/raincat/dolby_beta/hook/AdAndUpdateHook.java b/app/src/main/java/com/raincat/dolby_beta/hook/AdAndUpdateHook.java index b5fa9ce6..60cbc2f6 100644 --- a/app/src/main/java/com/raincat/dolby_beta/hook/AdAndUpdateHook.java +++ b/app/src/main/java/com/raincat/dolby_beta/hook/AdAndUpdateHook.java @@ -56,6 +56,8 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable { Object urlObj = httpUrl.get(request); //加了一个反营销版权保护的URL,暂时作用未知 if (urlObj.toString().contains("appcustomconfig/get") || (removeAd && (urlObj.toString().contains("api/ad") || urlObj.toString().endsWith(".jpg") || urlObj.toString().endsWith(".mp4"))) || (removeUpdate && (urlObj.toString().contains("android/version") || urlObj.toString().contains("android/upgrade")))) { + if (urlObj.toString().contains("music.126.net")) + return; Field url = urlObj.getClass().getDeclaredField(urlFieldString); boolean urlAccessible = url.isAccessible(); url.setAccessible(true); diff --git a/app/src/main/java/com/raincat/dolby_beta/hook/DownloadMD5Hook.java b/app/src/main/java/com/raincat/dolby_beta/hook/DownloadMD5Hook.java index 359839eb..604a48be 100644 --- a/app/src/main/java/com/raincat/dolby_beta/hook/DownloadMD5Hook.java +++ b/app/src/main/java/com/raincat/dolby_beta/hook/DownloadMD5Hook.java @@ -28,9 +28,8 @@ public DownloadMD5Hook() { protected void beforeHookedMethod(MethodHookParam param) { final Object[] array = (Object[]) param.args[3]; String path = param.args[0].toString(); - if (((String) array[5]).length() == 32) { + if (((String) array[5]).length() == 32) return; - } array[5] = fileToMD5(path); param.args[3] = array; }