A KernelSU / Magisk module that forces your Android device's WiFi country code to any region, unlocking restricted 5 GHz, 6 GHz (WiFi 6E/7), and DFS channels. Fully configurable through a built-in WebUI — no terminal needed.
Android locks WiFi channels based on your region. Some countries block 5 GHz and 6 GHz channels, limit DFS bands, or reduce transmit power. This module overrides that restriction at boot, giving you access to all channels available in your chosen region.
Common use cases:
- Unlock 5 GHz channels (e.g. channels 100-144) blocked in your region
- Unlock 6 GHz channels (WiFi 6E/7) in regions where they're available (e.g. US, GB, DE)
- Access DFS channels for less congested WiFi
- Match your router's country code for better compatibility
- Travel between regions without WiFi limitations
- 140 country codes — Every code from the official Linux wireless-regdb
- WebUI configuration — Search, select, and apply from KernelSU Manager
- Live status panel — See current module state, active country code, and override status
- WiFi auto-restart — Optionally toggles WiFi off/on after applying so changes take effect immediately
- Operation log — Real-time step-by-step log of every action after applying
- Persistent config — Settings survive reboots, applied automatically at boot
- Lightweight — No background processes, no daemons, just a single boot-time command
- Download the latest release ZIP from Releases
- Open KernelSU Manager (or Magisk Manager)
- Go to Modules → Install from storage
- Select the downloaded ZIP
- Reboot
- Open KernelSU Manager
- Go to Modules → WiFi Force Country Code
- Tap the settings icon to open the WebUI
- Select your desired country code
- Toggle Force Country Code on/off
- Check Restart WiFi after applying if you want immediate effect
- Tap Save & Apply
On every boot, the module runs a single command after the system is ready:
cmd wifi force-country-code enabled <COUNTRY_CODE>
The country code and enabled state are read from a config file (country.conf) that the WebUI manages. That's it — no system files are modified, no partitions are touched.
| Code | Country | Code | Country | Code | Country |
|---|---|---|---|---|---|
| US | United States | JP | Japan | SE | Sweden |
| GB | United Kingdom | KR | South Korea | NO | Norway |
| AU | Australia | CN | China | FI | Finland |
| DE | Germany | IN | India | CH | Switzerland |
| FR | France | BR | Brazil | NZ | New Zealand |
| CA | Canada | IT | Italy | SG | Singapore |
| ES | Spain | NL | Netherlands | TW | Taiwan |
| TR | Turkey | PL | Poland | HK | Hong Kong |
...and 116 more available in the WebUI. Full list sourced from the official Linux wireless-regdb.
- Android 11+
- KernelSU or Magisk v20.4+
- WiFi hardware that supports the
cmd wifiinterface
Country code doesn't apply:
- Make sure the module is enabled in KernelSU/Magisk Manager
- Reboot after installing
- Check the operation log in the WebUI for errors
WiFi won't reconnect after applying:
- Manually toggle WiFi from Android settings
- Some devices need a few seconds to reconnect
WebUI not showing:
- WebUI requires KernelSU Manager — Magisk users need to configure via editing
country.confmanually
MIT
