Step 2: Wiping Cache and Data (Optional)
If you are experiencing issues with your device, wiping the cache and data before installing Magisk is recommended. In TWRP, select Wipe, and then select Cache and Data. Swipe to confirm the wipe process.
Step 3: Installing Magisk through Sideloading
In TWRP, select “Direct Install” and navigate to the Magisk zip file you downloaded earlier. Select the file and swipe to confirm the installation process. Wait for the installation to complete. This process should take a few minutes.
Step 4: Rebooting your Device
Once the installation is complete, return to the TWRP main menu and select Reboot. Select System and swipe to confirm the reboot process. Your device will now reboot.
After your device reboots, it may take some time to boot up as it rebuilds the cache and optimizes apps. Once your device has finished booting up, you have successfully installed Magisk and bypassed the Signature Verification Failed Error 21.
Verifying Magisk Installation
After installing Magisk, you can verify if the installation was successful and whether you gained root access or not by performing the following steps:
Checking for Root Access
Running a root checker app should help determine whether Magisk was installed successfully. The installation was done if the app verifies that your device has root access. Several Root Checker apps are available, such as Root Checker by joeykrim, Root Checker Basic by JRummy Apps Inc., and Root Checker Pro by Free Android Tools. The steps are as follows:
- Install a root checker app that you downloaded from the Google Play Store.
- Tap the “Verify Root” button in the root checker application.
- The app will then determine if your device has root access.
- The installation is successful if it shows that your device has root access.
Using Magisk Manager
Additionally, you can use the Magisk Manager app to determine whether root access is enabled on your device and whether the installation was successful. You can also add new modules and manage the ones installed using the Magisk Manager.
- Open the Magisk Manager app that you installed earlier.
- Check to see if your device has root access by using the Magisk Manager app.
- You can manage the installed modules in the app and add new ones.
Troubleshooting
If you face any issues while installing Magisk, like the Signature Verification Failed Error 21, you can try the following troubleshooting steps:
Addressing Common Installation Issues
Magisk is a powerful tool for rooting Android devices, but some issues can occur during installation. Here are some tips to help you address common installation issues:
- Fulfill Prerequisites: Ensure you have fulfilled all the prerequisites mentioned earlier, such as unlocking the bootloader and installing a custom recovery. Without these prerequisites, Magisk installation will not be successful.
- Download the Latest Magisk Zip File: Make sure you have downloaded the latest Magisk zip file from the official website. The latest version is likely to have bug fixes and compatibility updates, improving the chances of a successful installation.
- Download Magisk Zip File Again: Try downloading the Magisk zip file again, as the file may have been corrupted during the download process. Make sure to download the file from a reliable source.
- Flash Magisk Zip File Using Different Custom Recovery: If the installation still fails, try flashing the Magisk zip file using a different custom recovery. Sometimes, different recoveries have different installation processes, so this may help.
Uninstalling Magisk
If you want to uninstall Magisk, you can do so by flashing the Magisk uninstaller zip file using the same method as installing Magisk. Alternatively, you can also use the Magisk Manager app to uninstall Magisk. Here are the steps to uninstall Magisk:
- Download the Magisk uninstaller zip file for your Magisk version from the official website.
- Turn off your device and press the Volume Up button + Power button simultaneously until the device boots into recovery mode.
- In TWRP or any other custom recovery, select Install and navigate to the Magisk uninstaller zip file.
- Select the file and swipe to confirm the installation process.
- Once the uninstallation process is complete, reboot your device.
- You have now successfully uninstalled Magisk.
Note: Before uninstalling Magisk, make sure to disable all Magisk modules and remove all modifications made using Magisk. Not doing so may result in issues with your device’s functionality.
Conclusion
Magisk is a very helpful tool that enables you to root your Android device. With Magisk, you can add various modules to your device to enhance its functionality, customize its appearance, and even improve its performance. It also allows you to bypass system signature verification, which is necessary for installing custom ROMs, custom kernels, and other mods that enhance your device’s features.
If you want to sideload Magisk and fix the signature verification failed error 21, you can follow the steps provided in this guide. If you face any issues or have any questions, feel free to ask us in the comments section below. We will do our best to help you.