WiFi Country Code
An Xposed module to modify the Wi-Fi country code on Android devices, allowing you to bypass regional restrictions on Wi-Fi channels.
Features
- Override the Wi-Fi country code with any ISO 3166-1 alpha-2 code
- Enable/disable the hook at any time without rebooting the framework
- Quick select common country codes (US, CN, JP, GB, DE)
- Material Design 3 UI built with Jetpack Compose
Requirements
- Android 10 (API 29) or above
- Rooted device with an Xposed framework installed (e.g., LSPosed)
- Xposed API version 93+
Installation
- Download the latest APK from Releases
- Install the APK on your device
- Enable the module in your Xposed framework manager
- Select System Framework as the scope (the module will prompt this automatically)
- Reboot your device
Usage
- Open the app and navigate to the Configuration tab
- Toggle Enable Hook to activate the module
- Enter a two-letter country code (e.g.,
US, CN, JP, GB) or use the quick select buttons
- Tap Save to apply the configuration
- Reboot for the changes to take effect
How It Works
The module hooks into com.android.server.wifi.WifiCountryCode within system_server and overrides the following methods:
setTelephonyCountryCode — intercepts the telephony country code and replaces it with the configured value
pickCountryCode — returns the configured country code
getCountryCode — returns the configured country code
getCurrentDriverCountryCode — returns the configured country code
This effectively forces the Wi-Fi subsystem to operate under the specified country regulatory domain, unlocking Wi-Fi channels that may be restricted in your region.
Tech Stack
- Language: Kotlin
- UI: Jetpack Compose with Material Design 3
- Xposed Helper: EzXHelper 3.x
- Serialization: kotlinx-serialization-json
- Build: AGP 9.x, Gradle Kotlin DSL
Author
mirukurusan