Class 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
    • Field Detail

      • DEFAULT_DETECTORS

        public static final java.util.List<RootDetector> DEFAULT_DETECTORS
    • Method Detail

      • isRooted

        public double isRooted​(android.content.Context context)
        Description copied from interface: RootDetector
        Detect the device is rooted.
        Specified by:
        isRooted in interface RootDetector
        Parameters:
        context - The application context
        Returns:
        0 - 1 How likely the device is rooted, 0 - not likely, 0.5 - likely, 1 - Very likely
      • getDetectors

        public java.util.List<RootDetector> getDetectors()