Extract the boot.img or init_boot.img from the downloaded Factory or OTA image zip and then copy it to your phone's storage.
Install and open the latest Magisk app. On the home screen, tap "Install" on the right of the Magisk section.
It will bring up the Install Menu. Click on "Select and Patch a File" and then select the boot.img or init_boot.img file from your phone storage. Then click on "LET’S GO" to start the patching process.
Extract the google-platform-tools zip on your PC, then copy the magisk_patched.img file from your phone storage into the extracted folder.
Open a command prompt in the folder.
Power off your phone, then press and hold the power and volume down buttons together for a moment. Release both buttons when the bootloader screen appears.
Connect your phone to the PC using a USB cable
To flash the magisk_patched.img file, use the following command in CMD.
Pixel (1-6a):
Code:
fastboot flash boot magisk_patched.img
Pixel 7 and newer models:
Code:
fastboot flash init_boot magisk_patched.img
Reboot your phone after flashing:
Code:
fastboot reboot
Important Notice
Pixel 7 and newer models should use the init_boot.img file and flash it in the init_boot partition.
Make sure to use the boot.img or init_boot.img from the same firmware build that is running on your phone
Do not lock the bootloader after rooting your phone, as doing so will brick your device.
This post was last modified: 26-07-2024, 07:47 AM by hovatek.