FORUMS
Remove All Ads from XDA

TWRP for Razer Phone

1,696 posts
Thanks Meter: 13,129
 
Post Reply Email Thread
https://dl.twrp.me/cheryl

Razer Phone Install Instructions

Read these instructions and follow them carefully. Failure to do so may result in not being able to update the device in the future and there are no factory images available.

The Razer Phone uses the newer AB partition scheme first introduced on the Pixel 1. As such there is no recovery partition. Instead, the recovery is part of the boot image. Unlike the Pixel devices, Razer has disabled fastboot boot so there is no way to temporarily boot TWRP to perform an installation.

Getting into fastboot mode or recovery on the Razer Phone requires plugging the device into a USB cable. I would recommend against flashing or performing recovery-related actions unless you have access to a USB cable and port so that you can get back into recovery should something go wrong. Power off the device. Hold volume up to get into recovery or volume down to get into fastboot mode. Plug the device in while holding the appropriate button and the device should boot to the mode you selected. If it boots up to the charging screen, try a different USB cable or port. Make sure you are able to boot the device to fastboot via USB cable before flashing anything.

We are going to use the other boot slot to flash the initial copy of TWRP and boot TWRP. To do this you will need to turn on developer options and enable USB debugging. You will also need to enable OEM unlocking and unlock the bootloader. I am not going to discuss how to get the proper drivers installed or assist you with doing these basic steps. There's tons of guides elsewhere for these items if you need it. I will say that unlocking the bootloader requires using fastboot flashing unlock instead of fastboot oem unlock. Once you have adb working, run this command:
adb shell getprop ro.boot.slot_suffix

It should say:
[ro.boot.slot_suffix]: [_a]
Or:
[ro.boot.slot_suffix]: [_b]

Make note of whether you are currently using slot A or B. Next power off the device and boot to the bootloader using your USB cable and volume down. You want to switch to the other boot slot. If you are currently on slot A, type this:
fastboot --set-active=_b
Or on slot B type this:
fastboot --set-active=_a

You should see something like this:
Setting current slot to 'a'...
OKAY [ 0.042s]
finished. total time: 0.042s

I found the bootloader on the Razer Phone to be extremely finicky and I had to run the command multiple times until I got it to run successfully. You may have to hold the power button for 15 seconds to force power off the device and then re-enter fastboot mode. Keep trying until it works. Once it's on the right boot slot, type this:
fastboot flash boot twrp-3.2.1-0-cheryl.img && fastboot reboot

Your device should now boot into TWRP. From here, decrypt your device if needed at the password prompt. DO NOT swipe to allow modifications until after you make your initial backup; instead tap on the read-only button. Go to the reboot page and tap on the button at the bottom to switch back to the slot you were originally using. Go to the backup page in TWRP and back up Boot and System Image. It is HIGHLY recommended that you save this backup in a safe spot on your computer because you may need to restore it to take official OTA updates from Razer. Once you have finished making your backup, run this command:
adb push twrp-installer-3.2.1-0-cheryl.zip /sdcard

In TWRP, tap on Install and browse to the zip and install it. TWRP will now be installed to both slots. TWRP is now installed and you can reboot and use your device as normal, though with TWRP installed, you won't be able to take OTA updates without restoring the stock boot image.

MTP is disabled because it causes a kernel panic sometimes with the stock kernel. ADB also does not work with the stock kernel which makes transferring files between your PC and the device when using the stock kernel a bit of a challenge. The TWRP bootable image does have working ADB though and you can copy files to a SD card or USB stick if needed.
The Following 39 Users Say Thank You to Dees_Troy For This Useful Post: [ View ]
 
 
29th December 2017, 09:39 PM |#2  
Dees_Troy's Avatar
OP Senior Recognized Developer
Flag KC MO
Thanks Meter: 13,129
 
Donate to Me
More
Reserved!
The Following 3 Users Say Thank You to Dees_Troy For This Useful Post: [ View ]
30th December 2017, 12:22 AM |#4  
Xshooter726's Avatar
Senior Member
Thanks Meter: 249
 
More
Let development begin
Awesome work!
The Following 3 Users Say Thank You to Xshooter726 For This Useful Post: [ View ] Gift Xshooter726 Ad-Free
30th December 2017, 12:22 AM |#5  
mikeandjaimie's Avatar
Senior Member
Flag Kingston
Thanks Meter: 155
 
Donate to Me
More
Awesome! Now we just need to let the dev fun begin! BTW You Rox!

Edit: Im trying to do a full backup of the current state of my phone. went into TWRP and selected every partition and hit backup. Was flying along till it got to Data and it just stopped. No movement @ 40% for about 5 minutes so far Is it working for anyone else? does it just take insanely long with no percentage increase, or am I just being paranoid cause its my new phone lol

Edit 2: I just cancelled it and backed up everything but Data and it went fine, I'm now attempting to backup JUST Data.. Ill have to restore 2 backups seperately, but it appears to be working

Final Edit: All good.. not sure what happened the first backup but doing them seperately worked. Rooted with Magisk 15.1 and running beautifully! Gonna try out some root stuff like Xposed.. Thanks for all your hard work devs & testers!
The Following User Says Thank You to mikeandjaimie For This Useful Post: [ View ] Gift mikeandjaimie Ad-Free
30th December 2017, 06:25 AM |#6  
raimondomartire's Avatar
Senior Member
Flag Salerno
Thanks Meter: 4,871
 
Donate to Me
More
@Dees_Troy Thanks for your work. Broken link https://github.com/TeamWin/android_device_razer_cheryl
Please update when you have time
Another thing in your instruction consider that on european razer phone the right command is this (I've found problem only for slot b in slot a work without -i 0x1532)
ffastboot -i 0x1532 flashing unlock
30th December 2017, 08:53 AM |#7  
Senior Member
Thanks Meter: 37
 
More
i get the no devices/ emulators found

EDIT: I didn't realize you had to do that part with the phone on. so when I boot in to bootloader i have slot b and type the command to switch to a. all I see is waiting for devices. thats when I redo it until it writes correct?
30th December 2017, 09:23 AM |#8  
raimondomartire's Avatar
Senior Member
Flag Salerno
Thanks Meter: 4,871
 
Donate to Me
More
Quote:
Originally Posted by RicardoSal24

i get the no devices/ emulators found

EDIT: I didn't realize you had to do that part with the phone on. so when I boot in to bootloader i have slot b and type the command to switch to a. all I see is waiting for devices. thats when I redo it until it writes correct?

I've Uses this command to open bootloader?
fastboot -i 0x1532 flashing unlock

If yes command for your device work add -i 0x1532
30th December 2017, 09:29 AM |#9  
Senior Member
Thanks Meter: 37
 
More
Quote:
Originally Posted by raimondomartire

I've Uses this command to open bootloader?
fastboot -i 0x1532 flashing unlock

If yes command for your device word add -i 0x1532

I would still get the message saying <waiting for any device>
30th December 2017, 09:45 AM |#10  
raimondomartire's Avatar
Senior Member
Flag Salerno
Thanks Meter: 4,871
 
Donate to Me
More
Quote:
Originally Posted by RicardoSal24

I would still get the message saying <waiting for any device>

Verify your driver in setting. You must add google driver
30th December 2017, 09:47 AM |#11  
Senior Member
Thanks Meter: 37
 
More
Quote:
Originally Posted by raimondomartire

Verify your driver in setting. You must add google driver

link please
Post Reply Subscribe to Thread

Tags
recovery, team win, twrp

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes