A Magisk module that overrides the WiFi country code on Android devices to bypass regional restrictions and enable access to WiFi channels that may be restricted in certain regions.
- Country Code Override: Forces the WiFi country code to "US" (United States)
- Automatic WiFi Restart: Automatically restarts WiFi after applying the country code change
- Boot-time Execution: Runs automatically after system boot completion
- Non-intrusive: Works in the background without user intervention
The module operates by:
- Waiting for Boot Completion: The service waits until the system boot process is complete
- Setting Country Code: Uses Android's
cmd wifi force-country-codecommand to set the country code to "US" - WiFi Restart: If WiFi is currently enabled, it temporarily disables and re-enables WiFi to apply the changes
- An Android device
- Magisk or Lygisk
Tested on Poco X3 Pro with LineageOS 22.2 (Android 15) and Lygisk 29.0.
- Download the module ZIP file
- Open Magisk App
- Go to Modules section
- Tap the "+" button and select the downloaded ZIP file
- Reboot your device when prompted
After installation, the module works automatically:
- First Boot: The module will apply the country code change after the first reboot
- Subsequent Boots: The module runs automatically on every boot
- No Configuration: No user interaction required
- Disable the module in Magisk App
- Reboot the device
- This module modifies system-level WiFi settings
- The country code change may affect WiFi performance in some regions
- Always backup your device before installing Magisk modules
- This module is for educational and personal use only
This module is provided as-is for educational purposes. Users are responsible for ensuring compliance with local laws and regulations regarding WiFi usage and frequency bands. The developers are not responsible for any legal issues arising from the use of this module.
This project is licensed under the MIT license.