Class NativeDetector

  • All Implemented Interfaces:
    RootDetector

    public class NativeDetector
    extends FileDetector
    Check su command natively using NDK
    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      NativeDetector()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int exists​(java.lang.Object[] pathArray)  
      protected java.lang.String[] getFilenames()  
      double isRooted​(android.content.Context context)
      Detect the device is rooted.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NativeDetector

        public NativeDetector()
    • Method Detail

      • exists

        public int exists​(java.lang.Object[] pathArray)
      • isRooted

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