The easiest method to install Magisk on Android is by flashing the latest Magisk installer ZIP file using TWRP.
Step-by-step guide:
1. Download the latest Magisk installer zip.
2. Connect your phone to the PC using the USB cable and enable MTP/File Transfer mode.
3. Copy the downloaded Magisk zip file (e.g. Magisk-v24.0.zip) to the device’s internal storage or SD card.
4. Boot your Android device into TWRP recovery using the relevant key combination.
5. Alternatively, you can also use the following ADB command while your device is connected with USB debugging enabled: adb reboot recovery
6. Tap on ‘Install’ in the TWRP main screen.
7. Navigate to the phone’s internal/external storage and select the Magisk installer zip file (e.g. Magisk-v24.0.zip).
8. The file will be added to the TWRP flashing queue.
9. Swipe the button on the bottom of the screen to flash the file and install Magisk on your Android device.
10. When the flashing process is complete, hit the ‘Reboot System’ button.
After your Android phone boots, you will see the latest Magisk Manager app present in the app drawer.