Put stock boot.img to Android-Image-Kitchen's root folder. Execute ./unpackimg.sh boot.img at root directory of Android-Image-Kitchen, this command would unpack boot.img and you will get some files. Replace boot.img-kernel in the split_img directory with the Image you extracted from AnyKernel3 (note the name change to boot.img-kernel).
Copy only the boot.img file from the extracted folder to your device storage. Now, open the Magisk Manager app and select INSTALL and choose to install again. Then tap on “Patch Boot Image File”. Go to internal storage and select your device boot image that you moved earlier. Now, wait for Magisk to start patching the boot image.
If you modify your device, bottom line, you should leave it unlocked so you can fix things or go back to stock if needed, otherwise you could turn it into a paper weight. Even if root is done without modifying the boot.img, I would still keep it unlocked as there are usually still system changes.
STEP 4: Patch Pixel Experience Stock Boot Image via Magisk. To begin with, transfer the LineageOS boot.img file (that you had just extracted) to your device. Then download and install the Magisk App onto your device. Launch it and tap on the Install button situated next to Magisk. From the Method section, choose Select and Patch a file.
2. Extract boot.img file from the OTA package and save it on your phone. 3. Download and install the Magisk app on your Nothing Phone 1 and 2. 4. Open the Magisk app and click on Install next to the Magisk. 5. Tap on Select and Patch a File. 6. Select the boot.img file you saved in step 2. Magisk will patch the boot image. 7.
On the screen next to the power and volume buttons, you should see some text. Press the volume up key until it says “unlock the bootloader.”. Once it says this, press the power button. The . 475 218 246 160 107 157 348 378

backup boot img without root