Skip to content

Repository files navigation

WiFi Region Fix

Version 1.0
Author 4ekav0meow

Experimental KernelSU/Magisk-style module for Wi-Fi region issues on rooted Android systems where Wi-Fi country handling remains stuck on a restrictive region and 5 GHz support is incomplete.

What It Is

This module targets a specific class of issue where:

  • Wi-Fi country code stays on CN
  • 5 GHz support is only partial
  • DFS channels such as 144 are missing
  • normal prop edits are not enough to move the Wi-Fi stack away from CN

In the tested environments, applying this patch moved Wi-Fi country handling to PA and expanded the allowed 5 GHz channel set to include DFS channels including 144.

Tested On

  • Device: Redmi Pad SE
  • Codename: xun
  • Firmware base: Oplus/ColorOS-based port
  • Root environment: KernelSU
  • Also confirmed by the author on at least one LineageOS-based system

Compatibility Summary

Confirmed working:

  • Redmi Pad SE (xun) on an Oplus/ColorOS-based port
  • at least one LineageOS-based rooted system

Best fit:

  • rooted systems where cmd wifi force-country-code is available
  • systems where Wi-Fi country handling can still be influenced from Android userspace
  • devices with similar Wi-Fi framework behavior

May work:

  • other Oplus/ColorOS-based ports
  • other LineageOS-based systems
  • similar rooted Android devices with matching Wi-Fi stack assumptions

Not considered universal:

  • AOSP-based ROMs
  • LineageOS-based ROMs
  • Pixel-style ROMs
  • Samsung firmware
  • non-Oplus vendor stacks
  • devices where vendor HAL or firmware hard-locks the regulatory domain

Important Warning

This is not a clean universal Wi-Fi fix.

The module is still device- and firmware-sensitive. It modifies boot-time behavior, rewrites Wi-Fi config values, and may affect more than just Wi-Fi on unsupported systems.

Use at your own risk.

What The Module Does

  • sets region-related props to PA
  • sets locale-related props to es-PA
  • rewrites Wi-Fi country values in WifiConfigStore.xml
  • restarts Wi-Fi after boot
  • tries cmd wifi force-country-code enabled PA
  • tries to disable obviously China-labeled overlays by simple name matching
  • writes diagnostics into the module log directory

Files

  • module.prop
  • post-fs-data.sh
  • service.sh
  • README_GITHUB.md
  • CHANGELOG.md
  • LICENSE

Release Artifact

Current packaged module:

  • wifi-region-fix-module-v1.0.zip

Before You Use It

  • make sure you understand how to disable KernelSU/Magisk modules from recovery
  • do not assume it is safe on unrelated devices
  • do not assume it will fix vendor or firmware-level regulatory restrictions

Notes

If you want the full compatibility explanation, device-specific caveats, and risk details, read README_GITHUB.md.

About

Experimental Wi-Fi country code patch for rooted Android devices with incomplete 5 GHz support. Confirmed on Redmi Pad SE (xun) and a LineageOS-based system.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages