---
> [!WARNING]
> **Important Version Notice (2026-11-17)**: Apple has **patched `worse_query` in `iOS / iPadOS 27.3 beta 2` (`24C5049d`)** — updating breaks `MobileGestalt` access and resets existing tweaks. **Maximum supported version is `27.3 beta 1`**. Stay on **`iOS 27.2.1`** (best feature compatibility) and disable automatic updates.
## Overview
> **Not just a translation** — **Erosion-CN** is a bootloop-safe, zero-hardcoded-offset, bilingual (**English / 简体中文**) hardened edition of **[jailbreakdotparty/Erosion](https://github.com/jailbreakdotparty/Erosion)** built for **all regions & devices**.
While it began as a Simplified Chinese fork, it has evolved into an engineering-first overhaul with persistent in-place writes, runtime `libMobileGestalt.dylib` slot resolution, and dual-vault factory backups. Starting with **v0.9.0**, a single IPA ships with **full English + Simplified Chinese support**:
- Automatically matches your device's system language out of the box (English for all non-Chinese system locales, Simplified Chinese for `zh*`).
- Includes an instant **Language Switcher** in **Settings → App Language** (`Follow System` / `English` / `简体中文`).
> ⌨️ **Also by Kianuni**: **[Lokey](https://kianuni.github.io/Lokey-Audit/)** — Air-gapped, physically zero-network iOS 26-key Full Pinyin & Shuangpin keyboard pairing 1:1 native ergonomics with the on-device Inkstone engine ([TestFlight](https://testflight.apple.com/join/Bx9gxXTN) · [Audit Repo](https://github.com/Kianuni/Lokey-Audit) · [553k Frost Pack](https://github.com/Kianuni/lokey-frost-pack)).
> 📜 Full version history: [CHANGELOG.md](./CHANGELOG.md) · [Releases](https://github.com/Kianuni/Erosion-CN/releases)
> 📖 Independent Architecture Deep-Dive (zh-Hans, with SVG diagrams): [*From `worse_query` Escape to `MobileGestalt` Runtime Reconstruction: Inside Erosion-CN's Bootloop-Safe In-Place Write & Dual-Vault Architecture*](https://lijianfei.com/post/erosion-cn-ios-system-configuration-mobilegestalt-architecture/)
---
## Key Improvements Over Upstream
1. **Persistent In-Place MobileGestalt Writes & Bootloop Hardening**
- Replaces temp-file swaps (`replaceItemAt`) with a zero-byte-window in-place write protocol (`pwrite` at offset `0` + tail `ftruncate` + `fcntl(fd, F_FULLFSYNC)`), preserving original inode and `_mobilegestalt` ownership so tweaks survive reboots without reverting.
- Avoids injecting non-cached keys (such as `RegionInfo` on iOS 27) that trigger boot-time cache invalidation, and strips brick-prone toggles (regex-sliced iPadOS mode on iPhone, fake retail supervision).
- **Pre-Apply Diff Preview + Post-Write Readback Verification**: Previews every key/hex change before writing, saves a `PreApplyGestalt.plist` snapshot, and automatically rolls back on any readback mismatch.
2. **Lossless CoreFoundation Plist Serialization (No Camera Black Screen)**
- Preserves exact `CFBoolean` (`