Files
driver_tripz/ios/Runner/JailbreakDetection.swift
Hamza-Ayed 153d2f64c0 25-3/18/1
2025-03-18 13:54:27 +03:00

27 lines
545 B
Swift
Executable File

//
// JailbreakDetection.swift
// Runner
//
// Created by Hamza Aleghwairyeen on 24/02/2025.
//
import Foundation
class JailbreakDetection {
static func isJailbroken() -> Bool {
let paths = [
"/Applications/Cydia.app",
"/Library/MobileSubstrate/MobileSubstrate.dylib",
"/usr/sbin/sshd",
"/etc/apt"
]
for path in paths {
if FileManager.default.fileExists(atPath: path) {
return true
}
}
return false
}
}