yashsingh1/xdaforums huggingface dataset:
[Razer Phone 2 Guides, News, & Discussion] ChronosTrigger:
Can someone please help me out with this part.

When he says:

"Copy the image on the same folder as your ADB and Run the following commands:

fastboot flash boot_a boot.img

fastboot flash boot_b boot.img

fastboot reboot"

I'm really confused on what he means by "Copy the image on the same folder as your ADB and Run the following commands". The instruction is not clear here. What am I copying and from where? I thought fastboot mode was on the Phone. How am I supposed to copy a file on the phone? Am I supposed to somehow use my computer to copy something over? What image are they talking about, what is it called exactly? And where do I run the command? Using the ADB.exe cmd prompt?

Am I using the command on the computer, or am I doing it through the phone. What do I do "exactly" after I boot into fastboot mode? I don't know what he means by this ?. Can Someone please help.
[Razer Phone 2 Guides, News, & Discussion] jonchance_84:
Your PC needs to install a driver for when it's in normal operating mode (adb) and one when in it's booted into bootloader mode (fastboot). You may have to point device manager to the Android driver while in booted into bootloader. Adb and fastboot are just exe's that can be run command line, so just copy the boot.img file to the same folder that has adb and fastboot.

Honestly it sounds like to me that you don't have good enough knowledge of some basic IT skills that this requires, and I wouldn't recommend you tinkering with your phone until you really understand what this process is doing.

Razer has a pretty easy guide that lays all of this out on their dev site. Not trying to be a jerk, just trying to keep you from bricking your phone. Do what we all have done, read read read, learn learn learn. Xda's search function is great. I'd start by just doing some research with adb and watch some YouTube videos. Visuals always helped me understand what was going on.
[Razer Phone 2 Guides, News, & Discussion] ChronosTrigger:
Yes. Your IT knowledge is far greater that mines. I understand. This is why I am asking for help.

Really I just needed assistance with that one part, I understand the rest of the guide, and have gotten this far.

Ok. Where am I supposed to get the "boot.img" to copy into the same folder you installed your adb in?

I don't see anywhere in the guide where it explains where you get the "boot.img" from. I'm sorry for not being as knowledgeable as you, I just need a little explanation for this one part.
[Razer Phone 2 Guides, News, & Discussion] jonchance_84:
Go here:

https://xdaforums.com/razer-phone-2/development/root-pie-update-unlocked-devices-t3905454/page8

Then go to the first page of the thread. My bad on the link.
[Razer Phone 2 Guides, News, & Discussion] ChronosTrigger:
Thanks. That actually did help. Did a little research and I found out that you need to get the current boot.img that your current phone is using. I found out that I need "MR1" the latest image.

My question now, is the part where you type in:

"fastboot flash boot_a boot.img

fastboot flash boot_b boot.img

fastboot reboot"

Do I flash both "a" and "b"? Or just one? then fast reboot.

I also noticed that my boot.img is called "patched_boot"

Does that mean I have to type in:

"fastboot flash boot patched_boot.img

fastboot reboot"

Do I have to type that instead Instead?
[Razer Phone 2 Guides, News, & Discussion] jonchance_84:
Always always flash both a and b with the one boot.img.
[Razer Phone 2 Guides, News, & Discussion] ChronosTrigger:
I edited the last post. I don't know if you saw it.

But I also noticed that my boot.img is called "patched_boot"

Does that mean I have to type in:

"fastboot flash boot patched_boot.img

fastboot reboot"

Do I have to type that instead Instead?
[Razer Phone 2 Guides, News, & Discussion] jonchance_84:
Yes or simply change the filename to boot.img.

Don't forget boot_a and boot_b. Basically your telling adb to flash a file to particular spot. I don't know how much more direct I can be.
[Razer Phone 2 Guides, News, & Discussion] ChronosTrigger:
Nope. That is pretty direct. I just wanted to make sure you know. Rather just don't right the 1st time.

Thanks for the help :good:
[Razer Phone 2 Guides, News, & Discussion] AllGamer:
Of all the phones / tablets I've ever owned, RP2 is by far the most user friendly to unlock and root.

