How adminzachary/enablemacosai works
RegionSpoof is a macOS kernel extension and setup tool that changes the platform’s reported region to enable Apple Intelligence eligibility. The main workflow is: the user installs the extension, its boot-time loader loads it, and the extension changes IORegistry properties that system services use to determine region and eligibility. Installation also locks the country-code cache to US; status and diagnosis are separate script modes. Runtime wiring for the scripts is summarized from the README; their source was not sampled.
Main entry points: install.sh Install script · RegionSpoof Installed kext · region-kext-load.sh Load script · RegionSpoof.cpp RegionSpoof service
Components 15
Setup and maintenance
- Install script
install.sh - Country-code cache
- System configuration
Boot-time loading
- LaunchDaemon config
com.local.regionkext.plist - Load script
region-kext-load.sh
Region override
- Installed kext
RegionSpoof.kext/Contents/MacOS/RegionSpoof - RegionSpoof service
src/RegionSpoof.cpp - IOKit personality
src/Info.plist - Kernel module entry
src/kmod_info.c - Platform IORegistry
Apple Intelligence
- MobileGestalt
- Eligibility service
- Apple Intelligence
- Account and language settings
Other components
- Mac administrator
Connections 17
- Mac administrator → Install script: runs
- Install script → Installed kext: installs
- Install script → LaunchDaemon config: configures startup
- Install script → Country-code cache: sets country US
- Install script → System configuration: checks status
- Install script → Eligibility service: diagnoses
- LaunchDaemon config → Load script: dispatches
- Load script → Installed kext: loads
- Load script → Eligibility service: refreshes
- IOKit personality → RegionSpoof service: matches device
- Kernel module entry → Installed kext: provides entry
- Installed kext → RegionSpoof service: runs service
- RegionSpoof service → Platform IORegistry: sets properties
- MobileGestalt → Platform IORegistry: reads region
- Eligibility service → MobileGestalt: checks region
- Eligibility service → Account and language settings: checks inputs
- Eligibility service → Apple Intelligence: determines eligibility