Magisk Module
Simple module that copies Magisk's addon.d script into system.
This module is for custom roms (LineageOS for example) that support addon.d survival scripts.
Survival scripts are used to backup and restore additional files/installs during a system (rom) update.
Most notably would be a GApps install.
When Magisk is installed via recovery, it will copy it's addon.d script into the system/addon.d
directory.
This allows Magisk to survive a system (rom) OTA update.
For Magisk installs not (or can not be) installed via recovery.
The addon.d script can not be copied into system/addon.d
since system is mounted read-only.
This module will overlay a copy of the addon.d script into system/addon.d
.
So it can be found and run with other addon.d script(s) during a system OTA update.
Note: This module only works with addon.d-v2 (A/B slot devices).
This module is only systemless before the first OTA update.
Magisk's addon.d script will be restored directly into system/addon.d
by the OTA updater.
After the first OTA update, this module is no longer needed and can be disabled and/or removed.
Available in the releases tab. Link
- Copy the zip file to the device.
- Open Magisk, select Modules and then Install from storage.
- Reboot device
- Initial release.
- Not planned for long-term support.
- Feel free to use, change, improve, adapt.
- Remember to share.
- The Android Community and everyone who has helped me learn through the years.
- John Wu and team for all things Magisk.