FORUMS
Remove All Ads from XDA

Magisk Module Template Extended (MMT-Ex) [TEMPLATE]

3,748 posts
Thanks Meter: 5,938
 
Post Reply Email Thread
In the past couple years, magisk has come a long ways to the point that it's the de-facto root solution. I have been developing and maintaining the Unity template for the past couple years but it's now reached a point where there's no longer a need for it - it's simply not worth the effort anymore. There are very few use cases where someone would want to stay rootless and still install a bunch of mods and every other root solution is pretty much deprecated at this point. So I switched gears from Unity to a magisk only template.

Consider this the spiritual successor of the Unity Template

So what is Magisk Module Template Extended (MMT-Ex)?
MMT-Ex is just as the name describes - it's the magisk module template but with the best features of Unity added to it

What does this mean?
This means that MMT-Ex is an easy way to make a magisk module regardless of how basic or advanced it is.

Where do I start?
Follow the readme on the main repo here and you'll be setup in no time

Questions?
Post them here, I'll try to help out when I have the chance but hopefully you won't have any
The Following 31 Users Say Thank You to Zackptg5 For This Useful Post: [ View ]
5th January 2020, 07:49 AM |#2  
Zackptg5's Avatar
OP Recognized Developer
Thanks Meter: 5,938
 
Donate to Me
More
So much for the smooth release. Small bug fix pushed
The Following 10 Users Say Thank You to Zackptg5 For This Useful Post: [ View ]
5th January 2020, 02:01 PM |#3  
Senior Member
Thanks Meter: 237
 
Donate to Me
More
@Zackptg5 I write here since there's no issue section in the repo, but there are two uninstall.sh files, one in common and the other one in the main directory, I think that's a bit confusing.
My ideas would be:
-merge the two files;
- rename the one in common in remove.sh , MMT-exuninstall.sh or similar names
5th January 2020, 04:00 PM |#4  
Zackptg5's Avatar
OP Recognized Developer
Thanks Meter: 5,938
 
Donate to Me
More
Quote:
Originally Posted by MarcAnt01

@Zackptg5 I write here since there's no issue section in the repo, but there are two uninstall.sh files, one in common and the other one in the main directory, I think that's a bit confusing.
My ideas would be:
-merge the two files;
- rename the one in common in remove.sh , MMT-exuninstall.sh or similar names

I could do a better drop explaining things in the wiki
The one in root gets copied as is to modpath and will uninstall any files outside modpath if removed via magisk manager
The one in common is like the old unity_uninstall one. The only reason I had the common ones named unity_whatever back in the day is because one of the past magisk module templates unzipped everything with the -j option (ignores directories) and so files would overwrite each other if they had the same name

I disabled issues on most of my repos because noobs would post stupid stuff on it so I redirected all support to here instead
The Following 4 Users Say Thank You to Zackptg5 For This Useful Post: [ View ]
6th January 2020, 02:26 AM |#5  
aer0zer0's Avatar
Recognized Contributor
Flag Cortland NY
Thanks Meter: 2,439
 
More
Quote:
Originally Posted by Zackptg5

I could do a better drop explaining things in the wiki
The one in root gets copied as is to modpath and will uninstall any files outside modpath if removed via magisk manager
The one in common is like the old unity_uninstall one. The only reason I had the common ones named unity_whatever back in the day is because one of the past magisk module templates unzipped everything with the -j option (ignores directories) and so files would overwrite each other if they had the same name

I disabled issues on most of my repos because noobs would post stupid stuff on it so I redirected all support to here instead

So far so good here.
The Following User Says Thank You to aer0zer0 For This Useful Post: [ View ] Gift aer0zer0 Ad-Free
7th January 2020, 06:45 PM |#6  
aer0zer0's Avatar
Recognized Contributor
Flag Cortland NY
Thanks Meter: 2,439
 
More
@Zackptg5 it appears system.prop and sepolicy.rule still need to be placed in the root of the mod, and not in common in order to propagate on-device.

Which is fine, as i know thats how to fix it. But wasnt sure if that was your intent, it sounds like you want everything running script-wise out of common (which makes sense). Attached my magisk log, and my mod has a new sepolicy.rule and system.prop. I tried this the way i maentioned above and every loads as it should.
Attached Files
File Type: log magisk_log_20200107_124112.log - [Click for QR Code] (135.3 KB, 20 views)
7th January 2020, 10:44 PM |#7  
Member
Thanks Meter: 11
 
More
Hello, if I develop a Module with your template, I will be able to install it on my device. But I don't think it will be accepted as a valid module submission here (https://github.com/Magisk-Modules-Re...mission/issues) because it does not respect the new module format.

Can you confirm?
8th January 2020, 12:19 AM |#8  
Zackptg5's Avatar
OP Recognized Developer
Thanks Meter: 5,938
 
Donate to Me
More
Quote:
Originally Posted by aer0zer0

@Zackptg5 it appears system.prop and sepolicy.rule still need to be placed in the root of the mod, and not in common in order to propagate on-device.

Which is fine, as i know thats how to fix it. But wasnt sure if that was your intent, it sounds like you want everything running script-wise out of common (which makes sense). Attached my magisk log, and my mod has a new sepolicy.rule and system.prop. I tried this the way i maentioned above and every loads as it should.

Common folder scripts should copy over but I've seen this issue in another module. I'll look into it later this week when I'm off work

Quote:
Originally Posted by lapwat

Hello, if I develop a Module with your template, I will be able to install it on my device. But I don't think it will be accepted as a valid module submission here (https://github.com/Magisk-Modules-Re...ission/issues) because it does not respect the new module format.

Can you confirm?

mmtex is the new template with some modifications so you shouldn't have any problems there
8th January 2020, 12:32 AM |#9  
Member
Thanks Meter: 11
 
More
DELETED
8th January 2020, 12:34 AM |#10  
Zackptg5's Avatar
OP Recognized Developer
Thanks Meter: 5,938
 
Donate to Me
More
Quote:
Originally Posted by lapwat

I don't understand because on the Developer Guides there isn't any common folder anymore: https://topjohnwu.github.io/Magisk/guides.html

That's on of the modifications I made although there appears to be a bug with it that I'll need to work out
8th January 2020, 12:55 AM |#11  
Senior Member
Thanks Meter: 1,675
 
Donate to Me
More
Quote:
Originally Posted by Zackptg5

That's on of the modifications I made although there appears to be a bug with it that I'll need to work out

If I was to guess it would be something in lines 208-214 of the functions.sh. but I'm way to stoned to be of any actual assistance.

Edit: Clearly too stoned. I meant to reply to the system.prop not being applied when in common not what I actually replied to lol
The Following 2 Users Say Thank You to TotallyAnxious For This Useful Post: [ View ] Gift TotallyAnxious Ad-Free
Post Reply Subscribe to Thread

Tags
magisk, module, template, unity

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes