Easy Way to Root All Razer Phone and Install Magisk

Razer-Phone

You need to ensure that you have a clean boot.img from the factory images provided by Razer, you then need the TWRP.img and TWRP.zip versions. You also need Magiskv16. (Latest works great.)

See Guide Below

1.) Obtain boot.img from the latest Razer factory image. (If you are not already on the latest, best to just flash it using Razers guide to restore using factory image.) https://developer.razerzone.com/razer-phone-dev-tools/factory-images/
2.) Obtain TWRP.img and TWRP.zip from https://dl.twrp.me/cheryl
3.) Obtain Magisk from: https://forum.xda-developers.com/attachment.php?attachmentid=4427150&d=1519237503
4.) Now that you have all 3 files. I will explain twice to make this easy for the lamen depending on which slot you are starting out on.
5.) Push all 3 files to /sdcard by ensuring all 3 filesare inside of your platform-tools folder with adb.exe and fastboot.exe, and with the following command: “adb push boot.img /sdcard”, then “adb push twrp-installer-3.2.1-0-cheryl.zip /sdcard”, then “adb push Magisk-v16.0.zip /sdcard”
6.) Now boot into fastboot by doing: “adb reboot bootloader”
7.) It’s always good to test if your drivers are working by doing: “fastboot devices” If you get a serial number then it’s working fine, and use a good Grade USB-A to USB-C cable.
8.) Once in the bootloader and you see “Download Mode”, type: “fastboot flash boottwrp-3.2.1-0-cheryl.img && fastboot reboot”
9.) You should now be in TWRP. Select the reboot button and check which slot you are on and follow instructions accordingly below: (Skip down to “Slot B Instructions” if you are starting out on Slot B.)

Slot A Instructions:

1.) Verify that you are in Slot A by going to Reboot, then viewing what slot you are currently on. It should say Slot A.
2.) Back out and go to “Install”, then select “Install IMG” button at the bottom, then browse to the boot.img file.
3.) Select boot.img and swipe to install.
4.) Go back to the main menu, and select the “Reboot” button and change your slot to Slot B.
5.) Once verified it states Slot B, select Bootloader to go back to “Download Mode” This will force it to SlotB, and re-run “fastboot flashboot twrp-3.2.1-0-cheryl.img && fastboot reboot”.
6.) Once there, to go the “Install” button, and select “Install IMG” button, and select and flashboot.img again. This will give you a clean boot.img on Slot B, as well as Slot A.

Your phone is now corrected, and you can do it the proper way.

7.) Doesn’t matter which flash you are on now. Go to “Install” button in the main menu, and select “Install Zip”, and select the TWRP-installer-3.2.1-0-cheril.zip file. Swipe to complete. This will PATCH BOTH Boot.img images! This is required!
8.) Reboot to System so that it can get a proper boot and verify that Wifi works. (It should if you followed instructions to the letter.)
9.) Once done, type: “adb reboot recovery”. (IMPORTANT!!! DO NOT DO DOWNLOAD MODE AND BOOT THE TWRP.IMG as it will OVERWRITE ALL OF YOUR WORK THUS FAR!) This takes you straight to recovery without overwriting. Go to the install button and install a zip, and select the Magisk-v16.0.zip file, and reboot to System. Congratulations! It should be working, but we’ve only flashed one side, we want to cover both banks, so we need to flash magisk on the second bank as well. (This is optional, but nice to have in case your phone decides to switch banks due to some error and root will still work if you do continue.)
10.) If it is and you want to be more complete. Type: “adb reboot recovery”. (IMPORTANT!!! DO NOT DO DOWNLOAD MODE AND BOOT THE TWRP.IMG as it will OVERWRITE ALL OF YOUR WORK THUS FAR!) go to the Reboot Button, and change your slot, then select “Recovery” to force a reboot to force the slot change. Then go to the Install Button and select Magisk-V16.0.zip and flash it over the boot.img from the new slot we just changed too.

Now both banks are flashed properly, and it doesn’t matter which one you boot from, it should work with Wifi.

Slot B Instructions:

 