it's basically an AOSP phone with Razer skin.
[Razer Phone 2 Guides, News, & Discussion] JDubbed:
I applied this guide to my phone and no problems. However my latest security patch was in February. Does this break OTA?
[Razer Phone 2 Guides, News, & Discussion] raver445:
may someone please help me? i have the adb and fastboot drivers installed ... and it sees it in command prompt...when i try the relock bootloader command it sits there saying waiting for device... may i please have some help?
[Razer Phone 2 Guides, News, & Discussion] jonchance_84:
I would just follow Razer's guide. I haven't relocked mine, so I can't help ya.
[Razer Phone 2 Guides, News, & Discussion] raver445:
Okay but even when I try flashing something it does see it on the computer and then it refuses to go any further just sits there saying waiting for device
[Razer Phone 2 Guides, News, & Discussion] jonchance_84:
Make sure you get the prompt to trust device on your phone and USB debugging is enabled on your phone in developer options. Make sure you have a good cable too.
[Razer Phone 2 Guides, News, & Discussion] raver445:
Should I use the standard usb cable with it?
[Razer Phone 2 Guides, News, & Discussion] jonchance_84:
No it specifically says in the Razer guide not to use the supplied USB c cable. I used my old micro USB data cable with a micro to USB c adapter. Works great. Got a 4 pack for 7 bucks on Walmart's website. Their cable is only meant for charging.
[Razer Phone 2 Guides, News, & Discussion] raver445:
I mean I've tried with the USB a to USB c and seize the phone but it won't let me go beyond the device waiting part
[Razer Phone 2 Guides, News, & Discussion] jonchance_84:
U gotta be careful buying cables, you gotta be sure its meant for data. If it is then you're missing something simple. Type in adb devices to see if it sees your phone.
[Razer Phone 2 Guides, News, & Discussion] raver445:
Anyways I have quite a few that are meant for that but even with the right one it won't let me do anything
[Razer Phone 2 Guides, News, & Discussion] raver445:
Anyways I'm also getting this error as wellView attachment 4799632
[Razer Phone 2 Guides, News, & Discussion] jonchance_84:
Then u don't have the fastboot exe in the folder as the script. Fastboot and adb are executables and command line can only make use of them in the same folder.
[Razer Phone 2 Guides, News, & Discussion] raver445:
So sir where do I put these?
[Razer Phone 2 Guides, News, & Discussion] jonchance_84:
You need to research more and understand the process. Whatever batch file u use it whatever img you want to flash they all need to be in the same folder. Either run the bat or open a command line in that folder by holding shift and right clicking then select open command prompt here.

I work a help desk all day, I'm tired. This place is a place where people learn to help themselves, I'm not hand holding anymore. You really need to learn the basics before you brick your phone.
[Razer Phone 2 Guides, News, & Discussion] raver445:
Ok
[Razer Phone 2 Guides, News, & Discussion] JDubbed:
OTA updates seem to be broken after using this guide. My latest security patch is February 2019. I've attempted to initiate an OTA update but it says I'm already up to date. Any thoughts?
[Razer Phone 2 Guides, News, & Discussion] Reznor7:
I'm trying to flash the patched boot.img for MR1, and I'm getting the following error using fastboot:

target didn't report max-download-size

sending 'boot_a' (20768 KB)...

FAILED (command write failed (No error))

finished. total time: -0.000s

Any ideas why? Fastboot detects the device with the correct driver installed.
[Razer Phone 2 Guides, News, & Discussion] raver445:
I'm having a similar problem where the phone is being seen by the computer but when I try to reflash to stock software it goes and says waiting for device.
[Razer Phone 2 Guides, News, & Discussion] Reznor7:
I finally got things to work by using a laptop without USB 3.0 ports. The phone doesn't seem to like them, at least on my newer laptop.
[Razer Phone 2 Guides, News, & Discussion] raver445:
I have a Acer nitro 5 with USB c 3.0 and 2.0 ports and it still has problems
[Razer Phone 2 Guides, News, & Discussion] rrusek:
Can anyone state that this works with the AT&T version?

I am thing of getting the AT&T RP2 and want to unlock bootloader and root.

Just want to confirm that I will be able to to OEM Unlock on AT&T version.

Thanks in advance,

RJR
[Razer Phone 2 Guides, News, & Discussion] zn706:
OK what am I running into here? Can't write to the phone? Bootloader is unlocked.

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot devices

181844V01501515 fastboot

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash boot_a boot.img

target didn't report max-download-size

sending 'boot_a' (20768 KB)...

FAILED (command write failed (No error))

finished. total time: 0.002s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot devices

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash boot_b boot.img

target didn't report max-download-size

sending 'boot_b' (20768 KB)...

FAILED (remote: Requested download size is more than max allowed

)

finished. total time: 0.003s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot reboot

rebooting...

finished. total time: 0.001s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot devices

181844V01501515 fastboot
[Razer Phone 2 Guides, News, & Discussion] Anakin7239:
Razer phone 2 trouble

