[DEPRECATED] [2019.4.4] Magisk Manager for Recovery Mode (mm)

Search This thread

VR25

Senior Member
Apr 20, 2013
2,015
4,929
github.com
THIS PROJECT IS NO LONGER SUPPORTED.


# Magisk Manager for Recovery Mode (mm)



## LEGAL

Copyright (C) 2017-2019, VR25 @ xda-developers

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.



## DISCLAIMER

Always read/reread this reference prior to installing/upgrading this software.

While no cats have been harmed, the author assumes no responsibility for anything that might break due to the use/misuse of it.

To prevent fraud, do NOT mirror any link associated with this project; do NOT share builds (zips)! Share official links instead.



## DESCRIPTION

- Manage your Magisk modules from recovery (e.g., TWRP) -- run "sh /sdcard/mm" on recovery terminal.

Features list
- Automatically fix magisk.img (e2fsck -fy)
- List installed modules
- Toggle
- Core only mode
- Magic mount
- Disable
- Remove



## PREREQUISITE

- Magisk 17-19



## SETUP

- Install
1. Flash live (e.g., from Magisk Manager) or from custom recovery (e.g., TWRP).

- Uninstall
- Use Magisk Manager app or mm itself (supports `uninstall.sh`, too).



## USAGE

- First time (right after installing/updating) - run `mm` or `sh /sdcard/mm` on recovery terminal.
- Next times (while in recovery) - no need to re-flash the zip; simply run `sh /sdcard/mm` on recovery terminal.
- Follow the instructions/wizard. Everything is interactive.
- Pro tip: lazy people can try running `*/mm` instead of `sh /sdcard/mm`.



## LINKS

