MAC Editor for Android (Fork)

Stars LSPosed GitHub release build license

Note: This is a modified fork of the original MAC Editor by jqssun. All credits go to the original author. This version adds several enhancements (see below).

MAC Editor is a free and open-source Xposed module that gives you granular control over the Wi-Fi MAC address on Android devices. It supports manual MAC override and enables native MAC randomization support exposed by Android on supported hardware regardless of the OEM's implementation.

You can use it to:

  • Customize MAC behavior for privacy.
  • Override the randomized MAC with a fixed value.
  • Force-enable MAC randomization on devices where the vendor disabled it.
  • Optionally control whether the mobile hotspot (AP) interface uses the custom MAC – disable this if your device fails to start hotspot when MAC is overridden.

Features

  • Manual MAC override – set any valid unicast MAC address (first octet even).
  • Force MAC randomization – enable hidden randomization support for standard Wi-Fi, Wi‑Fi Direct, and mobile hotspot.
  • Per‑network or per‑connection control – works when “Use randomized MAC” is selected in Wi‑Fi network details.
  • AP MAC override toggle – independently enable/disable MAC replacement for the hotspot interface (default: off). Helps devices where changing AP MAC breaks hotspot functionality.
  • Multi‑language UI – supports English and Chinese, switchable via the app menu.

Compatibility

  • Android 12+ (tested up to Android 16 QPR2)
  • Rooted devices with LSPosed framework installed

Implementation Details

On modern Android, the Wi-Fi subsystem (via WifiNative) can randomize MAC addresses per network or per connection. This module hooks the following system server methods to allow manual MAC assignment when randomization is enabled:

  • WifiVendorHal.setStaMacAddress() – for station (client) Wi‑Fi.
  • WifiVendorHal.setApMacAddress() – for access point (hotspot) mode.

The module also forces the system to believe that MAC randomization is supported by overriding the following resource booleans:

  • config_wifi_connected_mac_randomization_supported
  • config_wifi_p2p_mac_randomization_supported
  • config_wifi_ap_mac_randomization_supported

This is useful on devices where the hardware and chipset drivers do support MAC randomization, but the vendor did not enable it in software.

AP MAC Override Switch

Some devices fail to start the mobile hotspot when the MAC address is modified (error logs show Could not set interface MAC address for wlan2). To avoid this, the module provides a dedicated switch in the UI to disable MAC override for AP mode (default: off). When this switch is off, the module will not intercept calls to setApMacAddress, letting the system use the default random MAC for the hotspot.

If you need a custom MAC for hotspot as well, simply turn this switch on.

Usage

  1. Install the module and activate it in LSPosed (scope: System Framework).
  2. Reboot your device.
  3. Open the MAC Editor app.
  4. Enable “Override randomized MAC” if you want to replace the randomized MAC with a custom one.
  5. Enter a valid MAC address (e.g., 02:00:00:00:00:01) or tap “Generate Random MAC”.
  6. Tap “Apply MAC Address”.
  7. For Wi‑Fi connections, ensure “Use randomized MAC” is selected in the network’s “Privacy” setting.
  8. To use the custom MAC for hotspot, enable “Override AP MAC address” (recommended to keep it off if hotspot fails to start).
  9. Reconnect Wi‑Fi or restart hotspot to apply changes.

Language Switching

The app supports English and Chinese. To switch:

  • Tap the three-dot menu in the top‑right corner.
  • Select “Language” and choose your preferred language.
  • The UI will refresh immediately.

Notes for Qualcomm Devices

Hardware support on certain chipsets can be checked by looking at:

  • /vendor/etc/wifi/kiwi_v2/WCNSS_qcom_cfg.ini
  • /vendor/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini

For legacy Qualcomm devices without MAC randomization support, consider editing wlan_mac.bin or /sys/wifi/mac_addr directly instead of using this module.

Acknowledgements

This project is a fork of the original MAC Editor by jqssun.
The initial open‑source system server hook implementation was provided by David Berdik.
We thank the original authors for their great work.

AI Assistance

This project was developed with the assistance of AI tools.

License

This project is licensed under the GNU General Public License v3.0. All original copyright notices are retained.

Releases

v0.0.9

Stable

8/24/2026, 8:48:45 AM

MAC Editor v0.0.9

This release fixes the Release build activation issue that prevented the module from being loaded in LSPosed.

🐛 Bug Fixes

  • Release version not activating: Fixed the package name and scope in META-INF/xposed files:
    • java_init.list: Changed from io.github.jqssun.maceditor.MACEditor to io.github.Rillwyn.maceditor.MACEditor

These files were previously still referencing the original author's package name and using an invalid scope, which prevented LSPosed from injecting the module into the system server. With this fix, the Release version now works identically to the Debug version.