i don't understand, i typed adb reboot bootloader my razer phone 2 did jump to the bootloader screen, then i type "fastboot flash boot_a boot.img" into the cmd, but nothing happen ????

pls help
[Razer Phone 2 Guides, News, & Discussion] xttweaponttx:
Is the patched boot image in the same directory as your fastboot?
[Razer Phone 2 Guides, News, & Discussion] Anakin7239:
Yes, it is.

I did some research and find out that the phone have to had TWRP recovery to install magisk, and to install TWRP i have to flash the "Arter97 kernel.img". But then the problem still there...<waiting for device>

Here is the link to that Forum : https://xdaforums.com/razer-phone-2/how-to/root-t3875237

When i type fastboot flash boot arter97-kernel-*.img the powershell screen goes to <waiting for device>.

In Devices manager, My phone is recognized by windows as " Android bootloader interface" (already install the driver) and also able to unlock Bootloader by my Windows 10.

It doesn't show any series number when i type "Fastboot device", but with ADB devices, it shows...(?)

Is this a problem of connection ? or not ?

Please help

EDIT:

Is it because of my USB port ? I have done some research and some say it's because of the USB port 3.0 and should use 2.0....or is it because of the cable ?

My PC is an MSI with windows 10, all USB ports are 3.0.

There was a threat about USB port 3.0 with flashboot problem, and there was a answer that propose to disable XHCI in the BIOS/Advance tab so the USB port will use 2.0, i have doned that, and its not working.

Device : Razer phone 2, android 9.0, Cheryl2

PC win10 MSI
[Razer Phone 2 Guides, News, & Discussion] OsObeast:
Unable to Root

This is essentially what I get, my system recognizes my device and I recognized the shellprop slot as _a yet I have no avail. I have tried every slot on this computer (3) and multiple cables and none have worked. I hear that apparently USB 2.0 is preferred? Or does anybody know what I could do to troubleshoot? Thank you.

PS C:\Users\IU STUDENT\Documents\Fastboot\platform-tools_r29.0.4-windows\platform-tools>

PS C:\Users\IU STUDENT\Documents\Fastboot\platform-tools_r29.0.4-windows\platform-tools> .\fastboot devices

181842V01506941 fastboot

PS C:\Users\IU STUDENT\Documents\Fastboot\platform-tools_r29.0.4-windows\platform-tools> .\fastboot flash boot_a patched_boot.img

Sending 'boot_a' (20748 KB) FAILED (Write to device failed (Invalid argument))

fastboot: error: Command failed

PS C:\Users\IU STUDENT\Documents\Fastboot\platform-tools_r29.0.4-windows\platform-tools>
[Razer Phone 2 Guides, News, & Discussion] xttweaponttx:
Have you tried a different fastboot executable? Uninstall reinstall drivers? Yeah I use a standard microusb with a C adapter on the end and it works great.
[Razer Phone 2 Guides, News, & Discussion] khaled1881:
How about the new update 9 Pie MR2 :

Build number : P-MR2-SGT-RC002-RZR-190918.3666

Can somebody help me root this !!!
[Razer Phone 2 Guides, News, & Discussion] ringowu1234:
Yes, for root newbs like me who used this guide to successfully root MR1.. How do we go from here to get MR2 updates with root?
[Razer Phone 2 Guides, News, & Discussion] chpimentelpr:
I will work on a new one as soon the MR2 root process is stable, hopefully by end of this month.

CP
[Razer Phone 2 Guides, News, & Discussion] Davidistheboss21:
I'm having a small issue, my phone won't boot, it hangs at the razer powered by android, I installed RazerPhone2Rom.zip but nothing happens, any advice to get my phone working??
[Razer Phone 2 Guides, News, & Discussion] SynGreis:
whenever i try to get into download mode for fastboot it just hangs looking for devices whichit cant find.
[Razer Phone 2 Guides, News, & Discussion] hoodred:
Google Pay works on MR2 build

This is what I did

Flash Arter97 kernel version 12

Didnt convert to f2fs

Flash magisk 20.1 through TWRP

Been using it for 1 month now.
[Razer Phone 2 Guides, News, & Discussion] shango22:
Root

Questions as I'm considering root

1. Is it stable? No major bugs on latest firmware (i.e. blutooth, lte issues etc)

2. Is there a chroma varient for GSI?

3. Is there a high brightness mod?

Thanks having trouble finding the answers.
[Razer Phone 2 Guides, News, & Discussion] Gl17ch:
Does anyone have a idea if there a MR2 version yet?
[Razer Phone 2 Guides, News, & Discussion] Generic123.:
Can't you just flash the Arter97 Kernel, and then flash Magisk through the provided TWRP?