(Skip if you started originally on Slot A, you are done.)
1.) Verify that you are in Slot B by going to Reboot, then viewing what slot you are currently on. It should say Slot B.
2.) Back out and go to “Install”, then select “Install IMG” button at the bottom, then browse to the boot.img file.
3.) Select boot.img and swipe to install.
4.) Go back to the main menu, and select the “Reboot” button and change your slot to Slot A.
5.) Once verified it states Slot A, select Bootloader to go back to “Download Mode” This will force it to Slot A, and re-run “fastboot flashboot twrp-3.2.1-0-cheryl.img && fastboot reboot”.
6.) Once there, to go the “Install” button, and select “Install IMG” button, and select and flashboot.img again. This will give you a clean boot.img on Slot A, as well as Slot B.

Your phone is now corrected, and you can do it the proper way.

7.) Doesn’t matter which flash you are on now. Go to “Install” button in the main menu, and select “Install Zip”, and select the TWRP-installer-3.2.1-0-cheril.zip file. Swipe to complete. This will PATCH BOTH Boot.img images! This is required!
8.) Reboot to System so that it can get a proper boot and verify that Wifi works. (It should if you followed instructions to the letter.)
9.) Once done, type: “adb reboot recovery”. (IMPORTANT!!! DO NOT DO DOWNLOAD MODE AND BOOT THE TWRP.IMG as it will OVERWRITE ALL OF YOUR WORK THUS FAR!) This takes you straight to recovery without overwriting. Go to the install button and install a zip, and select the Magisk-v16.0.zip file, and reboot to System. Congratulations! It should be working, but we’ve only flashed one side, we want to cover both banks, so we need to flash magisk on the second bank as well. (This is optional, but nice to have in case your phone decides to switch banks due to some error and root will still work if you do continue.)
10.) If it is and you want to be more complete. Type: “adb reboot recovery”. (IMPORTANT!!! DO NOT DO DOWNLOAD MODE AND BOOT THE TWRP.IMG as it will OVERWRITE ALL OF YOUR WORK THUS FAR!) go to the Reboot Button, and change your slot, then select “Recovery” to force a reboot to force the slot change. Then go to the Install Button and select Magisk-V16.0.zip and flash it over the boot.img from the new slot we just changed too.

Now both banks are flashed properly, and it doesn’t matter which one you boot from, it should work with Wifi.

This is how you correct and ensure you are rooted if you screwed up.

————————————————–

Now for instructions to do it the clean way for the first time. (For those who did not muck up their phone and waited patiently to do it right the first time.)

1.) Type: adb reboot bootloader
2.) Type: “fastboot flash boot twrp-3.2.1-0-cheryl.img && fastboot reboot”
3.) Once booted into TWRP via the image. Push the 3 files: “adb push boot.img /sdcard”, then “adb push twrp-installer-3.2.1-0-cheryl.zip /sdcard”, then “adb push Magisk-v16.0.zip /sdcard”
4.) Once pushed, on the phone, select the Installbutton, then select “Install IMG” button, and select boot.img, then swipe to install.
5.) Once installed, go back to the Install button, and then “Install Zip”, then select TWRP-Installer-3.2.1-0-cheryl.zip and install the zip.
6.) This will Patch TWRP onto both boot.img’s which should both be clean up to this point. (factory image shouldn’t be required)
7.) Now that TWRP.zip has been installed to both boot.img’s, you must reboot to SYSTEM!
8.) Once back in the phone verify Wifi still works, then do: “adb reboot recovery” (IMPORTANT!!! DO NOT DO DOWNLOAD MODE AND BOOT THE TWRP.IMG as it will OVERWRITE ALL OF YOUR WORK THUS FAR!)
9.) Once in recovery, go to the install button, and select Install Zip, and select Magisk-v16.0.zip.
10.) Once this is done, you should do this to the other Slot. To accomplish this without screwing it up, go to the Reboot button from the main menu and switch slots. Once slots are switched, select Recovery to reboot into recovery (even though you are already in Recovery, we need a reboot to force the slot change for it to flash the correct boot flash slot) and force a Slot swap.
11.) Now verify that the Slot swapped via the “Reboot” button, back out, and install, then install zip, and select Magisk-v16.0.zip again. and swipe to install.

12.) Reboot into System or swap slots if you want and reboot into System, it should work either way, and Wifi will work!

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.