- [Donate](https://paypal.me/vr25xda/)
- [Facebook page](https://facebook.com/VR25-at-xda-developers-258150974794782/)
- [Git repository](https://github.com/Magisk-Modules-Repo/mm)
- [Telegram channel](https://t.me/vr25_xda/)
- [Telegram profile](https://t.me/vr25xda/)
- [XDA thread](https://xdaforums.com/apps/magisk/module-tool-magisk-manager-recovery-mode-t3693165)



## LATEST CHANGES

**2019.4.4 (201904040)**
- Complete redesign
- Magisk 17-19 support (including `uninstall.sh`)
- Toggle core only mode
- Updated information (copyright, documentation, and module description)

**2018.8.1 (201808010)**
- General optimizations
- New & simplified installer
- Striped down (removed unnecessary code & files)
- Updated documentation

**2018.7.24 (201807240)**
- Fixed modPath detection issue (Magisk 16.6).
- Updated documentation
 
Last edited:

BackToAndroid

Senior Member
Apr 5, 2017
162
16
Samsung Galaxy Z Flip 4
Hey not sure whether this is right thread to ask, if not please redirect me.

I'm on AOKP, banking apps are detecting root and not allowing to access it, so I was asked to use Magisk.

Can you tell me how do I install it? Can I just download Magisk Manager and Magisk flash it via twrp? I'm noob to all rooting man
 

Didgeridoohan

Retired Senior Moderator
May 31, 2012
12,300
1
14,847
Gone
Google Nexus 4
Nexus 6
Hey not sure whether this is right thread to ask, if not please redirect me.

I'm on AOKP, banking apps are detecting root and not allowing to access it, so I was asked to use Magisk.

Can you tell me how do I install it? Can I just download Magisk Manager and Magisk flash it via twrp? I'm noob to all rooting man

Yeah... You took a serious wrong turn. :D

Start by reading these threads:
https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
https://xdaforums.com/apps/magisk/guide-magisk-troubleshooting-t3641417

And if you need help, post here (with lots of details):
https://xdaforums.com/apps/magisk/mod-magisk-v1-universal-systemless-t3432382
 

Nitram08

Member
Mar 30, 2015
25
7
Sorry, maybe for my language, but I can not understand what this module is doing.

Enviado desde mi MI 5s Plus mediante Tapatalk
 

manos78

Senior Member
Jan 17, 2014
808
310
Hi,

Great idea! I'll check and comment. :good:
Please, add it to the official repository.
It includes one option to enable/disable Magisk Core Mode Only?

And one suggestion: provide a ZIP file for launch directly the "mm" command without opening the Terminal (or use Aroma Installer).
 

VR25

Senior Member
Apr 20, 2013
2,015
4,929
github.com
Sorry, maybe for my language, but I can not understand what this module is doing.

Enviado desde mi MI 5s Plus mediante Tapatalk
You should at least have basic understanding of what Magisk is and how it operates before jumping onto this thread. If you don't know what I mean by "Magisk Manager for Recovery Mode," then you've been skipping steps. I can't help you before you help yourself.

Hi,

Great idea! I'll check and comment. :good:
Please, add it to the official repository.
It includes one option to enable/disable Magisk Core Mode Only?

And one suggestion: provide a ZIP file for launch directly the "mm" command without opening the Terminal (or use Aroma Installer).
Currently limited to the features listed. New capabilities will be added over time. The ability to manage Magisk settings is already in the works. Repo submission status -- awaiting approval.
 

dodgyme

Member
May 15, 2010
23
14
Norcross
Firstly, thank you. I've used another mod that allows using terminal to get rid of modules but it's not as fluid in usage as this one. However, i have one question; While i was able to use it in recovery, I'm not sure I understand clearly about whether or not this can be used while the system is fully loaded. I tried accessing the app through the os terminal but it acts as if I'm entering the wrong command. In twrp i did as you said and typed "mm" and it pulled right up. Yet, when i try the instructions that follow afterward to access the module while in the os, it tells me it can't be found. Am i missing something or is this only available through recovery?
 
  • Like
Reactions: imakul8 and VR25

VR25

Senior Member
Apr 20, 2013
2,015
4,929
github.com
Firstly, thank you. I've used another mod that allows using terminal to get rid of modules but it's not as fluid in usage as this one. However, i have one question; While i was able to use it in recovery, I'm not sure I understand clearly about whether or not this can be used while the system is fully loaded. I tried accessing the app through the os terminal but it acts as if I'm entering the wrong command. In twrp i did as you said and typed "mm" and it pulled right up. Yet, when i try the instructions that follow afterward to access the module while in the os, it tells me it can't be found. Am i missing something or is this only available through recovery?
The "module" part is only meant for updating the tool through Magisk Manager.
So, you don't have to constantly check XDA/GitHub for newer versions. ;)

@Nitram08, if that's what you meant, sorry about the first answer! Next time, PLEASE give more detail, or you might get very similar reactions.
A basic rule of thumb:
- Poor info = "nothing happened -- bad post".
 
Last edited:
  • Like
Reactions: vvvvv5

dodgyme

Member
May 15, 2010
23
14
Norcross
Hmmmmm

So, just to clarify, it can only be used in twrp? If not, what's the exact command to use when I'm actually in the Android system using whatever terminal app I might be using...???

I ask because this part of your instructions confuses me:

"Else (after installing & rebooting) -- run `. /data/magisk/mm`."

My understanding suggests I can use it while in the actual system but when I use my terminal app it tells me it's not found...
 

VR25

Senior Member
Apr 20, 2013
2,015
4,929
github.com
So, just to clarify, it can only be used in twrp? If not, what's the exact command to use when I'm actually in the Android system using whatever terminal app I might be using...???

I ask because this part of your instructions confuses me:

"Else (after installing & rebooting) -- run `. /data/magisk/mm`."

My understanding suggests I can use it while in the actual system but when I use my terminal app it tells me it's not found...
Yeah... that line should be "after installing & rebooting into recovery". So, this is built for use in recovery mode only.
Instead of re-flashing every single time you need it, you simply run ". /data/magisk/mm" That is "dot space /magisk/mm".

In short
- First time (right after installing/updating) -- run "mm" (on recovery terminal)
- Next times (while in recovery) -- no need to re-flash the zip; simply run ". /data/magisk/mm" on terminal.
 
Last edited:

dodgyme

Member
May 15, 2010
23
14
Norcross
Yeah... that line should be "after installing & rebooting into recovery". So, this is built for use in recovery mode only.
Instead of re-flashing every single time you need it, you simply run ". /data/magisk/mm" That is "dot space /magisk/mm".

In short
- First time (right after installing/updating) -- run "mm" (on recovery terminal)
- Next times (while in recovery) -- no need to re-flash the zip; simply run ". /magisk/mm" on terminal.

Understood, I appreciate your feedback and this little gem greatly. Thank you!
 
  • Like
Reactions: imakul8 and VR25

adriansticoid0312

Senior Member
Nov 2, 2012
179
60
San Pedro
Thanks a bunch OP. This will be a life saver for those who don't take TWRP backups in TWRP before flashing a module, including me. :D

Sent from my Honor 8 Pro using XDA Labs
 
  • Like
Reactions: VR25

iqubik

Member
Nov 21, 2014
10
2
Magisk log: "e 432:569 sendfile failed with 2: No such file or directory"

Any Modules can not find after install this
New modules installs but not works and not shows on list of android magisk manager.
Very Poor soft! Need to repair system after that!
Unistall_magisk.zip not repair this error!
I lost my system???

Android AOSP (Aex) latest 7.1.2
Xiaomi redmi 4x
 
Last edited:

preference

Senior Member
May 3, 2017
989
554
OnePlus 5T
OnePlus 7 Pro
Amazing module, allows me to manage magisk in TWRP without issue. This is an essential module for every magisk user - if you can't boot after a module install, you can just remove the module and not worry about restoring a backup.

As an aside, also always have the Magisk uninstaller zip handy, it'll save your ass when your phone / tablet goes to **** when you're flashing modules like a meth addict.
 
  • Like
Reactions: chove12 and VR25

njascgil

Senior Member
May 16, 2016
55
21
Xiaomi Redmi Note 4
Redmi Note 10
Great module, but I found something weird on my phone...
Is there any reason why a removed/disabled moduled would appear as such in the current TWRP session or just after rebooting from TWRP to recovery, but reappear after powering off and then booting to recovery via bootloader?

This (strange) thing happened to me minutes ago and the only way to remove the module (and boot Android again) was uninstalling and then reinstalling Magisk...
 

beavis5706

Senior Member
Apr 17, 2014
144
76
51
Templeton
Disable modules

I'm trying to disable a module but I don't entirely understand the commands. I start Magisk Manager and select "e" to enable/disable modules. Then it shows:

<Toggle Module ON/OFF>

Greenify4Magisk (ON)
aik-mobile (ON)
mm (ON)

Input a matching WORD/string at once
- Press RETURN when done (or to cancel)
-- CTRL+C to exit

What command do I have to use to disable Greenify4Magisk?
 
  • Like
Reactions: Bintang Krisna

VR25

Senior Member
Apr 20, 2013
2,015
4,929
github.com
Magisk log: "e 432:569 sendfile failed with 2: No such file or directory"

Any Modules can not find after install this
New modules installs but not works and not shows on list of android magisk manager.
Very Poor soft! Need to repair system after that!
Unistall_magisk.zip not repair this error!
I lost my system???

Android AOSP (Aex) latest 7.1.2
Xiaomi redmi 4x
Really good way of providing "useful" information...
You're dealing with different issues not related to this module in the first place. Could you describe exactly what you did and what actually happened afterwards?

Great module, but I found something weird on my phone...
Is there any reason why a removed/disabled moduled would appear as such in the current TWRP session or just after rebooting from TWRP to recovery, but reappear after powering off and then booting to recovery via bootloader?

This (strange) thing happened to me minutes ago and the only way to remove the module (and boot Android again) was uninstalling and then reinstalling Magisk...
Odd...
Could you describe in details what you did to remove/disable the module in question?

I'm trying to disable a module but I don't entirely understand the commands. I start Magisk Manager and select "e" to enable/disable modules. Then it shows:

<Toggle Module ON/OFF>

Greenify4Magisk (ON)
aik-mobile (ON)
mm (ON)

Input a matching WORD/string at once
- Press RETURN when done (or to cancel)
-- CTRL+C to exit

What command do I have to use to disable Greenify4Magisk?
You simply type a "matching WORD/string" and press ENTER. For example, to disable Greenify4Magisk, I would input "Green" or "4" or "Magisk" (whatever is unique to Greenify4Magisk).
 

Top Liked Posts

  • There are no posts matching your filters.
  • 185
    THIS PROJECT IS NO LONGER SUPPORTED.


    # Magisk Manager for Recovery Mode (mm)



    ## LEGAL

    Copyright (C) 2017-2019, VR25 @ xda-developers

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program. If not, see <https://www.gnu.org/licenses/>.



    ## DISCLAIMER

    Always read/reread this reference prior to installing/upgrading this software.

    While no cats have been harmed, the author assumes no responsibility for anything that might break due to the use/misuse of it.

    To prevent fraud, do NOT mirror any link associated with this project; do NOT share builds (zips)! Share official links instead.



    ## DESCRIPTION

    - Manage your Magisk modules from recovery (e.g., TWRP) -- run "sh /sdcard/mm" on recovery terminal.

    Features list
    - Automatically fix magisk.img (e2fsck -fy)
    - List installed modules
    - Toggle
    - Core only mode
    - Magic mount
    - Disable
    - Remove



    ## PREREQUISITE

    - Magisk 17-19



    ## SETUP

    - Install
    1. Flash live (e.g., from Magisk Manager) or from custom recovery (e.g., TWRP).

    - Uninstall
    - Use Magisk Manager app or mm itself (supports `uninstall.sh`, too).



    ## USAGE

    - First time (right after installing/updating) - run `mm` or `sh /sdcard/mm` on recovery terminal.
    - Next times (while in recovery) - no need to re-flash the zip; simply run `sh /sdcard/mm` on recovery terminal.
    - Follow the instructions/wizard. Everything is interactive.
    - Pro tip: lazy people can try running `*/mm` instead of `sh /sdcard/mm`.



    ## LINKS

    - [Donate](https://paypal.me/vr25xda/)
    - [Facebook page](https://facebook.com/VR25-at-xda-developers-258150974794782/)
    - [Git repository](https://github.com/Magisk-Modules-Repo/mm)
    - [Telegram channel](https://t.me/vr25_xda/)
    - [Telegram profile](https://t.me/vr25xda/)
    - [XDA thread](https://xdaforums.com/apps/magisk/module-tool-magisk-manager-recovery-mode-t3693165)



    ## LATEST CHANGES

    **2019.4.4 (201904040)**
    - Complete redesign
    - Magisk 17-19 support (including `uninstall.sh`)
    - Toggle core only mode
    - Updated information (copyright, documentation, and module description)

    **2018.8.1 (201808010)**
    - General optimizations
    - New & simplified installer
    - Striped down (removed unnecessary code & files)
    - Updated documentation

    **2018.7.24 (201807240)**
    - Fixed modPath detection issue (Magisk 16.6).
    - Updated documentation
    73
    22
    **2019.4.4 (201904040)**
    - Complete redesign
    - Magisk 17-19 support (including `uninstall.sh`)
    - Toggle core only mode
    - Updated information (copyright, documentation, and module description)
    11
    Magisk is moving towards deprecating magisk.img (already in the canary), which breaks the function of this module. Do you plan to update this module to work with the new mechanism when it reaches stable?
    Yes, I will keep updating it.
    9
    # 2017.11.25 (201711250)
    - Top-to-botton optimizations
    - Users no longer have to reboot recovery after flashing mm -- prior to flashing something else

    # 2017.11.25-1 (201711251)
    - Fixed "non-existent tmpd" error