[Razer Phone ROMs, Kernels, Recoveries, & Other Dev] tamale:
I'm in a similar boat. I feel like we just need better step-by-step instructions from beginning to end -- a lot of stuff, including the original post in this thread - seems to leave off important details.. like for instance, the latest version of fastboot has a command line arg to select which slot you want to apply a flash boot command to - It's not clear if you need to do that AND run 'set-active' separately or not... But in my case if you actually include --slot in the flash boot command it will target the right slot but if you don't and only use 'set-active' it'll flash slot a even if you set b as active.

Similarly, it's not clear how you make a backup in TWRP and copy it to your computer or go from TWRP 'read only' to actually being able to boot into the OS again. (I'm in the TWRP boot loop myself right now)

So, here's my attempt to document exactly what I did and where I'm at.. note that I had *already* unlocked the bootloader and performed a factory flash (following razer's official instructions at https://developer.razerzone.com/razer-phone-dev-tools/general-instructions/) - other people will be at a different starting state than me.

1) Install the latest ADB and Google drivers (I used minimal_adb_fastboot_v1.4.2.zip from here: https://androidmtk.com/download-minimal-adb-and-fastboot-tool)

2) Download the twrp image and installer from https://dl.twrp.me/cheryl/ and put the .img file and .zip file into the same directory (in my case, C:\Program Files (x86)\Minimal ADB and Fastboot\)

3) In a command prompt (windows 10, hit start, type 'cmd', hit enter), cd into the directory where adb.exe and fastboot.exe was installed (in my case, C:\Program Files (x86)\Minimal ADB and Fastboot\)

4) You can check your versions of adb and fastboot like this:

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot --version
fastboot version 0.0.1-4500957
Installed as C:\Program Files (x86)\Minimal ADB and Fastboot\fastboot.exe

C:\Program Files (x86)\Minimal ADB and Fastboot>adb --version
Android Debug Bridge version 1.0.39
Version 0.0.1-4500957
Installed as C:\Program Files (x86)\Minimal ADB and Fastboot\adb.exe

5) With the phone booted and a cable plugged in, type "adb devices" and confirm you get something back like "List of devices attached: 181747V00123456"

6) Get the current boot slot with "adb shell getprop ro.boot.slot_suffix" - make note of this for later.

7) Turn the phone off and unplug the cable from the phone. Keep your cmd prompt up in the current directory.

8) Hold the phone's volume down button and keep holding it down while you plug the cable back in - it should come on and say "Download mode" in the top left corner (no need to hit power button)

9) This is where the guide says to run "fastboot --set-active=_b" command (if your active slot was slot a as it was for me). I did this, and I got the response:

Setting current slot to 'b'...
OKAY [ 0.042s]
finished. total time: 0.042s

10) Then I ran the flash command.. "fastboot flash boot twrp-3.2.1-0-cheryl.img" but the response clearly indicated that it was flashing the a slot. I think with my version of fastboot I was supposed to have run:

fastboot flash boot twrp-3.2.1-0-cheryl.img --slot b[CODE]
11) Well, ****. At this point, I went ahead and rebooted anyway. TWRP came up. I decrypted the partitions by entering my swipe pattern, went to backup, and made a full backup of everything I could check.
12) I found out that to copy this backup to my computer, I needed to pull from "/data/media/0/TWRP", so I ran this command from the command prompt: "adb pull /data/media/0/TWRP TWRP". I confirmed I had a TWRP folder with the backup on my computer in the adb dir.
13) Thinking I might as well try to soldier on, I pushed the twrp-installer-3.2.1-0-cheryl.zip file to the phone with the command: "adb push twrp-installer-3.2.1-0-cheryl.zip /external_sd/media/0/Download/"
14) I then used the 'install' option in TWRP to find that file (I had to browse to it on the SD card) and install it
15) This clearly installed to both slots a and b, and then rebooted the phone
16) This is when I felt stuck - nothing I did made the phone actually boot into the OS anymore... only TWRP.

I tried a lot of things at this point, including doing a full restore of this backup I made, but I can only seem to boot into TWRP, never the OS. When I boot into TWRP slot a, it asks for my pattern to decrypt my data and mount. If I do that, I can see all my apps and files.. but I don't know how to [B]actually boot[/B] into android. If I hit reboot, I have six options - System, Power Off, Recovery, Bootloader - then two for the slot A or slot B at the bottom.

Choosing "System" just immediately reboots into TWRP, asking again to decrypt my data with my pattern.
Choosing Power off, well, powers off the phone :)
Choosing Recovery also reboots into TWRP, asking again to decrypt.
Choosing Bootloader just goes back into download mode
Choosing slot 'b' instead still takes me to TWRP, but there is no data to decrypt.

Choosing 'cancel' when I have the option to decrypt lets me "Swipe to Allow Modifications" but I don't know what I should install/modify at this point.

Would really appreciate any help here - I'm willing to hop on a chat or something to go into even more detail if that'd help - I really don't want to have to set up all my apps and settings again!! :( :( :([COLOR="Silver"]

[SIZE=1]---------- Post added at 03:37 PM ---------- Previous post was at 02:45 PM ----------[/SIZE]

[/COLOR][QUOTE="tamale, post: 0"]I'm in a similar boat.

...
[/QUOTE]

For now, I've gone back to a fresh factory install again since I still have the backup on my PC now. Not sure how useful it is, but I'm hopeful I can eventually get this fixed and help others with clear instructions from beginning to end.