1
mirror of https://github.com/topjohnwu/Magisk synced 2024-11-14 22:28:37 +01:00
Magisk/docs/tips.md
2017-08-15 10:13:19 +08:00

943 B

Tips and Tricks

Remove Files

How to efficiently remove a file systemless-ly? To actually make the file disappear within the folder is complicated (possible, not worth the effort). Replacing it with a dummy file should be good enough! Create an empty file with the same name and place it in the same path within a module, then you're basically done!

Remove Folders

Same as mentioned above, actually making the folder to disappear is not worth the effort. Replacing it with an empty folder should be good enough! A handy trick for module developers using Magisk Module Template is to add the folder you want to remove into the REPLACE list within config.sh. If your module doesn't provide a correspond folder, it will create an empty folder, and automatically add .replace into the empty folder so the dummy folder will properly replace the one in /system.