Simple Script help ! - Magisk

Hi,
I need a simple module that only replace a file on /system with Magisk 24.3 and Zigisk.
I'm not a dev and I tried myself with no success by following the instructions: https://topjohnwu.github.io/Magisk/guides.html.
Is someone can do it please !!

nabsboss said:
Hi,
I need a simple module that only replace a file on /system with Magisk 24.3 and Zigisk.
I'm not a dev and I tried myself with no success by following the instructions: https://topjohnwu.github.io/Magisk/guides.html.
Is someone can do it please !!
Click to expand...
Click to collapse
I would recommend using MMT-Extended (Magisk Module Extended), for one thing its a complete template....
GitHub - Zackptg5/MMT-Extended: Magisk Module Template Extended
Magisk Module Template Extended. Contribute to Zackptg5/MMT-Extended development by creating an account on GitHub.
github.com
1) Download the zip by clicking on the Code button, then download zip and extract the MMT-Extended-master folde inside the zip, and then rename it as you wish for your module
2) Read this guide, prolly easier to understand than the official TJW info for a beginner
For a simple /system file replacement module, steps 1,2,3,4,8, should be all you need to do, and then zip (must be zip, not RAR or 7z) up the folder and test
When you have at least tried following the guide, and if you fail, then come back with what you have tried (with a LOT more detail on what youre trying to achieve) and someone will help you.
There is no "create a module for me" service on XDA, you must be willing to at least try first....

Related

How do I convert an AROMA Installer into a Magisk Module?

The AROMA package in question is this one. I've posted a couple of times in that thread, but it appears the developer has abandoned it, and I'd like to take up repackaging the installer (which modifies /system), into a Magisk module. Has anyone got any idea how I can go about doing it, preferably with 'options' attached, i.e. users can choose which apps/widgets they would like installed.
Scramjet said:
The AROMA package in question is this one. I've posted a couple of times in that thread, but it appears the developer has abandoned it, and I'd like to take up repackaging the installer (which modifies /system), into a Magisk module. Has anyone got any idea how I can go about doing it, preferably with 'options' attached, i.e. users can choose which apps/widgets they would like installed.
Click to expand...
Click to collapse
For me its just impossible to "convert an AROMA Installer into a Magisk Module", Magisk is an "system", AROMA Installer is an custom recovery feature. The first thing is for the android system, the second is for an custom recovery.
The second problem: you cannot implementing an "select menu" in an Magisk module that would managing the Magisk stuff.
Rom said:
For me its just impossible to "convert an AROMA Installer into a Magisk Module", Magisk is an "system", AROMA Installer is an custom recovery feature. The first thing is for the android system, the second is for an custom recovery.
Click to expand...
Click to collapse
What I meant is for the payload in the installer, to be converted into a Magisk module. They both serve a similar purpose: to add/change/replace/remove files from the filesystem. One does it directly, the other, 'systemlessly'.
Rom said:
The second problem: you cannot implementing an "select menu" in an Magisk module that would managing the Magisk stuff.
Click to expand...
Click to collapse
That's OK. What if we know exactly what to select in the Aroma installer, and then create the Magisk module based on just that?
Scramjet said:
What I meant is for the payload in the installer, to be converted into a Magisk module. They both serve a similar purpose: to add/change/replace/remove files from the filesystem. One does it directly, the other, 'systemlessly'.
That's OK. What if we know exactly what to select in the Aroma installer, and then create the Magisk module based on just that?
Click to expand...
Click to collapse
I haven't got more knowledges in that to answer u about your question, maybe another devs could help u..sorry
Scramjet said:
The AROMA package in question is this one. I've posted a couple of times in that thread, but it appears the developer has abandoned it, and I'd like to take up repackaging the installer (which modifies /system), into a Magisk module. Has anyone got any idea how I can go about doing it, preferably with 'options' attached, i.e. users can choose which apps/widgets they would like installed.
Click to expand...
Click to collapse
** shameless advertising
Try this module template
https://forum.xda-developers.com/apps/magisk/module-template-magisk-module-template-t3620235
It can install both in /system and magisk. And I can also guide you with putting options in the installer (in shell)
Scramjet said:
The AROMA package in question is this one. I've posted a couple of times in that thread, but it appears the developer has abandoned it, and I'd like to take up repackaging the installer (which modifies /system), into a Magisk module. Has anyone got any idea how I can go about doing it, preferably with 'options' attached, i.e. users can choose which apps/widgets they would like installed.
Click to expand...
Click to collapse
I have one that works great for me. What I did was remove the installtheme.sh type run _programs from updater_script for all the mods. Instead the "installs" collected in a magisk module. After all was installed that was wanted I had one install that you chose that zipped the magisk template module to the sdcard. After the Aroma finished, in TWRP you hit the back button. Go to install, find that zip and flash it. I used the evilvrtheme magisk template.
It's going to take some time for you, you have to make a module for each option.
One module for HMS_Gallery_GP2 another one for HMS_Music_GP and so on.
Then delete apk from that Aroma Installer and put your modules there. Last step is to modify updater-script to flash relative module for each option instead of extracting apks into /system partition
Here is an exert from my updater-script. The first one is the module zip maker. The other two are examples of the mods bring installed. The second thing being extracted is the magisk config.sh. i have these in separate folders in my Aroma, one for each configuration I have. My default is empty of system installs since my mods are almost entirely vrtheme mods. This is the one sticky area because the wrong config.sh file can cause problems. I only have a few that need system installs. If you default to empty, the worst thing that can happen is the system mod doesn't install. The alternative is a messed up phone.
Scramjet said:
What I meant is for the payload in the installer, to be converted into a Magisk module. They both serve a similar purpose: to add/change/replace/remove files from the filesystem. One does it directly, the other, 'systemlessly'.
That's OK. What if we know exactly what to select in the Aroma installer, and then create the Magisk module based on just that?
Click to expand...
Click to collapse
Did you ever get your Aroma installer going?
Tulsadiver said:
Did you ever get your Aroma installer going?
Click to expand...
Click to collapse
No, I haven't really worked on it yet. Got sidetracked by life—I'm planning on trying to get it to work this weekend, but no promises.