1. Stock is pretty stable; I had no issues when I used it. However, based on your 2nd question, it seems like you want to switch to a GSI. In that case, GSI's are pretty stable, with a few notable issues:

Bluetooth audio does not work unless you delete 2 apks from /vendor/overlay(BluetoothResCommon.apk and RazerAuraBluetoothRes.apk). Make sure you do this before you boot into the GSI for the first time.

The fingerprint sensor has a tendency to not work, meaning that you'll have to type in your password sometimes.

When you try to charge while the phone is off, the screen will constantly flicker blue; the only way to stop it is to turn off the phone, or just turn it on.

There will be points where you cannot receive texts; just re-insert your SIM card into your phone. You will have to do this every time you reboot the phone.

2. You could use Logo+, which is an alternative app for the Chroma app.

3. I don't think you're going to find any "mod" that can turn up the brightness of the display above it's max brightness, as that would probably destroy the screen if it existed.
[Razer Phone 2 Guides, News, & Discussion] madroxide13:
Does anyone know if we are able to use Google pay or even Netflix if our phone is rooted? Has that problem been fixed?
[Razer Phone 2 Guides, News, & Discussion] superkid333:
I am having trouble rooting Razer Phone 2. It is brand new, stock everything.

I successfully unlocked the bootloader following chpimentelpr instructions. This is confirmed when I boot into fastboot mode - it states bootloader is unlocked.

For some reason, I cannot patch Magisk boot.img using this command: fastboot flash boot_a boot.img

