How frs0n/gestaltedit works
GestaltEdit is an on-device iOS/iPadOS utility for changing MobileGestalt capabilities and fields, with backup, import, export, and restore. The main workflow is user edits or selects presets in the UI, the view model stages changes, and GestaltAccess reads, writes, and verifies the system plist; backups preserve the original data. A separate launch-time command supports setting the Siri AI US-region values. Some source excerpts are partial, so uncertain UI-to-respring wiring is omitted.
Main entry points: GestaltViewModel.swift Workflow state · GestaltAccess.m Gestalt access · AutomationCommand.swift Region command · GestaltBackupStore.swift Backup store
Components 14
App interface
- App entry
GestaltEdit/GestaltEditApp.swift - Tabbed editor
GestaltEdit/ContentView.swift
Gestalt editing
- Workflow state
GestaltEdit/GestaltViewModel.swift - Preset catalog
GestaltEdit/GestaltTweaks.swift - Plist and values
GestaltEdit/GestaltModels.swift
System and backups
- Gestalt access
GestaltEdit/GestaltAccess.m - Access lease
GestaltEdit/BadQueryBridge.m - Backup store
GestaltEdit/GestaltBackupStore.swift
Automation and respring
- Region command
GestaltEdit/AutomationCommand.swift - Respring view
GestaltEdit/NeoSpringView.swift
Other components
- Device user
- MobileGestalt plist
- Backup files
- iOS services
Connections 16
- Device user → Tabbed editor: edits and selects
- App entry → Workflow state: creates state
- App entry → Region command: checks arguments
- Tabbed editor → Workflow state: dispatches actions
- Workflow state → Gestalt access: reads and saves
- Workflow state → Preset catalog: applies presets
- Workflow state → Plist and values: updates plist values
- Workflow state → Backup store: manages backups
- Gestalt access → Access lease: acquires lease
- Access lease → iOS services: queries container
- Gestalt access → MobileGestalt plist: reads and writes
- Gestalt access → iOS services: uses system APIs
- Backup store → Backup files: stores and lists
- Region command → Gestalt access: reads and saves
- Region command → Backup store: creates backup
- Workflow state → Respring view: respring state