{"id":5363,"date":"2021-02-16T19:28:48","date_gmt":"2021-02-16T13:58:48","guid":{"rendered":"https:\/\/droidwin.com\/?p=5363"},"modified":"2021-02-16T19:28:48","modified_gmt":"2021-02-16T13:58:48","slug":"flash-stock-magisk-patched-boot-img-via-twrp","status":"publish","type":"post","link":"https:\/\/droidwin.com\/flash-stock-magisk-patched-boot-img-via-twrp\/","title":{"rendered":"How to Flash Stock and Magisk Patched Boot.img via TWRP"},"content":{"rendered":"

In this guide, we will show you the steps to flash the stock boot.img as well as Magisk patched boot.img (magisk_patched.img) via TWRP Recovery. There are a plethora of benefits associated with rooting your device. For example, you could gain administrative privileges or access to the system partition. Likewise, you could also flash tons of mods, including the likes of Magisk Modules<\/a>, Substratum Themes<\/a>, and Xposed Framework<\/a>. So how could one root their device? Well, there exist two different methods for the same.<\/p>\n

In the first one, you just have to flash the Magisk Installer ZIP via TWRP Recovery<\/a>. The second method is a slightly lengthier one and asks for patching the stock boot.img via Magisk and flashing it via Fastboot Commands<\/a>. But since the inception of A\/B partition devices, it has become quite a tough task for some in flashing recovery via Fastboot. This is because, in these dual partition devices, there exists no recovery partition, rather everything is taken care of by the boot partition<\/a>.<\/p>\n

That is the reason why you cannot directly flash TWRP Recovery onto these devices. Furthermore, sometimes, you would also have to flash the TWRP.img file to both the boot partitions A and B, whereas others require to only flash to the current active partition<\/a>. All in all, these might lead to a few confusions to the end-user, especially if they are new to this domain, Fortunately there exists an easy way out. You could easily flash the stock boot.img as well as Magisk patched boot.img via TWRP Recovery. Let’s check out how this could be achieved.<\/p>\n

\n

Table of Contents<\/p>\n