Magisk Module Uninstaller Template
Magisk
by topjohnwu
This is a Magisk Module Uninstaller Template ZIP for Developers.
A.K.A. “M2UT” in Short.
By Dark❶
Profile @ XDA-Developers : Dark❶ .
Profile @ GitHub : Dark❶ .
WebSite @ GitHub Pages : Dark❶ WebSite .
Magisk Module Uninstaller Template :-
GitHub Pages Site : Magisk Module Uninstaller Template .
GitHub Repository : Magisk-Module-Uninstaller-Template .
XDA Developers Thread : [Magisk] Magisk Module Uninstaller Template .
Notes
Kindly Change what is required in “config.sh” file , ThatIs “MODID” & “print_modname()”.
Also If Needed add Script in Function “script_before_uninstall()” & “script_after_uninstall()” in “config.sh” file .
And Also Edit this README file as per the Needs , But somewhere in a corner Kindly Credit me for my Work , It’s Highly Appreciated .
I have Copied the Code from “magisk-module-template” ZIP by topjohnwu.
I have Edited some part of the Code to make it work for All General Magisk Module.
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.
You might require to make changes to “update-binary” if you did some changes to “update-binary” in “Magisk Module Installer” of your Magisk Module.
Thing’s that are Removed
- From update-binary File :
- Funtion : Un-Necessary Function’s .
- Variable : Un-Necessary Variable’s .
- From config.sh File :
- Funtion :
set_permissions()
. - Variable :
AUTOMOUNT
,PROPFILE
,POSTFSDATA
,LATESTARTSERVICE
,REPLACE
.
- Funtion :
- Directory(s) & File(s) :
- File
module.prop
. - Directory
system
& All it’s Content : Fileplaceholder
. - Directory
common
& All it’s Content : Filefile_contexts_image
,post-fs-data.sh
,service.sh
,system.prop
.
- File
EnJoY …
Credit’s
Thanks topjohnwu for Magisk & for the code in “magisk-module-template” , could not have done without it.
Kindly Give me some Credits for my Work , It’s Highly Appreciated .
And Also just Informing or mentioning me wherever it is used , will give me some satisfaction .
Thanking You for the Same.
Changelog
v0.0
- Initialized.
v1.0
- Initial Release.
- Copied the Code.
- Edited some part of the Code.
- Removed Un-Necessary part of Code.
- Removed Un-Necessary Directory(s) & File(s).
v1.1
- Updated
README
. - Updated
config.sh
. - 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 .
v1.3
- Updated to Magisk Module Template v4 ! .
- UnReleased Version .
v1.4
- Updated
README
. - Updated
update-binary
. - Removed all Un-Necessary Function’s .
- Removed all Un-Necessary Variable’s .
- ReNamed
INSTALLER
toUNINSTALLER
. - Added Function
script_before_uninstall()
&script_after_uninstall()
. - Close to Magisk Module Template v4 ! .
v1.5
- Updated
README
. - Updated
update-binary
. - Updated
config.sh
. - Added Some CODE .
- Removed all Un-Necessary Function’s .
- Removed all Un-Necessary Variable’s .
- ReNamed Variable
INSTALLER
toUNINSTALLER
. - Close to Magisk Module Template v1400 ! .
.