📦 Installation

  1. Download and install the APK from the attachments below.
  2. Activate the module in LSPosed (scope: System Framework / android).
  3. Reboot your device.
  4. Open the app to verify the module status shows "Module Enabled".

⚠️ Important Notes

  • This is a modified fork of the original MAC Editor by jqssun.
  • If you are updating from a previous version, just install over it (same signing key required).

🔗 Links

SHA-256:
e6b3fa00b3e1f6aac4750f43043f27616ddfd3cbf522c012878d9561b1fb601d


MAC Editor v0.0.9

此版本修复了 Release 版本无法在 LSPosed 中激活 的问题。

🐛 问题修复

  • Release 版本无法激活:修正了 META-INF/xposed 目录下三个文件中的包名和作用域:
    • java_init.list:从 io.github.jqssun.maceditor.MACEditor 改为 io.github.Rillwyn.maceditor.MACEditor

这些文件之前仍引用原作者的包名并使用无效的作用域,导致 LSPosed 无法将模块注入系统服务。修复后,Release 版本现在与 Debug 版本一样正常工作。

📦 安装说明

  1. 下载并安装下方附件中的 APK。
  2. LSPosed 中激活模块(作用域:系统框架 / android)。
  3. 重启设备。
  4. 打开应用,确认模块状态显示“模块已启用”。

⚠️ 重要提示

  • 本项目是基于 MAC Editor 原项目(作者 jqssun)的修改版。
  • 如果从旧版本更新,直接覆盖安装即可(需要相同签名密钥)。

🔗 相关链接

SHA-256:
e6b3fa00b3e1f6aac4750f43043f27616ddfd3cbf522c012878d9561b1fb601d

Assets

1

v0.0.8

Stable

8/24/2026, 5:35:48 AM

MAC Editor v0.0.8

This is the initial release of my forked version of MAC Editor, with several enhancements over the original.

✨ What's New

  • AP MAC Override Toggle – A dedicated switch to independently control whether the custom MAC address is applied to the mobile hotspot (AP) interface. Default is OFF, which helps devices that fail to start hotspot when the MAC is modified on wlan2. Turn it ON if you want the custom MAC to apply to your hotspot as well.

  • Multi‑language UI – The app now supports both English and Chinese. You can switch languages anytime via the app menu (three dots in the top‑right corner). The UI refreshes instantly.

🔧 Technical Improvements

  • Hotspot compatibility fix – Replaced method‑based detection with interface‑name‑based detection (wlan2) to accurately identify AP calls, ensuring the AP override switch works reliably.

  • Language storage optimization – Language preference is now stored in local SharedPreferences, fixing the previous issue where language switching had no effect.

📦 Installation

  1. Install the APK from the attachments below.
  2. Activate the module in LSPosed (scope: System Framework).
  3. Reboot your device.
  4. Open the app and configure your MAC address as needed.

⚠️ Important Notes

  • This is a modified fork of the original MAC Editor by jqssun. All credits go to the original author.
  • The package name has been changed to io.github.Rillwyn.maceditor, so this version can be installed alongside the original.
  • If you are updating from a previous version, make sure you are using the same signing key. You may need to uninstall the old version first if the package name differs.

🔗 Links


SHA-256 checksum: bb0ef6ab5379c3533bd01912effacc4d6043cd79d55b508ad6fa4ff684629c57

MAC Editor v0.0.8

这是 MAC Editor 修改版的首个发布版本,在原版基础上增加了若干增强功能。

✨ 新增功能

  • AP MAC 覆写开关 – 独立控制是否对移动热点(AP)接口应用自定义 MAC 地址。默认关闭,可帮助那些在修改 wlan2 接口 MAC 后无法启动热点的设备。如需对热点也使用自定义 MAC,开启此开关即可。

  • 多语言界面 – 应用现支持英文和中文,可通过右上角菜单(三个点)随时切换,界面即时刷新。

🔧 技术改进

  • 热点兼容性修复 – 改用接口名称(wlan2)识别 AP 调用,确保 AP 覆写开关准确生效。

  • 语言存储优化 – 语言偏好现存储在本地,解决了之前切换无效的问题。

📦 安装说明

  1. 安装下方附件中的 APK。
  2. LSPosed 中激活模块(作用域:系统框架)。
  3. 重启设备。
  4. 打开应用,根据需要配置 MAC 地址。

⚠️ 重要提示

  • 本项目是基于 MAC Editor 原项目(作者 jqssun)的修改版,所有原始版权归原作者所有。
  • 包名已改为 io.github.Rillwyn.maceditor,可与原版共存安装。
  • 如果从旧版本升级,请确保使用相同的签名密钥。如果包名不同,可能需要先卸载旧版。

🔗 相关链接


SHA-256 校验和: bb0ef6ab5379c3533bd01912effacc4d6043cd79d55b508ad6fa4ff684629c57

Assets

1