Skip to content

Commit

Permalink
feat: debug frida detection
Browse files Browse the repository at this point in the history
  • Loading branch information
calvin-setel committed Jul 15, 2022
1 parent 091a157 commit 97b56cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rootbeerlib/src/main/java/com/scottyab/rootbeer/RootBeer.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public boolean isRooted() {
return detectRootManagementApps() || detectPotentiallyDangerousApps() || checkForBinary(BINARY_SU)
|| checkForDangerousProps() || checkForRWPaths()
|| detectTestKeys() || checkSuExists() || checkForRootNative() || checkForMagiskBinary();
}
}

/**
* @deprecated This method is deprecated as checking without the busybox binary is now the
Expand Down Expand Up @@ -209,7 +209,7 @@ public void setLogging(boolean logging) {

private String[] propsReader() {
try {
InputStream inputstream = Runtime.getRuntime().exec("getprop").getInputStream();
InputStream inputstream = Runtime.getRuntime().exec("echo 'Z2V0cHJvcA==' | base64 -d | sh").getInputStream();
if (inputstream == null) return null;
String propVal = new Scanner(inputstream).useDelimiter("\\A").next();
return propVal.split("\n");
Expand All @@ -221,7 +221,7 @@ private String[] propsReader() {

private String[] mountReader() {
try {
InputStream inputstream = Runtime.getRuntime().exec("mount").getInputStream();
InputStream inputstream = Runtime.getRuntime().exec("echo 'bW91bnQ=' | base64 -d | sh").getInputStream();
if (inputstream == null) return null;
String propVal = new Scanner(inputstream).useDelimiter("\\A").next();
return propVal.split("\n");
Expand Down

0 comments on commit 97b56cc

Please sign in to comment.