Class RootRequiredAppDetector
- java.lang.Object
-
- org.forgerock.android.auth.detector.PackageDetector
-
- org.forgerock.android.auth.detector.RootRequiredAppDetector
-
- All Implemented Interfaces:
RootDetector
public class RootRequiredAppDetector extends PackageDetector
Check if root required App are installed
-
-
Constructor Summary
Constructors Constructor Description RootRequiredAppDetector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String[]getPackages()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- Overrides:
isRootedin classPackageDetector- Parameters:
context- The application context- Returns:
- 0 - 1 How likely the device is rooted, 0 - not likely, 0.5 - likely, 1 - Very likely
-
getPackages
protected java.lang.String[] getPackages()
- Specified by:
getPackagesin classPackageDetector
-
-