From ef04d51d7c54fef2080f0d7c6444185e5ed0b696 Mon Sep 17 00:00:00 2001 From: Milk <1871357815@qq.com> Date: Sat, 29 May 2021 20:50:00 +0800 Subject: [PATCH 1/2] remove useless code --- .../top/niunaijun/blackbox/app/BActivityThread.java | 2 +- .../java/top/niunaijun/blackbox/core/IOCore.java | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/Bcore/src/main/java/top/niunaijun/blackbox/app/BActivityThread.java b/Bcore/src/main/java/top/niunaijun/blackbox/app/BActivityThread.java index 67bba57..4e3bd80 100644 --- a/Bcore/src/main/java/top/niunaijun/blackbox/app/BActivityThread.java +++ b/Bcore/src/main/java/top/niunaijun/blackbox/app/BActivityThread.java @@ -138,7 +138,7 @@ public class BActivityThread extends IBActivityThread.Stub { } } - public synchronized void handleBindApplication(String packageName, String processName) { + private synchronized void handleBindApplication(String packageName, String processName) { DumpResult result = new DumpResult(); result.packageName = packageName; result.dir = new File(BlackBoxCore.get().getDexDumpDir(), packageName).getAbsolutePath(); diff --git a/Bcore/src/main/java/top/niunaijun/blackbox/core/IOCore.java b/Bcore/src/main/java/top/niunaijun/blackbox/core/IOCore.java index d52ae30..8f4a33e 100644 --- a/Bcore/src/main/java/top/niunaijun/blackbox/core/IOCore.java +++ b/Bcore/src/main/java/top/niunaijun/blackbox/core/IOCore.java @@ -124,17 +124,4 @@ public class IOCore { } VMCore.enableIO(); } - - private void hideRoot(Map rule) { - rule.put("/system/app/Superuser.apk", "/system/app/Superuser.apk-fake"); - rule.put("/sbin/su", "/sbin/su-fake"); - rule.put("/system/bin/su", "/system/bin/su-fake"); - rule.put("/system/xbin/su", "/system/xbin/su-fake"); - rule.put("/data/local/xbin/su", "/data/local/xbin/su-fake"); - rule.put("/data/local/bin/su", "/data/local/bin/su-fake"); - rule.put("/system/sd/xbin/su", "/system/sd/xbin/su-fake"); - rule.put("/system/bin/failsafe/su", "/system/bin/failsafe/su-fake"); - rule.put("/data/local/su", "/data/local/su-fake"); - rule.put("/su/bin/su", "/su/bin/su-fake"); - } } From da16322b422228e0744642e88b2464f7a46d3082 Mon Sep 17 00:00:00 2001 From: Milk <1871357815@qq.com> Date: Sat, 29 May 2021 20:52:42 +0800 Subject: [PATCH 2/2] change tips --- .../main/java/top/niunaijun/blackdex/view/main/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/top/niunaijun/blackdex/view/main/MainActivity.kt b/app/src/main/java/top/niunaijun/blackdex/view/main/MainActivity.kt index 1ac1c58..76e286d 100644 --- a/app/src/main/java/top/niunaijun/blackdex/view/main/MainActivity.kt +++ b/app/src/main/java/top/niunaijun/blackdex/view/main/MainActivity.kt @@ -106,7 +106,7 @@ class MainActivity : BaseActivity() { loadingView.dismiss() MaterialDialog(this).show { title(text = "脱壳失败") - message(text = "未知错误,可前往GitHub(https://github.com/CodingGay/BlackDex)提Issue") + message(text = "未知错误,可能是不兼容或者带有环境检测导致失败,可前往GitHub(https://github.com/CodingGay/BlackDex)提Issue") negativeButton(text = "Github") { val intent = Intent( Intent.ACTION_VIEW,