Magisk installed but root not working
Two different problems look alike: Magisk isn't running at all, or Magisk runs but a particular app (or adb) doesn't get root. One command tells them apart. Then follow the branch that matches, including the big change in v31.1, now the stable release: there are no root pop-ups any more.
Last updated 7 sourcesHow we check pages
Step 1: is Magisk actually running?
What "not running" looks like in v31.1
- The Magisk card is the one that matters. Not Installed in red means the app can't see a running Magisk. When root works it shows a version, such as
31.1 (31100). - The App card's Installed line is only the version of the app itself. It shows a number even when Magisk isn't running, so it proves nothing about root.
The Magisk app's Home screen can show Not Installed (v31.1) or Installed: N/A (v30.7) even when Magisk is running. Ask Magisk itself instead. From a computer (or a terminal app on the phone, without adb shell):
Neither command needs root. If they print a version, Magisk is running and the problem is the app or a root permission. If the shell answers that magisk is not found, Magisk isn't running. The tree below takes it from there.
Find the cause
adb shell magisk -c print a version?- No (not found)What does the Magisk app show for Ramdisk?
- YesThe patched image isn't running: wrong image, build or partition
- NoMagisk lives in recovery: boot with the recovery key combo
- Yes
- YesWhat is the problem?
- App shows Not Installed or N/ARemove the leftover hidden app, then reinstall the matching app
- An app or adb gets no rootWhich Magisk version?
- v31.1 or newerGrant it in the Superuser tab: there are no prompts
- v30.7 or older
- v31.1 or newer
- App shows Not Installed or N/A
Magisk isn't running: check what you patched
- Wrong image: phones that launched with Android 13 or later normally need
init_boot.img, notboot.img. If your firmware hasinit_boot.img, patch and flash that. Some devices needvendor_boot.img. See patching a boot image. - Wrong build: the image must come from the exact firmware build installed. A mismatched image may boot without Magisk, or not boot at all.
- Wrong slot: on A/B phones,
fastboot flash init_bootwrites to the current slot. If you switched slots in between, the patched image may sit on the inactive one. - No boot ramdisk (Ramdisk: No): Magisk is installed in recovery and is active only when you boot through the recovery key combination and release the keys at the splash screen. A normal power-on starts Android without Magisk. See Magisk in recovery.
- A system update replaced the image: after an OTA, the new build runs a stock image. Patch the new build's image, and use the update guide next time.
- Additional setup: after flashing, open the app and accept Requires additional setup. It reboots once. If the prompt returns after every reboot, reinstall Magisk with the app's Install button.
The app says Not Installed or N/A, but magisk -c works
Magisk's FAQ (up to v30.7) names the usual cause: you once used Hide the Magisk app, and the hidden "stub" app is still installed next to a newly installed full app. The two conflict, and the full app can't see root.
- Open Settings → Apps and look for the hidden app. By default it is named Settings, or it has the name you chose when hiding. There may be more than one.
- Uninstall every hidden copy, then open the full Magisk app again.
- If it still shows N/A, uninstall the full app and install the version that matches the installed Magisk (the version
magisk -cprinted) from the download page. - Check second spaces, work profiles, "parallel apps" tools and other users for extra copies of the Magisk app, hidden or not.
Other messages you may see instead:
- "Unsupported Magisk version": the installed Magisk is older than the app supports (v22.0 for the v30.7 and v31.1 apps). The app then acts as if Magisk were not installed. Update Magisk by patching and flashing again.
- "Abnormal state: A "su" binary not from Magisk has been detected": another root solution (or a leftover from one, such as KernelSU or an old SuperSU) is present. Remove it and reinstall Magisk.
- "Running this app as a system app isn't supported" or "Magisk is installed to external storage": install the APK as a normal app on internal storage.
From v31.1, app hiding and the stub app no longer exist, so the stub conflict can't happen there. v31.1 also stops reinstalling the Magisk app automatically. If the app is gone, root keeps working; install the APK again when you need to change settings.
v31.1: no more root pop-ups
Magisk v31.1, the current stable release, removed the root request prompt. According to its changelog, superuser access is now "explicitly granted ahead of time in the Superuser tab". In the source, any app or shell without a saved rule is denied silently, so a root app that worked by prompting on v30.7 just fails after the upgrade.
Granting root in v31.1
No apps have asked for Superuser permission yet.
+- Open the Superuser tab in the bottom bar.
- Tap + (its label is Grant Superuser) and pick the apps that should have root. For
adb shell su, pick Shell.
- Open the Magisk app's Superuser tab.
- Tap the + button (Grant Superuser) and tick the apps that should have root. Turn on Show system apps to find system apps.
- For
adb shell su, grant the Shell entry; it is always listed, and searching "adb" finds it. The release notes say the prompt flow didn't work for callers likeadb shellon Headless System User Mode devices, which is one reason it was removed. - Open the root app again. No reboot is needed.
If you are still on v30.7 or older, prompts work as before; see the next section.
v30.7 and older: an app can't get root
- A saved "deny": open the Superuser tab and make sure the app isn't set to denied. A prompt that timed out or was dismissed counts as a deny, and that decision may have been saved.
- Automatic response: in Magisk's settings, Automatic response set to Deny rejects every new request without a prompt. Set it to Prompt.
- Superuser access: the Superuser access setting can be Disabled, Apps only, ADB only or Apps and ADB. If
adb shell sufails but apps work, it is probably Apps only. - Work profile or second user: with Multiuser mode set to Device owner only, apps in other users and profiles are always denied.
- The prompt never appears: it is shown by the Magisk app. If the app is missing or broken, reinstall it from the download page.
Both versions: the DenyList and su
- An app on the DenyList with Enforce DenyList on has Magisk's changes reverted in its processes, so it can't use root. Don't put root apps on the DenyList; it is meant for apps that should not see Magisk. See Zygisk and the DenyList.
- Magisk's
suis served by Magisk's daemon. Ifmagisk -cworks butsufails, check thatmagisk -valso answers (the daemon is up), reboot once, then test fromadb shellwithsu -c id. It should printuid=0(root). - If the phone loops after you change something here, see fixing a Magisk bootloop.
Sources
This page is written from the sources below. If anything here disagrees with them, the upstream source is correct.
- Magisk FAQ at v30.7: Installed = N/A after an update (topjohnwu)
- Magisk installation guide (topjohnwu)
- Magisk changelog: v31.1 removes root prompts and app hiding (topjohnwu)
- Magisk v31.1 release notes (topjohnwu)
- Magisk source: magisk -c and -v output, magisk.rs (topjohnwu)
- Magisk source: su policy, default deny and multiuser mode, su/daemon.rs (topjohnwu)
- Magisk app strings at v30.7: Superuser access, Automatic response, error messages (topjohnwu)
Found a mistake or something out of date? Tell us and we will check it against the source and fix the page. Confirmed corrections are listed in the corrections log.
Report a problem with this page