Skip to content

Commit

Permalink
Added isBusyboxAvailable
Browse files Browse the repository at this point in the history
  • Loading branch information
Stericson committed Jan 2, 2015
1 parent 47842ff commit ffca40e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion src/com/stericson/RootShell/RootShell.java
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,19 @@ public void commandOutput(int id, String line) {
}
}

/**
* @return <code>true</code> if BusyBox was found.
*/
public static boolean isBusyboxAvailable()
{
return (findBinary("busybox")).size() > 0;
}

/**
* @return <code>true</code> if su was found.
*/
public static boolean isRootAvailable() {
return (RootShell.findBinary("su")).size() > 0;
return (findBinary("su")).size() > 0;
}

/**
Expand Down

0 comments on commit ffca40e

Please sign in to comment.