Here is the output of the failure (I'm rooted in terminal):

root@XXX:/home/XXX/platform-tools# fastboot flash boot_a boot.img
Sending 'boot_a' (20768 KB) FAILED (Write to device failed (No such device))
fastboot: error: Command failed

I run Linux (Ubuntu, Mint, and Debian). I downloaded the latest platform tools adb and fastboot. The file "boot.img" is in the same folder as adb and fastboot.

ADB and fastboot recognizes the device. This is confirmed by running fastboot devices. Here is the output:

root@XXX:/home/XXX/platform-tools# fastboot devices
181939V01500871	fastboot

Why can I not flash to boot_a? I tried boot_b with the same results.
[Razer Phone 2 Guides, News, & Discussion] omega552003:
Works fine for me on MR2

Reboot your computer or try a different port and/or cable. It's just a simple com issue
[Razer Phone 2 Guides, News, & Discussion] superkid333:
Hi omega

I tried all the USB ports. My next option is to buy a better cable. I'll report back.
[Razer Phone 2 Guides, News, & Discussion] aceofalltrades:
I had an issue one of the pins was actually broken on my charge port and was causing the issue. luckily phone was still under warranty and I got it replaced.
[Razer Phone 2 Guides, News, & Discussion] superkid333:
Hi team,

I got a new cable and that was the initial problem. Now I can flash via fastboot.

I flashed the boot.img from this link from Warrior1988:

https://xdaforums.com/razer-phone-2/development/root-pie-update-unlocked-devices-t3905454

I downloaded the MR1 because that was the only one available. My phone is MR2 from stock. So when I flashed Warrior's boot.img I got stuck in a boot loop with the razer animation. I believe this is because the boot image is for MR1 and all the other files on the device are related to MR2.

I'm also a little fuzzy on how to install Magisk and at what stage. Should I already have Magisk installed before I flash a boot.img? Or when?

omega, if you have it on MR2, did you actually flash/install Magisk when you were MR1 and then updated? If so, then I likely have to downgrade to MR1, flash/install, and then upgrade to MR2.

The best option would be if Warrior1988 can create an MR2 boot.img. Thanks for all the help team!
[Razer Phone 2 Guides, News, & Discussion] superkid333:
SOLVED

Update

SOLVED

I am now rooted with Magisk on MR2. The work around was to downgrade to MR1 before beginning this entire root process. Razer gives excellent instructions on how to achieve this on their site here:

https://developer.razer.com/razer-phone-dev-tools/general-instructions/

It is important to note that in order to downgrade you must

fastboot flashing unlock_critical

. You'll brick your device otherwise. After I downgraded to MR1, I was able to follow the instructions to get root with Magisk. It takes time and reading.

I hope this post helps others in a similar situation.
[Razer Phone 2 Guides, News, & Discussion] kenfly:
After rooting you can flash mr2 without loosing root? Or is there a process to make sure root isn't lost?
[Razer Phone 2 Guides, News, & Discussion] superkid333:
There is a way to attain MR2 after root, but not through flashing MR2.

Follow Magisk instructions for OTA (over the air) updates. Essentially, you have to flash MR1, install Magisk Manager, then use that to root MR1. After that, you upgrade to MR2 by OTV. Magisk provides specific instructions on how to do this without loosing root.

I have root and am on MR2. I used that method.

Find Magisk's instructions and read them thoroughly. There is a difference between Magisk Manager and Magisk. Two related but separate things.

Hope this helps!
[Razer Phone 2 Guides, News, & Discussion] kenfly:
after unlocking the bootloader on MR2 I'm trying to run the fastboo flashing unlock_critical but the terminal just says

< waiting for device >

and the phone does nothing. just sits on the bootloader screen.

EDIT fastboot devices showed nothing

downloaded the drivers and the platform tools from the razer doc and got it working. apparently my installed ones were to old.
[Razer Phone 2 Guides, News, & Discussion] ktmom:
That sounds like the USB drivers are not installed. The safest check before doing anything is "fastboot devices". That should return the connected device's serial number. If it doesn't, then Fastboot can't find the device and often that's a cable, USB port or driver problem.
[Razer Phone 2 Guides, News, & Discussion] superkid333:
There are a few options to try. First, if you haven't already, try using "sudo" or "su" in terminal because you need super user privileges. If you're using Windows, you need to run your command prompt shell with admin privileges.

Second, make sure fastboot recognizes your devices by typing "fastboot devices" (again, might need sudo). Just because adb recognizes it, does not mean fastboot will. It should, but if not there is your problem.

Third, try a new USB port or buy a new cord. I had to buy a better USB A to USB C cord before this would work. You'd be surprised how often it's a cord or communication issue between the device and PC.
[Razer Phone 2 Guides, News, & Discussion] kenfly:
now I'm bootlooping.

sucessful downgrade to MR1

installed magisk boot.img to a and b

installed manager

downloaded MR2 update

went into manager and did the inactive slot install

now bootlooping.
[Razer Phone 2 Guides, News, & Discussion] superkid333:
Sorry to hear you are bootlooping. I am not certain why but we can try to figure it out.

Are you sure when you installed Magisk manager you followed the boot image patch instructions? Additionally, after you install the OTV update of MR2 to the inactive slot, you have to reboot the phone from within Magisk Manager.
[Razer Phone 2 Guides, News, & Discussion] kenfly:
Yes, I followed the dual slot instructions. Although, there was a step that said to reinstall the original boot image (but there was no backup because I was already running the magisk boot.img.)That might've had something to do with it. There just isn't clear instructions here that I've seen to downgrade/ root and upgrade successfully retaining root step by step..

right now im on MR2 with the kernel/TWRP installed but would still like to haz root
[Razer Phone 2 Guides, News, & Discussion] superkid333:
If you already have a custom recovery TWRP, then you need to follow instructions to install Magisk via Custom Recovery, not Boot Image Patch section. That may also be why. You can install root/Magisk via TWRP. But I'm not familiar with that method entirely. Magisk has instructions as follows:

Custom Recovery

If your device has custom recovery support, the easiest way is to install it through custom recoveries, such as TWRP.

Download the Magisk installer zip
Reboot to custom recovery
Flash the zip and reboot
Check whether Magisk Manager is installed. If for some reason it isn’t installed automatically, manually install the APK

That is from this link: https://topjohnwu.github.io/Magisk/install.html

Hope that helps
[Razer Phone 2 Guides, News, & Discussion] MafiaKitten:
when i try to do the last steps (flashing the boot img) it gets stuck at waiting for any device, can someone let me know what im doing wrong?
[Razer Phone 2 Guides, News, & Discussion] liammc83:
Did you verify drivers ? In device manager ?

Try verifying device is connected ? Fastboot devices

Just some ideas
[Razer Phone 2 Guides, News, & Discussion] MafiaKitten:
yeah i found out what was wrong, finished flashing the .img files only to get a bootloop cause i flashed MR1 .img files to my phone (MR2) i need to get the .img of build P-MR2-RC001-RZR-190914.3123 but the file is 2 GB and i have a 5KB/S download speed :/ all i need is the .img from it, could you possibly provide me with it? i cant find it elsewhere
[Razer Phone 2 Guides, News, & Discussion] ktmom:
Here you go: P-MR2-RC001-RZR-190914.3123-boot.img
[Razer Phone 2 Guides, News, & Discussion] MafiaKitten:
thanks for the help, but now im stuck on the first boot screen, i may just have to suffer through the 2 GB download and just use razers steps, unless you know a fix?