Class FileDetector
- java.lang.Object
-
- org.forgerock.android.auth.detector.FileDetector
-
- All Implemented Interfaces:
RootDetector
- Direct Known Subclasses:
BusyBoxProgramFileDetector,NativeDetector,RootProgramFileDetector
public abstract class FileDetector extends java.lang.Object implements RootDetector
Check file exists in predefined path
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String[]PATHS
-
Constructor Summary
Constructors Constructor Description FileDetector()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.String[]getFilenames()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
-
getFilenames
protected abstract java.lang.String[] getFilenames()
-
-