This module protect's your system from bootloop caused by Magisk modules. In case the data partition is encrypted and you cannot access /data/adb/modules
, or you don't want to turn off force encryption because when your phone with force encryption disabled is stolen, thief can copy your /data
and your private data will be exposed!!!
Use the latest Magisk manager
- flash the latest release
- reboot and profit*
Usually, bootloop occurs because zygote doesn't start properly or stuck at restarting. The script run in late_start
mode. It will check Zygote's Process ID 3 times every 15 seconds. And if Zygote's Process ID doesn't match for 3 times, check the Process ID for next 15 seconds to make sure and if it's different again, the script will disable all modules and reboot the your device.
You can boot into TWRP and create a dummy file named disable_magisk
in one of these location to tell the script disable all modules and reboot your device (if Auto detect is not working):
- /cache
- /data/unencrypted
- /metadata
- /persist
- /mnt/vendor/persist
How to create a file in TWRP? Open Terminal Emulator in TWRP and type:
touch /cache/disable_magisk