- GeminiService (integrations/gemini, @Global): extractDocument (OCR fields) + faceMatch; graceful if no GEMINI_API_KEY - documents: face-match now real via Gemini; POST /admin/documents/:id/ocr extracts fields for CS auto-fill - roles: PATCH /admin/users/:id/role (admin) + POST /platform/users/role (bootstrap via x-platform-secret) - config: gemini + platform.secret; .env.example entries Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
27 lines
545 B
Swift
Executable File
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
|
|
}
|
|
}
|