Purpose | Magisk is a systemless root and mod installation tool for Android devices. It allows users to gain root access and install mods without modifying the system partition. | TWRP is a custom recovery tool for Android devices. It allows users to install custom ROMs, kernels, and other mods, as well as create and restore backups. |
Compatibility | Magisk is compatible with most Android devices, though some devices may not support all features. | TWRP is also compatible with most Android devices, though some devices may not support all features. |
Installation | Magisk can be installed through a boot image patch or by flashing a ZIP in a custom recovery. The boot image patch method involves modifying the boot image file of the device and flashing it to the device, while the ZIP method involves flashing the Magisk ZIP file in a custom recovery. | TWRP must be installed by flashing a ZIP file in a custom recovery. This process involves booting the device into recovery mode and flashing the TWRP ZIP file. |
System modifications | Magisk makes system modifications without modifying the system partition, using a “systemless” method. This means that modifications are applied to the device without changing the original system files. This can be useful for preserving the integrity of the system partition and making it easier to receive OTA updates. | TWRP makes system modifications by modifying the system partition. This involves making changes to the original system files on the device. This can make it more difficult to receive OTA updates and may cause compatibility issues with certain apps and services. |
Modules | Magisk supports the installation of modules, which are packages that extend the functionality of the root setup. These modules can be installed and managed through the Magisk Manager app. | TWRP does not support the installation of modules. |
Compatibility with OTA updates | Magisk can be configured to preserve modifications when installing OTA updates. This is done by using the “preserve” feature in the Magisk Manager app, which creates a copy of the modified system files and stores them in the Magisk Manager app. When an OTA update is installed, these files are restored, preserving the modifications. | Modifications made with TWRP will be lost when installing OTA updates, as the update process involves overwriting the system partition. |
Compatibility with SafetyNet | Magisk can be configured to pass SafetyNet checks by using the “hide” feature in the Magisk Manager app. This feature allows users to hide the fact that their device is rooted from certain apps and services that may block rooted devices or check for modifications to the system partition. | TWRP cannot pass SafetyNet checks due to the modifications it makes to the system partition. |
Backups | Magisk can create backups of modified system files through the Magisk Manager app. These backups are stored in the app and can be restored at a later time. | TWRP can create backups of the entire system, including modified system files. These backups can be stored on the device or external storage and can be restored at a later time. |
Recovery features | Both Magisk and TWRP include features such as a file manager, terminal emulator, and system-level command execution. These features can be accessed through the recovery interface and can be used for tasks such as managing files, installing mods, and running scripts. Magisk also includes a built-in systemless version of the Xposed Framework, which allows users to install and use Xposed modules without modifying the system partition. | TWRP also includes a file manager, terminal emulator, and system-level command execution. In addition, it includes a feature called “Decrypt Data,” which allows users to decrypt the data partition on encrypted devices. |
Flashing capabilities | Magisk can flash ZIP files and boot images. The boot image patch method of installation involves modifying the boot image file and flashing it to the device. The ZIP method involves flashing a Magisk ZIP file in a custom recovery. Magisk also includes a feature called “Magisk Stubs,” which allows users to install a small, standalone version of the Magisk Manager app on a device without a custom recovery. This can be useful for managing root access on devices without a custom recovery. | TWRP can flash ZIP files, boot images, and entire partitions. It also includes a feature called “Partition Interface,” which allows users to create, delete, or resize partitions on the device. |
Customization options | Magisk allows for customization of the boot image and the Magisk Manager interface. The boot image can be modified to include Magisk modifications, and the Magisk Manager interface can be customized through the use of themes and icons. | TWRP allows for customization of the recovery interface and splash screen. The interface can be modified through the use of themes, and the splash screen can be changed by replacing the default image with a custom image. |
Built-in package manager | Magisk includes a built-in package manager called Magisk Manager, which allows users to easily install and manage root-level mods (called “modules”) from within the app. | TWRP does not have a built-in package manager for managing mods. |
Magisk Hide | Magisk includes a built-in feature called “Magisk Hide,” which allows users to hide the fact that their device is rooted from certain apps and services that may block rooted devices or check for modifications to the system partition. This can be useful for preserving access to certain apps and services that may not be compatible with rooted devices. | TWRP does not have a similar feature. |
Magisk Stubs | Magisk includes a feature called “Magisk Stubs,” which allows users to install a small, standalone version of the Magisk Manager app on a device without a custom recovery. This can be useful for managing root access on devices without a custom recovery. | TWRP does not have a similar feature. |
Systemless Xposed | Magisk includes a built-in systemless version of the Xposed Framework, which allows users to install and use Xposed modules without modifying the system partition. | TWRP does not have a similar feature. |
Support for init.d | Magisk supports the execution of scripts in the init.d folder at boot time. This can be useful for automating certain tasks or customizing the behavior of the device at boot time. | TWRP does not support the execution of scripts in the init.d folder at boot time. |
Support for boot scripts | Magisk supports the execution of scripts in the boot folder at boot time. This can be useful for automating certain tasks or customizing the behavior of the device at boot time. | TWRP does not support the execution of scripts in the boot folder at boot time. |
FBE support | Magisk supports File-Based Encryption (FBE) on Android 11 and newer. FBE is a method of encryption that encrypts each file on the device individually, rather than encrypting the entire partition. This can be useful for improving the security of the device. | TWRP does not support FBE on Android 11 and newer. |
Stock recovery support | Magisk can coexist with the stock recovery on the device and allows users to switch between the two. This can be useful for preserving the ability to install OTA updates and for troubleshooting issues with the device. | TWRP replaces the stock recovery when installed, meaning that the stock recovery is no longer accessible on the device. |
Uninstallation | Magisk can be uninstalled through the Magisk Manager app or by flashing the uninstaller ZIP in recovery. This can be useful for removing Magisk and returning the device to its original state. | TWRP can be uninstalled by flashing the uninstaller ZIP in recovery. This will remove TWRP and restore the stock recovery on the device. |
Safety features | Magisk includes built-in safety measures such as automatic root detection and safety patching to help prevent issues with the root setup. | TWRP does not include built-in safety measures. |
Maintenance features | Magisk includes features for managing and maintaining the root setup, such as the ability to update Magisk and modules through the Magisk Manager app. | TWRP does not include features for managing and maintaining the root setup. |
Update process | Magisk can be updated through the Magisk Manager app or by flashing the update ZIP in recovery. This can be useful for keeping the root setup up to date with the latest features and bug fixes. | TWRP must be manually updated by flashing the update ZIP in recovery. This process involves downloading the update ZIP file and flashing it in recovery. |
Support for Android versions | Magisk supports Android 4.2 and newer. | TWRP supports Android 2.3 and newer. |
Support for CPU architectures | Magisk supports a variety of CPU architectures, including ARM, ARM64, x86, and MIPS. | TWRP supports a variety of CPU architectures, including ARM, ARM64, x86, and MIPS. |
User interface | Magisk uses a GUI interface called the Magisk Manager app for managing the root setup. | TWRP uses a GUI interface accessed through recovery mode for managing the root setup. |
Support for themes | Magisk supports the installation of custom themes through the Magisk Manager app. | TWRP supports the installation of custom themes through the recovery interface. |
Support for bootanimations | Magisk supports the installation of custom bootanimations through the Magisk Manager app. | TWRP supports the installation of custom bootanimations through the recovery interface. |
Support for audio mods | Both Magisk and TWRP can be used to install custom audio mods on Android devices. | |
Support for visual mods | Both Magisk and TWRP can be used to install custom visual mods on Android devices. | |
Support for performance mods | Both Magisk and TWRP can be used to install custom performance mods on Android devices. | |
Support for custom recoveries | Both Magisk and TWRP can be used to install custom recoveries on Android devices. | |
Support for custom ROMs | Both Magisk and TWRP can be used to install custom ROMs on Android devices. | |
Root access | Both Magisk and TWRP provide root access to the device, allowing users to execute commands and install mods with root privileges. | |
Community support | Both Magisk and TWRP have active communities of developers and users who provide support and resources for using the tools. | |
Support for custom ROMs | Both Magisk and TWRP can be used to install custom ROMs on Android devices. | |
Support for kernels | Both Magisk and TWRP can be used to install custom kernels on Android devices. | |
Support for firmware | Both Magisk and TWRP can be used to install custom firmware on Android devices. | |