Class CommandDetector
- java.lang.Object
-
- org.forgerock.android.auth.detector.CommandDetector
-
- All Implemented Interfaces:
RootDetector
- Direct Known Subclasses:
SuCommandDetector
public abstract class CommandDetector extends java.lang.Object implements RootDetector
Check command exists
-
-
Constructor Summary
Constructors Constructor Description CommandDetector()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.String[]getCommands()doubleisRooted(android.content.Context context)Detect the device is rooted.
-
-
-
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
-
getCommands
protected abstract java.lang.String[] getCommands()
-
-