Magisk Mount & UnMount IMG
Magisk
by topjohnwu
This is Magisk Mount & UnMount IMG ZIP for Users/Developers.
A.K.A. “M2UI” in Short.
By Dark❶
Profile @ XDA-Developers : Dark❶ .
Profile @ GitHub : Dark❶ .
WebSite @ GitHub Pages : Dark❶ WebSite .
Magisk Mount & UnMount IMG :-
GitHub Pages Site : Magisk Mount & UnMount IMG .
GitHub Repository : MagiskMountUnMountIMG .
XDA Developers Thread : [Magisk] Magisk Mount & UnMount IMG .
Notes
Usefull for Users/Developers who wants to Edit Magisk IMG.
Module folder can be [Deleted/Added] to [Remove/Add] a Module.
File can be [Edited/Modified/Deleted/Added] as per Users/Developers wish.
This ZIP Mount’s OR UnMount’s on Different Condition’s :
- If
magisk.img
is NOT Mount’ed , Then Mountmagisk.img
To/Magisk
. - If
magisk.img
is Mount’ed , Then UnMount/Magisk
Frommagisk.img
& Shrinkmagisk.img
.
Following is the Pseudo Code :
- IF [
magisk.img
is NOT Mount’ed ] , Then :- This ZIP will Mount Magisk IMG.
- Mount
magisk.img
->/Magisk
.
- ELSE , Then :
- This ZIP will UnMount & Shrink Magisk IMG.
- UnMount
/Magisk
->magisk.img
& Shrinkmagisk.img
.
I have Copied the Code from “magisk-module-template” ZIP by topjohnwu.
I have Edited some part of the Code to make it work.
I have Added some part of the Code to make it work.
I have Removed Un-Necessary part of Code Because It is Either Not Used OR Not Needed.
I have Removed Un-Necessary Directory(s) & File(s) Because It is Either Not Used OR Not Needed.
EnJoY …
Credit’s
Thanks topjohnwu for Magisk & for the code in “magisk-module-template” , could not have done without it.
Changelog
Close to Magisk Module Template v3 !
v0.0
- Initialized.
v1.0
- Initial Release.
- Copied the Code.
- Edited some part of the Code.
- Added some part of the Code.
- Removed Un-Necessary part of Code.
- Removed Un-Necessary Directory(s) & File(s).
v1.1
- Updated
README
. - Updated
update-binary
. - Added
.gitattributes
. - Fixed
curSizeM
&curFreeM
.
v1.2
- Updated
README
. - Updated
update-binary
. - Added Function
image_resize_shrink()
&image_check()
. - Changed Most Function Variable’s to Local Variable’s .
- Modified Check for
IMG
in/data
OR/cache
. - And Then , Called
image_check()
to Verify .
.