PrivateFileWritableDetector

@available(*, deprecated, message: "Use RestrictedDirectoriesWritableDetector instead")
public class PrivateFileWritableDetector : JailbreakDetector

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

  • Initializes PrivateFileWritableDetector instance

    Declaration

    Swift

    public init()
  • Analyzes whether the app can write to a private directory

    Note

    /private directory is a private access that should only be accessed through iOS system, and the app should not have an access to the location to write/read

    Declaration

    Swift

    public func analyze() -> Double

    Return Value

    returns 1.0 if the app has write access to /private directory; otherwise returns 0.0