Run sudo rkdeveloptool wl 0x4000 u-boot-main.img (download u-boot-main.img.xz, don't forget to decompress it!) Unplug the power cord Now you can follow the instructions on how to install on eMMC/NAND via SD card, just use instead an USB stick to do all the operations and plug it into the USB OTG port. Once you reboot, USB OTG port will be used You will know if the command worked on your computer if it returns with the connected device’s identification number. Type in “ adb restore /backup.ab “. Your Android device will Transfer the magisk_patched.img file to the platform-tools folder (where the Android SDK is installed). Inside the same platform-tools folder, type in CMD in its address bar and hit Enter. This will launch the Command Prompt. Now type in the below command in the CMD window to boot your device to Fastboot Mode: Whether your device has boot ramdisk; A boot.img, init_boot.img or recovery.img based on (1) Let’s continue to Patching Images. Patching Images. Copy the boot/init_boot/recovery image to your device; Press the Install button in the Magisk card; If you are patching a recovery image, check the “Recovery Mode” option FYI, the only way you can dump the stock recovery require s-off so you can downgrade hboot to 1.44 and use "fastboot boot recovery.img" to boot a custom recovery and then pull your stock recovery using dd commands from an adb shell of custom recovery. STEP 8: Boot Android 13 using Magisk Patched Boot.img. It is always recommended to first boot your device via the patched boot.img, rather than directly flashing it. This way you will be able to check if everything is working well or not. If everything is on the good side, then you may proceed to the permanent root. Now Extract the boot.img file from the firmware. If you have Samsung firmware, then extract the AP.tar file. Now copy the extracted boot image or AP tar file to your phone storage. Open the Magisk app on your phone. Now click on the first Install option right next to the Magisk. STEP 4: Get Razr 40 Ultra / Razr+ / Razr 2023 Stock Boot.img. Now, get hold of the stock boot.img file for your device. For that, download the stock firmware for your device from a trusted site [such as Lolinet]. Make sure to download the same firmware version that is currently installed on your device. Once downloaded, extract the boot.img Go to Install -> Select and patch a file. Select the Download/boot.img file, and let Magisk install into that image. Pull the patched image just created according to the path Magisk gives – then turn your phone off. Use MTK client to unlock the bootloader and push the patched image into the boot partition. That thing is very inconvenient and unreliable. Instead, use a custom recovery such as TWRP which takes backup in a manner you would expect from a backup tool. You give the command to backup and a custom recovery obeys that religiously with superuser privileges. When you ask it to restore a backup it does that too very religiously. 5ZOt5.