Magisk IMG Resizer
By default, magisk.img is 64M in size, so the space in /magisk is approximately 64M too (thanks captain obvious ?). If you flash a Magisk Module whose size is bigger than the current free space in /magisk, the update-binary automatically resizes magisk.img for the module to fit in /magisk. This is flashable zip (atm...) does the same thing, kinda ?. It resizes magisk.img, which will also change the space available in /magisk so you can add more stuff into it.
This can be useful to some modules that occupies space if it's function is used (like @stangri's App Systemizer and my Terminal App Systemizer).
HOW TO USE:
- You can add your custom size in /data/.imgsize or /cache/.imgsize in MB. You can create and edit the file or do this command in TWRP's Terminal or ADB Shell.
echo '87' > /data/.imgsize
- Flash Magisk IMG Resizer zip
* To the guys who've read the update-binary, shut up! (jk ?). I haven't touch anything that much and only made patches in the magisk module template's update-binary. I barely have time to do this thing this time of the year... so shut up! (just kidding.... ??)
** Resizing will not be the same as the size you gave. Example, if you enter 87 in /data/.imgsize, the update-binary will calculate the size to be more than what you gave, in this case it'll resize it to 128M so more other stuff can snuck into the extra free space.
** The first thing you need to do after flashing/resizing is to occupy some space in /magisk. But don't make it full! Just add what you want to add so that magic_mask.sh doesn't do anything to magisk.img's current size.