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] 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"); - } }