BashDetector

@available(*, deprecated, message: "Use SuspiciousFilesExistenceDetector and SuspiciousFilesAccessibleDetector instead")
public class BashDetector : JailbreakDetector

BashDetector is a JailbreakDetector class, and is used as one of default JailbreakDetector’s detectors to determine whether the device is Jailbroken or not

  • Initializes BashDetector instance

    Declaration

    Swift

    public init()
  • Analyzes whether bash is accessible or not

    Note

    bash should not be accessible on non-Jailbroken device

    Declaration

    Swift

    public func analyze() -> Double

    Return Value

    return 1.0 if bash is accessible; otherwise returns 0.0