public class RootBeer
extends java.lang.Object
| Constructor and Description |
|---|
RootBeer(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLoadNativeLibrary()
Checks if it is possible to load our native library
|
boolean |
checkForBinary(java.lang.String filename) |
boolean |
checkForBusyBoxBinary()
Checks various (Const.suPaths) common locations for the busybox binary (a well know root level program)
|
boolean |
checkForDangerousProps()
Checks for several system properties for
|
boolean |
checkForMagiskBinary()
Checks various (Const.suPaths) common locations for the magisk binary (a well know root level program)
|
boolean |
checkForNativeLibraryReadAccess()
Checks if device has ReadAccess to the Native Library
Precondition: canLoadNativeLibrary() ran before this and returned true
Description: RootCloak automatically blocks read access to the Native Libraries, however
allows for them to be loaded into memory.
|
boolean |
checkForRootNative()
Native checks are often harder to cloak/trick so here we call through to our native root checker
|
boolean |
checkForRWPaths()
When you're root you can change the permissions on common system directories, this method checks if any of these patha Const.pathsThatShouldNotBeWrtiable are writable.
|
boolean |
checkForSuBinary()
Checks various (Const.suPaths) common locations for the SU binary
|
boolean |
checkSuExists()
A variation on the checking for SU, this attempts a 'which su'
|
boolean |
detectPotentiallyDangerousApps()
Using the PackageManager, check for a list of well known apps that require root.
|
boolean |
detectPotentiallyDangerousApps(java.lang.String[] additionalDangerousApps)
Using the PackageManager, check for a list of well known apps that require root.
|
boolean |
detectRootCloakingApps()
Using the PackageManager, check for a list of well known root cloak apps.
|
boolean |
detectRootCloakingApps(java.lang.String[] additionalRootCloakingApps)
Using the PackageManager, check for a list of well known root cloak apps.
|
boolean |
detectRootManagementApps()
Using the PackageManager, check for a list of well known root apps.
|
boolean |
detectRootManagementApps(java.lang.String[] additionalRootManagementApps)
Using the PackageManager, check for a list of well known root apps.
|
boolean |
detectTestKeys()
Release-Keys and Test-Keys has to do with how the kernel is signed when it is compiled.
|
boolean |
isRooted()
Run all the checks.
|
boolean |
isRootedWithoutBusyBoxCheck()
Run all the checks apart from checking for the busybox binary.
|
void |
setLogging(boolean logging) |
public boolean isRooted()
isRootedWithoutBusyBoxCheckpublic boolean isRootedWithoutBusyBoxCheck()
public boolean detectTestKeys()
public boolean detectRootManagementApps()
public boolean detectRootManagementApps(java.lang.String[] additionalRootManagementApps)
additionalRootManagementApps - - array of additional packagenames to search forpublic boolean detectPotentiallyDangerousApps()
public boolean detectPotentiallyDangerousApps(java.lang.String[] additionalDangerousApps)
additionalDangerousApps - - array of additional packagenames to search forpublic boolean detectRootCloakingApps()
public boolean detectRootCloakingApps(java.lang.String[] additionalRootCloakingApps)
additionalRootCloakingApps - - array of additional packagenames to search forpublic boolean checkForSuBinary()
public boolean checkForMagiskBinary()
public boolean checkForBusyBoxBinary()
public boolean checkForBinary(java.lang.String filename)
filename - - check for this existence of this filepublic void setLogging(boolean logging)
logging - - set to true for loggingpublic boolean checkForDangerousProps()
public boolean checkForRWPaths()
public boolean checkSuExists()
public boolean checkForNativeLibraryReadAccess()
public boolean canLoadNativeLibrary()
public boolean checkForRootNative()