Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
nnjun committed May 29, 2021
1 parent 0fdd3b6 commit ef04d51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public void bindApplication(final String packageName, final String processName)
}
}

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();
Expand Down
13 changes: 0 additions & 13 deletions Bcore/src/main/java/top/niunaijun/blackbox/core/IOCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,4 @@ public void enableRedirect(Context context) {
}
VMCore.enableIO();
}

private void hideRoot(Map<String, String> 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");
}
}

0 comments on commit ef04d51

Please sign in to comment.