gitmyhub

enableMacosAI

Shell ★ 1.8k updated 2mo ago

国行 Mac 一键开启完整 Apple 智能(端侧 + Private Cloud Compute 云端)· macOS 27 / Apple Silicon

A macOS kernel extension that spoofs a Mac's region code so China-region Apple Silicon Macs can enable full Apple Intelligence.

ShellC++macOS Kernel Extension

This repository, called RegionSpoof, is a tool for Mac computers bought in China that run macOS 27 on Apple Silicon chips. Its goal is to switch on the full set of Apple Intelligence features, which Apple normally blocks on Chinese-region machines. That includes the on-device features and the cloud features that run through Apple's Private Cloud Compute, such as the writing tools, Image Playground, Genmoji, Foundation Models, and the ChatGPT extension.

The reason Apple Intelligence stays off is that the system reads a region code of CH from the hardware. This project ships a small kernel extension, a low-level add-on to macOS, that changes the device region code from CH/A to the US value LL/A right at the source where the system reads it. Because the change happens at the source, every process across the system sees the US region without the tool needing to patch each one.

Installation is meant to be one command run with administrator rights. A script checks the system, installs the extension, sets it to load at startup, and refreshes the relevant background processes. The first time, you have to approve the extension in System Settings under Privacy and Security, then restart. There are also commands for checking status, running a diagnosis, and uninstalling.

The README is honest about the requirements and limits. System Integrity Protection must be turned off, a security setting that normally protects core system files. The extension only handles the region code; Apple Intelligence checks about ten other conditions, including your Apple account region and your system and Siri languages, and all of them must pass. The cloud features also depend on another security feature called AMFI staying on.

Much of the document is troubleshooting guidance: how to read diagnostic output, what specific error codes mean, and how to reset the cloud attestation pool when those features become unreliable. The author notes these are tested findings on their own hardware. This is a low-level system modification aimed at experienced users, not a casual app.

Where it fits