Flashing Magisk & Recovery
----------------------------
FLASHING MAGISK
----------------------------
Prerequisites: Magisk
Official Guide: Link
From Recovery
• Flash a custom recovery if you don't have one (guide below)
• Flash the Magisk zip/apk from recovery
From ODIN / Patching Manually
• Extract AP***.tar.md5 from stock rom (ideally the one you're on right now)
• Extract boot.img.lz4 from AP***.tar.md5
• Download the latest lz4 release, extract it. (Lz4 for windows)
• Drag boot.img.lz4 into lz4.exe.
• You can skip the above 5 steps and download the latest boot image from #stock_files, or if you know how to dump boot image using something like termux you can do that.
• Install and open the magisk app
• Press install and patch the boot image
• Flash it to boot using recovery
• OR, rename it to boot.img and compress it to a tar archive, boot to Download Mode and flash it to AP with Odin
• If your phone bootloops, flash #dmverity_disabler from recovery, or try flashing #null_vbmeta to AP with Odin
(Not always necessary, but if you flash it, you might have to wipe data, or you'll face weird bugs)
-------------------------------
FLASHING RECOVERY
-------------------------------
Prerequisites:
Recovery Image Compressed to .tar, or Flashable Zip (#recovery)
Multi Disabler, DM-Verity Disabler (or Magisk)
ODIN or a Recovery
(check notes for files)
Flashing From ODIN
• You'll be needing a tar archive with the recovery image in it
(The recovery image should be named recovery.img inside the tar archive)
• Reboot to Download Mode and connect USB
• Open ODIN and untick everything in the options tab
• Select the tar file in AP
• Press Start
• Wait for the flashing to complete
• Common instructions below [READ THEM]
Flashing From Recovery
• Just flash the .img file to recovery or flash the zip file
• Common instructions below
Common Instructions for flashing recovery
• You obviously don't need to do these if you're already using another recovery and have done this before
• After flashing the recovery, keep the USB connected, DO NOT boot to system (OneUI)
• Keep USB connected, hold volume down and power, when screen turns off, quickly switch to volume up and power, you should boot to recovery
• Format Data (not wipe, format) and reboot to recovery, not system, if you boot into system, format it again
(you can skip the format and multi disabler if you want to keep your internal encrypted, but then the recovery would be almost useless)
• Copy the necessary files to flash from your PC to internal storage or sdcard
• Flash Multi Disabler
• Flash DM-Verity Disabler (or Magisk v24.* if you are planning to root)
• Flash TWRP Bootlogo Patcher to hide the annoying warning at boot
• Reboot