Need help with Maskisk installation

I am looking for a ELI5 installation guide for Magisk. I have very little experience with rooting phones and the guides I have found confuse me. thank you in advanced for the help
Install TWRP.
Flash Magisk zip in TWRP.
Boot up your device.
Install Magisk Manager (for Magisk v12, from v13 it'll be installed automatically).
It's that easy. Of course, there might be compatibility issues, but let's assume there won't be for now and cross that bridge if we get to it.
Looking at the Unlock/Root/etc thread in the X Style forum, you almost had it with the TWRP install. You were doing the correct commands, but using the wrong file. You were trying to install an apk (an app), where you needed to us an image file (*.img). Go back to the thread and you'll see they gave you the link for the proper download.
Links for the Magisk zip and the Magisk Manager are in the release thread.
Also, here's a link to another thread started today on a similar subject. I put a bunch of links and tips in there that may also be useful for you.
Edit:
An important, basic tip when doing things to your device is to always have a backup of important files. Don't leave anything on there that you can't afford to lose.
I have a successfully installed magisk 14.0 from twrp still safety net was showing false so i tried to update through magisk manager but installation keeps on failing for magisk v14.2 now same error with 14.3 it says unable to unpack boot image, any help would be greatly appreciated

[Magisk] [Systemless] [Module] [OxygenOS 4.7+] [Bootanimation]

Hi,
this module installs OxygenOS 4.7+ (what I know is which from 4.7.0 to 5.0.3 it's the same) Bootanimation systemlessly.
Instructions:
- Download the .zip file with your phone
- Flash the downloaded .zip in Modules section in Magisk Manager
- Reboot your phone twice (in my case, the first time I got Liquid Remix Oreo Bootanimation, which my OnePlus 5T runs :silly
Credits:
 @dabistduja wich provided to me OOS Bootanimation
I got a bootloop. The animation worked just fine, but at some point it freezes and my phone reboots itself. I've removed all files from this module, according to this guide, but for some reason I'm still getting the animation and the bootloop. Any ideas?
EDIT: I figured it out. I had to remove /cache/magisk_mount/system/media/bootanimation.zip as well.
I didn't find anything relevant in the logs so I won't even bother to post it here. It's also worth mentioning that my phone is encrypted, and it seems to me that the freezing/reboot happens right before I'm about to see that screen prompting for my password.
@alessio89g May I come with a few of suggestions?
First, since you're copying the animation zip to /cache you don't really need to mount it to /system. You could keep the zip in the common folder, of the zip, copy it to the module folder during installation, and then copy it from there.
Second, since you're copying the zip to a place that isn't affected by the installed module, also place a script in post-fs-data.d or service.d (service.d is preferred, but might not be possible depending on the rest of the setup) that can delete the zip and itself if the module has been uninstalled. If you don't do this, the animation zip has to be manually removed when they module had been uninstalled.
Third, you can avoid the second reboot when installing the module if you also run the copy to /cache command during installation.
Edit: @robotsrules Thank you. I'll update that part of the guide with info about removing other files that might be placed by modules.
Didgeridoohan said:
@alessio89g May I come with a few of suggestions?
First, since you're copying the animation zip to /cache you don't really need to mount it to /system. You could keep the zip in the common folder, of the zip, copy it to the module folder during installation, and then copy it from there.
Second, since you're copying the zip to a place that isn't affected by the installed module, also place a script in post-fs-data.d or service.d (service.d is preferred, but might not be possible depending on the rest of the setup) that can delete the zip and itself if the module has been uninstalled. If you don't do this, the animation zip has to be manually removed when they module had been uninstalled.
Third, you can avoid the second reboot when installing the module if you also run the copy to /cache command during installation.
Edit: @robotsrules Thank you. I'll update that part of the guide with info about removing other files that might be placed by modules.
Click to expand...
Click to collapse
Thanks for your suggestions, but I think I understood half of what you said, a bit 'because of my bad English, and a little' because I'm not a Magisk script expert.
If you want to edit and improve the module, you're welcome.

Magisk on custom rom

How do I build a custom rom with Magisk? I've tried googling it, but all I could find was how to install it on custom ROMs. But what I want is to BUILD a custom ROM which will install Magisk automatically. Is there a tutorial available for that?
ps.: I'm not entirely sure if this is the best place to ask this question, so moderators pls move if it's in the wrong section
You have to patch your boot image first. Afaik you can do it manually while building. Check updater-script and sh files from common on magisk zip. And integrate magisk apk to system.

Magisk module unzip error

I rooted my Motorola One Macro yesterday, I unlocked bootloader and installed Magisk. I don't have custom recovery beacuse i had problem with installing it. Root Checker says root is properly installed on my device, but I have somme issues with getting things to work. I downloaded Magic Mask Repo, and tried installing Energized module. It downloaded suscessfully, but installation doesn't seem to do anything even after reboot. I also tried installing it manually with Magisk, but I got this in console:
- Copying zip to temp directory
! Unzip error
Pasting uzipped energized folder to /data/adb/modules makes it appear in module section in Magisk, but still it don't work. Material Terminal says acces denied after typing in energized - m command. Reinstallation of Magisk didnt helped. I dont really want to factory reset my phone, is there anything that i can do?
_lama195 said:
I rooted my Motorola One Macro yesterday, I unlocked bootloader and installed Magisk. I don't have custom recovery beacuse i had problem with installing it. Root Checker says root is properly installed on my device, but I have somme issues with getting things to work. I downloaded Magic Mask Repo, and tried installing Energized module. It downloaded suscessfully, but installation doesn't seem to do anything even after reboot. I also tried installing it manually with Magisk, but I got this in console:
- Copying zip to temp directory
! Unzip error
Pasting uzipped energized folder to /data/adb/modules makes it appear in module section in Magisk, but still it don't work. Material Terminal says acces denied after typing in energized - m command. Reinstallation of Magisk didnt helped. I dont really want to factory reset my phone, is there anything that i can do?
Click to expand...
Click to collapse
this is an easy one....
that error *usually* implies youve downloaded a master zip of a github repo, and not a zip file from the releases section
if you went to
GitHub - Magisk-Modules-Repo/energizedprotection: Energized Protection Magisk Module.
Energized Protection Magisk Module. Contribute to Magisk-Modules-Repo/energizedprotection development by creating an account on GitHub.
github.com
and then downloaded the zip it will NOT work, and they dont have a release
so heres the easy fix, and why it fails
1) unzip the file, you'll get a folder (energizedprotection-master)
Note this is why magisk wont install it, it expects to find files (especially crucial files to tell it how to install the module) and folders in the root directory, not a single folder with nested files and folders under it...
2) go into energizedprotection-master folder
3) select all files/folders
4) zip the selected contents into a new zip file (ideally with 7zip - WinRAR can create dud zips)
5) move that zip to device and flash
Ideally you'll install Fox's Magisk Module Manager and use that for most modules - energized may not be on it - download the .apk
Release Release v2.0.2 · Fox2Code/FoxMagiskModuleManager
Please read the full changelog. It contains very important information on the future of this app and caveats when updating. Release notes: https://www.androidacy.com/magisk-module-download-simplifi...
github.com
the old magisk repo was decommisioned....
It works now, I greatly appreciate it, thanks!
73sydney said:
this is an easy one....
that error *usually* implies youve downloaded a master zip of a github repo, and not a zip file from the releases section
if you went to
GitHub - Magisk-Modules-Repo/energizedprotection: Energized Protection Magisk Module.
Energized Protection Magisk Module. Contribute to Magisk-Modules-Repo/energizedprotection development by creating an account on GitHub.
github.com
and then downloaded the zip it will NOT work, and they dont have a release
so heres the easy fix, and why it fails
1) unzip the file, you'll get a folder (energizedprotection-master)
Note this is why magisk wont install it, it expects to find files (especially crucial files to tell it how to install the module) and folders in the root directory, not a single folder with nested files and folders under it...
2) go into energizedprotection-master folder
3) select all files/folders
4) zip the selected contents into a new zip file (ideally with 7zip - WinRAR can create dud zips)
5) move that zip to device and flash
Ideally you'll install Fox's Magisk Module Manager and use that for most modules - energized may not be on it - download the .apk
Release Release v2.0.2 · Fox2Code/FoxMagiskModuleManager
Please read the full changelog. It contains very important information on the future of this app and caveats when updating. Release notes: https://www.androidacy.com/magisk-module-download-simplifi...
github.com
the old magisk repo was decommisioned....
Click to expand...
Click to collapse
Hey I am trying to install BCR - Module module from github " https://github.com/chenxiaolong/BCR " but I am unable to install it in magisk. It is throwing the same error . Can you help me with that ? Thanks in advance
Arnavsingh7075 said:
Hey I am trying to install BCR - Module module from github " https://github.com/chenxiaolong/BCR " but I am unable to install it in magisk. It is throwing the same error . Can you help me with that ? Thanks in advance
Click to expand...
Click to collapse
go to the Releases section on the right of the page with Version 1.29 and green latest to the right of it, scroll down to assets and click on BCR-1.29-release.zip to download the module...this WILL flash, or your money back...
....like my earlier post says, youre probably downloading the master or source code which wont work unless you unpack and repack it (and then sometimes not, if they havent actually compiled the apk if theres an apk component), if there is a Release section with active Releases, use that....
73sydney said:
go to the Releases section on the right of the page with Version 1.29 and green latest to the right of it, scroll down to assets and click on BCR-1.29-release.zip to download the module...this WILL flash, or your money back...
....like my earlier post says, youre probably downloading the master or source code which wont work unless you unpack and repack it (and then sometimes not, if they havent actually compiled the apk if theres an apk component), if there is a Release section with active Releases, use that....
Click to expand...
Click to collapse
You are an absolute hero, thank you so so much for this
73sydney said:
go to the Releases section on the right of the page with Version 1.29 and green latest to the right of it, scroll down to assets and click on BCR-1.29-release.zip to download the module...this WILL flash, or your money back...
....like my earlier post says, youre probably downloading the master or source code which wont work unless you unpack and repack it (and then sometimes not, if they havent actually compiled the apk if theres an apk component), if there is a Release section with active Releases, use that....
Click to expand...
Click to collapse
Bro what abt this it's having same issue is there any other way rather unzip and zip it again https://github.com/rithvikvibhu/nh-magisk-wifi-firmware

Categories

Resources