Jordan231111/mumu-magisk-1click
À propos
One-click tool to root MuMu Player 12 for Magisk Kitsune on Windows — enables root + writable system, auto-detects your install, one-click restore.
Productivité et automatisationProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Original🐾 MuMu Magisk 1-Click
Root your MuMu Player 12 Android emulator in one click — no rooting experience needed.
One command turns on MuMu's root mode and writable system so you can install Magisk Kitsune. It finds your install automatically, backs up every file it touches, and has a one-click undo.
[!NOTE]
Setup.batprepares MuMu's Windows configuration. The guardedKitsune.bat installworkflow also handles the Android-side system installation, pausing only for Kitsune's required on-screen confirmation.
⚡ Quick start
🟢 Option A — No terminal (recommended)
Best for first-timers. The download includes the setup tool and every APK you'll need later.
- ⬇️ Download the ZIP
- Right-click the ZIP → Extract All.
- Open the extracted folder and double-click
Setup.bat. - If Windows shows "Windows protected your PC", click More info → Run anyway (it's an unsigned script — see Is this safe?).
- Click Yes on the admin prompt.
- When it says
Done. Files changed: …, close the window and reopen MuMu. ✅
💻 Option B — One command (faster)
For anyone comfortable with a terminal. Press Win, type cmd, hit Enter, then paste this into Command Prompt (or PowerShell):
cmd.exe /d /c "(if not exist scripts mkdir scripts) && curl.exe -fL https://raw.githubusercontent.com/Jordan231111/mumu-magisk-1click/main/Setup.bat -o Setup.bat && curl.exe -fL https://raw.githubusercontent.com/Jordan231111/mumu-magisk-1click/main/scripts/MuMuConfig.ps1 -o scripts\MuMuConfig.ps1 && Setup.bat"
Accept the admin prompt when it appears. This grabs only the setup script, so you'll still want the bundled tools ↓ for the in-Android steps.
That's it for the Windows side. Next: install Magisk inside Android ↓.
Both source files are downloaded before elevation. The checked-in batch launchers unblock only their bundled PowerShell helpers and use process-scoped RemoteSigned; they do not download replacement code after UAC or permanently change Windows policy.
✨ What you get
- ✅ Root mode + writable system switched on for every instance, automatically.
- ✅ One action — double-click a file (or paste one command). It asks for admin, does its thing, done.
- ✅ Finds MuMu for you — works wherever it's installed, Global or Chinese edition.
- ✅ Safe by design — backs up every file before changing it, and the undo restores everything.
- ✅ Everything bundled — Magisk Kitsune, Zygisk, Vector, Hide My Applist, MT Manager and more, all in one download.
- ✅ Transparent — plain PowerShell, no obfuscation, no hidden network calls, no persistence. See exactly what it changes ↓
Verified Kitsune system install
Use a complete clone or release archive so every reviewed script and the pinned APK are present. Open the Android 12 instance you want to modify; the workflow selects the one currently running, or the most recently launched instance when none is running. If several are running, it uses the most recently started one and prints the selected name and index.
Run one command from the extracted folder:
Kitsune.bat install
When MuMu asks for Kitsune root access, dismiss any MuMu ad covering the dialog, then select Remember choice forever and Allow. The helper verifies that Kitsune itself has root and reopens it if an earlier root request timed out. Choose Install → Direct Install (modify /system directly) and return to the console when it says Done.
MuMu's vendor daemon stays available until the direct-system files pass verification. On the first System Mode boot, grant [SharedUID] Shell in Kitsune when requested. The helper verifies real Android Shell access before switching off MuMu root. Cleanup removes a vendor su only when it matches the hash captured from that instance, runs in a private mount namespace, and cold-boots to verify exactly one stable Magisk daemon. --instance N remains an optional troubleshooting override; normal users do not need an index.
The complete install and three subsequent cold boots were verified on MuMu Global 6.8.0 / Android 12 with the bundled APK. An interrupted preparation from the older helper was also recovered and its Direct Install option restored.
Android readiness was also verified on MuMu Global 6.8.5 / Android 12L using three cold boots of a disposable instance, which was deleted after the test. The helper recognizes both -v N and --vm MuMuPlayerGlobal-12.0-N. It uses a successful, bounded sys.boot_completed=1 shell probe to establish readiness even when Windows process metadata is unavailable. A missing frontend PID no longer causes a booted guest to be stopped and relaunched (issue #7).
✅ Before you start
You need just three things:
- Windows 10 or 11.
- MuMu Player 12 installed. New users should pick Global — it's in English and recommended.
👉 Download MuMu Player 12 Global (bundled here) · or from the official site. - An Android 12 instance, created and started once. Open MuMu → Multi-Instance Manager → create an Android 12 instance → start it once so its files exist → then close MuMu completely before running setup.
💡 Chinese MuMu works too. If both editions are installed, Global is patched by default — use
Setup.bat --edition allto do both.
The Kitsune workflow intentionally supports Android 12 only. MuMu Global 6.3.1's Android 15 root toggle exposes its own KernelSU implementation, and MuMu lists Magisk as unsupported on Android 15. If Android 15 is current or most recent, the tool exits before stopping or changing it.
MuMu updater path repair
On MuMu Global 6.3.1, an observed official V1-to-V2 migration installed engine bases under nx_device\12.0\vms and nx_device\15.0\vms while manager-generated instance metadata referenced the newly configured {InstallRoot}\vms root. That mismatch caused launch failure VERR_PATH_NOT_FOUND; it was not caused by an Android guest patch.
The repair discovers configured engine/VMS paths, validates the VDI header, and creates a junction only for one unambiguous engine-local base. Existing old-layout bases remain in place; invalid, outside-root, or ambiguous targets fail closed.
📦 What's bundled
Everything you need after rooting is already in the Tools/ folder — install these inside MuMu once Magisk is running:
| Tool | What it's for |
|---|---|
| Magisk Kitsune | Exact v31.0-25fa2159 APK (31.0-kitsune, version code 31000). Install this first. |
| NeoZygisk | Zygisk engine — required for most modern root modules. |
| Vector | Module framework (the successor to LSPosed). |
| Hide My Applist (HMA-OSS) | Hides root from apps that look for it. Source. Install the APK, then enable it in Vector. |
| MT Manager | The go-to root file manager / APK editor. Official site. |
| CorePatch | Lets Android install/patch apps with mismatched signatures. Source. |
You can also drag any of these onto the MuMu window to install them.
👉 After setup: install Magisk & modules inside Android
Setup prepped the Windows side. The rest happens inside MuMu, and the two videos below walk through every tap.
🎞️ Heads up — the videos are slightly out of date. They flash LSPosed, which is now replaced by the bundled Vector (a drop-in successor — same steps), and they download a couple of tools by hand that are now bundled in
Tools/, so your version is a little shorter. The flow is otherwise identical.
- Open MuMu, start your instance, and accept the root permission prompt.
- Install Magisk Kitsune (the app appears as Kitsune Mask) — drag
Tools/app-release.apkonto the MuMu window, open it, let it finish, and reboot the instance if asked. - Sign in to the Play Store.
🎬 Part 2 — modules, Core Patch & hiding root
- Copy the tools into MuMu — use the shared-folder button in MuMu's sidebar, or drag a file straight onto the window.
- In Kitsune Mask → Modules → Install from storage, flash the NeoZygisk and Vector ZIPs.
- Install the apps (APKs): Hide My Applist, MT Manager, CorePatch.
- Open Vector (LSPosed in the video) → enable CorePatch and Hide My Applist as modules, set scope to System Framework, and turn on CorePatch's options.
- Hide root where you want it: Kitsune Mask → Configure MagiskHide plus Hide My Applist → App manage, then restart the instance.
💡 ZIP vs APK: a ZIP is a Magisk module — flash it inside Kitsune Mask. An APK is a normal app — install it directly. Mixing them up causes the "unzip error" you'll see in the video when HMA is flashed as a module by mistake.
↩️ Undo / Restore
Changed your mind? This restores the Windows-side configuration backups and APK associations changed by Setup. It does not uninstall Kitsune or reverse its Android system changes.
Easiest: download the ZIP (if you haven't), then double-click RestoreMuMuConfig.bat.
One command:
cmd.exe /d /c "(if not exist scripts mkdir scripts) && curl.exe -fL https://raw.githubusercontent.com/Jordan231111/mumu-magisk-1click/main/RestoreMuMuConfig.bat -o RestoreMuMuConfig.bat && curl.exe -fL https://raw.githubusercontent.com/Jordan231111/mumu-magisk-1click/main/scripts/MuMuConfig.ps1 -o scripts\MuMuConfig.ps1 && RestoreMuMuConfig.bat"
❓ FAQ & troubleshooting
Is this safe?
Yes. It's plain, readable PowerShell — no obfuscation, no encoded commands, no persistence, no firewall/hosts edits, no credential access. It only edits MuMu's own config files (after backing each one up) and never touches anything outside MuMu. The bundled MuMu installer is the official one, verified by automated checks.
My antivirus flagged it / "Windows protected your PC"
Common for any admin script that stops emulator processes and edits config files — it's a false positive, not malware. Click More info → Run anyway, or temporarily allow the file. Everything it does is visible in scripts/MuMuConfig.ps1.
It says "No MuMu install found"
MuMu 12 isn't installed where the tool can see it. Install it first (Global download), open it once, then re-run.
Setup opens and immediately closes
Use the current files and extract the complete ZIP before running Setup.bat. Launching without arguments now keeps the result visible, including missing-file and startup errors. The launchers handle the downloaded-file marker on their bundled helpers; Windows otherwise blocks unsigned downloaded scripts under RemoteSigned. Administrator detection also works when the Windows Server service is stopped. Launching from PowerShell 7 is supported: each launcher uses Windows PowerShell's own modules without changing your permanent environment.
If it still fails, open Command Prompt in the extracted folder, run Setup.bat, and share the error shown above the pause. Automation can set MUMU_NO_PAUSE=1 to skip the final pause while preserving the exit code.
It says "No instances were found"
You need to create an Android 12 instance in MuMu's Multi-Instance Manager and start it once so its config files exist. Then close MuMu and re-run.
Kitsune only shows "Select and Patch a File"
MuMu's root toggle enables its root provider; Kitsune still needs its own permission grant. The bundled app hides Direct Install when its root request fails, and it can retain that failed state after a missed or late permission dialog. Run Kitsune.bat prepare, select Remember choice forever → Allow, and let the helper verify root and reopen the app before continuing.
Older versions of this helper also disabled MuMu's root daemon too early. Rebooting before Direct Install could then leave Kitsune without bootstrap root. The current helper keeps that daemon enabled through preparation and recovers the older change only when the init file exactly matches its recorded backup plus the known edit. If System Mode files already exist, use Kitsune.bat finalize instead; preparation refuses to re-enable the competing root provider.
Do I have to restart Windows?
No. The launchers use process-scoped RemoteSigned; they do not change any permanent Windows setting.
I have both Global and Chinese MuMu
Global is patched by default. To patch both, run Setup.bat --edition all.
Where do I type the one command?
Press Win, type cmd, press Enter, paste the command, press Enter. (Or just use the double-click method — no typing.)
🔧 Advanced & transparency
📋 Exactly what it changes (and what it doesn't)
Per instance (folders ending in -base are skipped):
| File | Key | Set to |
|---|---|---|
customer_config.json |
setting.other_setting.root_mode |
"1" (root on) |
customer_config.json |
setting.disk_share.mode.choose |
"disk_share.mode.writable" |
vm_config.json |
system_vdi.sharable / vm.system_vdi.sharable |
"Writable" |
shell_config.json |
player.uu_remote.should_show |
"false" (when present) |
Optional privacy/debloat keys — only changed if they already exist; no keys are invented:
| File | Key | Set to |
|---|---|---|
customer_config.json |
customer.apk_associate |
"false" |
customer_config.json |
customer.app_keptlive |
"false" |
customer_config.json |
customer.run_limitation |
"false" |
customer_config.json |
setting.other_setting.apk_association |
"0" |
customer_config.json |
setting.other_setting.app_keptlive |
"0" |
customer_config.json |
setting.other_setting.run_limitation |
"0" |
…\Netease\…\configs\nx_main.json |
nxmain.setting.apk_association |
"0" |
For the Windows "Associate APK files" behavior, MuMu also writes per-user file associations. Setup clears .apk, .xapk, and .apks only if they currently point to MuMu, and stores the previous value first so Restore can put it back.
It does not: add hosts/firewall rules, startup entries, services, or scheduled tasks; block netease.com/easebar.com (that breaks updates and login); run any silent installers; or use line-by-line text hacks (it parses real JSON).
🔍 How it finds your MuMu install
- Reads the Windows uninstall registry first, including custom
InstallLocationpaths. - Falls back to known
Program Files\Neteasepaths only if the registry lookup fails. - Reads
nx_device\*\configs\install_config.jsoninstead of assuming one engine directory or VMS location. - Repairs a migrated base path only after validating one exact engine-local VDI candidate.
- Selects the running Android 12 instance, or the most recently launched instance when none is running.
- Patches every non-base instance under
{InstallRoot}\vms\*\configs. - Also updates the user-level toggle in
%APPDATA%\Netease\MuMuPlayerGlobal\configs\nx_main.json(orMuMuPlayerfor Chinese) when present. - Creates a
.baknext to each file before the first write; Restore copies those back.
This project is not pinned to any single MuMu build — it targets the MuMu 12 config schema and is covered by smoke tests. If a future release changes the keys, run with --dry-run first and open an issue with the output.
⚙️ Command-line options
Setup.bat --dry-run :: show what would change, write nothing
Setup.bat --edition global :: Global only
Setup.bat --edition chinese :: Chinese only
Setup.bat --edition all :: both editions
The same flags work on RestoreMuMuConfig.bat. Run a dry-run first if you're unsure.
🔐 Trust — how the installer is verified
The bundled MuMuInstaller_Global.exe is the official Windows bootstrap installer. MuMu's API can advertise a newer player release while serving identical bootstrap bytes: on October 25, 2026 it advertised player 6.8.5 but still served the July MuMu_6.0.1_...exe. A bootstrap downloads the current player during installation; its filename does not pin the installed player version. This repository does not bundle a macOS DMG or an offline player image.
The Update MuMu installer workflow runs daily at 08:37 UTC and can also be run manually from Actions. It resolves MuMu's API, permits HTTPS redirects only through the official API/CDN, and requires a successful final EXE response. It downloads the complete file into staging and checks its size, CDN MD5, SHA-256, and valid NetEase Authenticode signature before replacing the bundled EXE and installer-url.txt. An interrupted download or failed verification preserves the previous files; a failed metadata replacement rolls back the EXE. Identical downloads produce no commit, while a new advertised release still updates metadata if the bootstrap is unchanged.
After the updated checkout passes the regression suites, the workflow commits these two files directly to the default branch using GITHUB_TOKEN. It does not wait for a bot PR to be approved or merged. Publication uses a normal push; branch protection or a concurrent branch update makes the job fail visibly. The existing installer PR #6 can be closed after this workflow is deployed. Ordinary CI verifies the committed file against its recorded hashes and signature without requiring it to match a moving upstream release.
To refresh or verify the download locally:
powershell.exe -NoProfile -ExecutionPolicy RemoteSigned -File .\scripts\Update-MuMuInstaller.ps1
powershell.exe -NoProfile -ExecutionPolicy RemoteSigned -File .\scripts\Update-MuMuInstaller.ps1 -VerifyOnly
No project can guarantee that every antivirus product will avoid a false positive, especially for admin scripts that stop emulator processes and edit emulator config files. This repo is kept as transparent as possible: no encoded PowerShell, VBS elevation helper, random temporary downloader, post-elevation self-update, obfuscation, persistence, credential access, hosts/firewall edits, antivirus exclusion, or antivirus tampering. Network downloads in the README are explicit and complete before the standard UAC prompt. The committed installer is the official Global MuMu installer resolved by CI from MuMu's API.
https://api.mumuplayer.com/api/website/download_version_info?usage=1
https://api.mumuplayer.com/api/dl/win?channel=gw-win-download
🧪 Run the tests (developers)
powershell.exe -NoProfile -ExecutionPolicy RemoteSigned -File tests\Smoke.Tests.ps1
powershell.exe -NoProfile -ExecutionPolicy RemoteSigned -File tests\Correctness.Tests.ps1
powershell.exe -NoProfile -ExecutionPolicy RemoteSigned -File tests\GuestRecovery.Tests.ps1
powershell.exe -NoProfile -ExecutionPolicy RemoteSigned -File tests\OneCommand.Tests.ps1
Run powershell.exe -NoProfile -ExecutionPolicy RemoteSigned -File .\tests\Run.Tests.ps1 for the regression suites used by CI. They build temporary Global and Chinese fixtures, use isolated registry keys, and verify discovery, setup, restore, boot detection, and installer updates. Coverage includes both MuMu process formats, absent process metadata, failed boot probes, interrupted downloads, invalid signatures, unchanged bootstraps, metadata-only releases, and rollback if one file cannot be replaced. Existing coverage includes UTF-8 preservation, dry runs, instance selection, process timeouts, guest recovery, and Kitsune authorization/finalization order. Launcher tests use help commands and dummy helpers when already elevated. README command tests use curl with local fixture URLs. Selected suites also run in PowerShell 7. The normal regression suites clean up their fixtures and never install or launch MuMu. Run the smoke suite without -SkipDownload to additionally check live download resolution.
The separate live boot test is opt-in and requires an installed Android 12 engine. It creates a fresh instance, verifies three cold boots, then shuts down and deletes only that instance in a finally block and checks the original directory inventory:
powershell.exe -NoProfile -ExecutionPolicy RemoteSigned -File .\tests\Boot.Integration.Tests.ps1 -InstallRoot 'C:\Program Files\Netease\MuMuPlayerGlobal-12.0' -Boots 3
🆘 Need help?
Join the Telegram group: https://t.me/+6EreKfc983UzMjgx
❤️ Support the project
If this saved you time, a small donation keeps it maintained — ko-fi.com/yejordan. And a ⭐ on the repo genuinely helps!
🙏 Credits
- Magisk Kitsune v31.0-25fa2159 · Magisk (upstream)
- Vector (successor to LSPosed) · Hide My Applist (HMA-OSS) · CorePatch
- MuMu Player
⚖️ Disclaimer
For educational and development use. Root access and a writable system can affect emulator stability and security — only use it on instances you're prepared to modify and restore.
📄 License
Explorer des projets similaires
Chargement…