[TWRP + MAGISK] FULLPROOF Guide for all Razers! Wifi Fix!

Gobabygoooo

New member
Aug 14, 2019
1
0
0
How can I fix device unauthorized error it showing to me every time I connect the phone. I'm trying to root my device for tow day and I'm failing in every time because this error.. Please help me ?
 

rsgc1990

New member
Aug 21, 2019
1
0
0
Help

Hi,

I have tried to follow the instructions words for word but get stuck near the start, I try the first fast boot command twrp 3210 cheryl etc and get 'Waiting for any device' I cannot get passed this!

Please help ive tried everything
 

sinkoo1979

Senior Member
Oct 29, 2016
541
78
28
Yigo
How can I fix device unauthorized error it showing to me every time I connect the phone. I'm trying to root my device for tow day and I'm failing in every time because this error.. Please help me
unauthorized error in "adb reboot bootloader"? if that is the case, just allow it on your phone. Did you enable developer options? is OEM unlocked toggled on? is android debugging toggled on? Try a different USB cable. Did you install razer phone drivers?

Try all that I mentioned above. Hope this helps

---------- Post added at 10:23 PM ---------- Previous post was at 10:19 PM ----------

Hi,

I have tried to follow the instructions words for word but get stuck near the start, I try the first fast boot command twrp 3210 cheryl etc and get 'Waiting for any device' I cannot get passed this!

Please help ive tried everything
Need to update drivers. Go to device manager and look for your phone (it will be like "android"), right click on the mouse and choose update drivers. Look for the Razer phone drivers that you have for the razer phone on your computer and update drivers. Afterwards it will install TWRP, etc.
 
Last edited:

ExodusEclipse

New member
Dec 31, 2019
1
1
0
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://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 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!
I tried this. When I go into "bootloader" my pc wont see my phone so I cant even send it commands to do anything. Please help if you know how to get around this.
 
  • Like
Reactions: Austinhang

Mr.Smiles

New member
Mar 20, 2020
1
0
0
I tried this. When I go into "bootloader" my pc wont see my phone so I cant even send it commands to do anything. Please help if you know how to get around this.
Go to your device manager on windows.
Under "other devices" -> you'll see your android device.
right click and update drivers.
Choose "Browse My Computer" and "Let me pick from a list of available drivers on my computer"
Map it to where you have downloaded your Razer usb drivers, afterwards run the command

Code:
fastboot devices
There you go.
 

kevinc999

Member
May 18, 2020
9
0
0
need some help please

Hi guys,

I am trying to root my razer phone one and have been trying constantly to try and root my phone but it is unsuccessful.
updating drivers, USB cable switched but all no use. When I input the command "fastboot flash boot twrp-3.2.1-0-cheryl.img && fastboot reboot" it is keep giving me "find device" message and also the phone is in "download mode" connected and not starting the Twrp. I have rooted before on other phone but this is first time encountering this problem on Razer one. If someone can help, that would be great!

Thanks
 

kevinc999

Member
May 18, 2020
9
0
0
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash boot twrp-3.2.1-0-cheryl.img && fastboot reboot
target didn't report max-download-size
sending 'boot' (23120 KB)...
FAILED (command write failed (No error))
finished. total time: 0.033s
 

kevinc999

Member
May 18, 2020
9
0
0
can someone help me! I keep getting this and the phone screen goes to the razer logo without doing anything!

C:\Users\Kcsla>fastboot flash boot cheryl-P-Magisk-twrp-boot.img && fastboot reboot
Sending 'boot' (26840 KB) FAILED (Write to device failed (Invalid argument))
fastboot: error: Command failed

---------- Post added at 09:39 PM ---------- Previous post was at 08:51 PM ----------

C:\adb\platform-tools>fastboot flash boot twrp-3.2.1-0-cheryl.img && fastboot reboot
Sending 'boot' (23120 KB) FAILED (Write to device failed (Invalid argument))
fastboot: error: Command failed
 

Battin

New member
Jul 27, 2020
1
0
0
Hey what do i do if no devices showup in fastboot and im in the bootloader
adb does work but because nothing shows up when i write fastboot devices i cant countine
anyone know what to do?
 

-SKYLINE-

Senior Member
May 25, 2007
152
18
38