Class FRRootDetector
- java.lang.Object
-
- org.forgerock.android.auth.detector.FRRootDetector
-
- All Implemented Interfaces:
RootDetector
public class FRRootDetector extends java.lang.Object implements RootDetector
Main Root Detector to detect device is rooted or not. Most of the detectors implementation are reference from Open Source library https://github.com/scottyab/rootbeer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFRRootDetector.FRRootDetectorBuilder
-
Field Summary
Fields Modifier and Type Field Description static RootDetectorDEFAULTstatic java.util.List<RootDetector>DEFAULT_DETECTORS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FRRootDetector.FRRootDetectorBuilderbuilder()java.util.List<RootDetector>getDetectors()doubleisRooted(android.content.Context context)Detect the device is rooted.
-
-
-
Field Detail
-
DEFAULT_DETECTORS
public static final java.util.List<RootDetector> DEFAULT_DETECTORS
-
DEFAULT
public static final RootDetector DEFAULT
-
-
Method Detail
-
isRooted
public double isRooted(android.content.Context context)
Description copied from interface:RootDetectorDetect the device is rooted.- Specified by:
isRootedin interfaceRootDetector- Parameters:
context- The application context- Returns:
- 0 - 1 How likely the device is rooted, 0 - not likely, 0.5 - likely, 1 - Very likely
-
builder
public static FRRootDetector.FRRootDetectorBuilder builder()
-
getDetectors
public java.util.List<RootDetector> getDetectors()
-
-