Class NativeDetector
- java.lang.Object
-
- org.forgerock.android.auth.detector.FileDetector
-
- org.forgerock.android.auth.detector.NativeDetector
-
- All Implemented Interfaces:
RootDetector
public class NativeDetector extends FileDetector
Check su command natively using NDK
-
-
Field Summary
-
Fields inherited from class org.forgerock.android.auth.detector.FileDetector
PATHS
-
-
Constructor Summary
Constructors Constructor Description NativeDetector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intexists(java.lang.Object[] pathArray)protected java.lang.String[]getFilenames()doubleisRooted(android.content.Context context)Detect the device is rooted.
-
-
-
Method Detail
-
exists
public int exists(java.lang.Object[] pathArray)
-
isRooted
public double isRooted(android.content.Context context)
Description copied from interface:RootDetectorDetect the device is rooted.- Specified by:
isRootedin interfaceRootDetector- Overrides:
isRootedin classFileDetector- 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 java.lang.String[] getFilenames()
- Specified by:
getFilenamesin classFileDetector
-
-