[Razer Phone Guides, News, & Discussion] nikitis:
This is the new official way to root the Razer! Please forget all older methods. If you follow this guide, you will not have problems.

Ok, so there isn't some file you download to fix the Wifi, but this is how you make it work, when you swear you've tried everything.

(Trust me you didn't even if you think you did.)

So I'm a very smart person and I realized why so many people are running into this problem. It's because they are used to a bad habit with the Pixel XL phones. I was a prior Pixel XL phone owner and the bad habit that I have and that you guaranteed failed to realize what you did if you have broken wifi was, you didn't flash the TWRP.zip version.

You see, with the Pixel XL, most people realized that flashing TWRP permanently was not required on the Pixel XL and therefore we only booted the TWRP.img image every time we needed to flash something. Well that flat out does NOT work here on the Razer phone and it's the reason everyone is having issues with Wifi not working after flashing Magisk. You see I figured out that TWRP.zip flashes itself onto the stock boot.img image, and when it does so, it does it in such a way that it appears stock still to Magisk. Magisk then happens to flash itself onto the image in a proper way. If you use just the stock boot.img image and flash Magisk onto it, it also detects it as a stock image, but something is bugged in the formatting which breaks Wifi. So you cannot just take a stock boot.img and flash magisk onto it and expect it to work.

In fact when you fastboot twrp.img && fastboot reboot, it literally overwrites the stock boot.img for one side. (Current slot that you are on.) Before factory images, you are then required to store the boot.img from the other slot you did not boot from. (This was what was not explained very well for the lamen to understand.) Before factory images, if you failed to do this, and flashed TWRP.zip then you basically no longer have a clean boot.img file on either slot. (Now that we have factory images, we can just extract boot.img from there and use only it.)

Therein lies the fix. 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 Magisk v16. (Latest works great.)

Guide coming in a second, but for those who just need to reset and fix Wifi regardless of your current state here's how:

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://xdaforums.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 files are 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 boot twrp-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 flash boot 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 flash boot.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 flash boot 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 flash boot.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 Install button, 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!

Congratulations!