Skip to content

Magisk Survival (addon.d) script for use with custom roms.

Notifications You must be signed in to change notification settings

mModule/mSurvival

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magisk OTA Survival

Magisk Module
Simple module that copies Magisk's addon.d script into system.

Description

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).

Warning

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.

Download

Available in the releases tab. Link

Install

  • Copy the zip file to the device.
  • Open Magisk, select Modules and then Install from storage.
  • Reboot device

Recent changes

  • Initial release.
  • Not planned for long-term support.

Notes

  • Feel free to use, change, improve, adapt.
  • Remember to share.

Credits

  • The Android Community and everyone who has helped me learn through the years.
  • John Wu and team for all things Magisk.

About

Magisk Survival (addon.d) script for use with custom roms.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages