yashsingh1/xdaforums huggingface dataset:
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] AlDollaz:
You should be able to update directly in the future. It was a Magisk bug that had something to do with the type of compression arter97's kernel uses. Should be good with Magisk updates from now on though. :good:
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] moshe_lm:
I am on the same problem. after installing Magisk I get soft brick, whatever rom I was used.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Walaryne:
Website Down

Arter97's site is down...

Any other way to get the kernel img aside from compiling myself?

EDIT: Didn't realize Arter was having server issues.

Thought the site might've been defunct.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] rrusek:
FYI...

https://twitter.com/arter97
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] ghost9640:
max size error

Ive unlocked bootloader now when i flash arter97 it says max size met or something of max sized and doesnt let me flash any advice??
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
If I understand correctly,

You need to resize partition under wipe sub menu of twrp.

Hope this leads you in the right direction.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] stephenobe:
Got the October update loaded. Was running into the driver issue where fastboot wasn't detecting my phone in bootloader, but luckily I forgot that the TWRP recovery was still installed and flashed it that way. I think that driver issue is a windows glitch, a lot of my devices have been acting wonky lately. Thanks for the awesome work!
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] AssyrianHero:
Can i use these instruction on mr2 ? because i'm new to Razer and everything is messed up for me switched from Oneplus 7 i was used to simple method of rooting.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
Just picked up another Razer 2 used on mr2 stock, And yes, all worked just fine...
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] AssyrianHero:
I've been seen those who say you can't do it on mr2 and you should flash mr1 and then root I don't get it ??
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] chris5s:
Root directly from MR2, no problems.

Peace
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] AssyrianHero:
My phone got bricked nothing worked, how to root any easier steps?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
Unlock boot loader.

Download kernel/twrp.img (its just one file) I always use r11

Use fastboot on a comp

Once you have twrp recovery,

Flash magisk 20.3

Personally I use gsi rooted with magisk with SMS and Bluetooth fix.

Hope above helps.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jonchance_84:
Be sure you follow the guide on unlocking bootloader or razer dev site before doing anything.

Flash base MR2

Flash arter kernel .img via fastboot

Boot to twrp

Flash magisk 20.3 or 20.1

Done
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Succous:
Worth upgrading to R12? Has the installation process changed? Currently installed R10, more than six months have passed.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
I've only ever installed r11 for twrp, then immediately using the trinity 3.1 kernel on both razers on gsi, Working great with ex kernel manager

And trinity keeps getting updated it seems weekly ;)
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Succous:
del
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] yingfengze12345:
after i flash f2fs and exfat, i can't get into system....
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] finixs:
So am I, but with TrinityKernel. You can flash official factory image to resolve this.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] yingfengze12345:
yeah，thank you. but i really want to use exfat.....
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] PinkEmbers:
System update

Been getting notifications about a system update for a couple days. I just assume that's not safe to download? I am curious why the update notifications were not disabled by default in the system, I should probably disable that. Does this mean r13 is in the works? Or by some wild chance is it safe to update?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] EMJI79:
Can you post the screenshot of the system update notification please?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] EMJI79:
Wait for others advice but I don't think it's safe to update just like that.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] chris5s:
It's not unsafe, it just won't work if you have root, a different kernel, or modified data partition in any way. Unless you can reverse any changes you made, you might just be left with flashing back to stock to take the update.

Peace.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] rogeriskira:
Hello,

I'm currently on MR3 release with stock kernel. When I try to flash your kernel through fastboot (IMG file) it bootloops my phone with no TWRP installed. (I had a backup so I was able to save myself). Is there anything you can do to fix this? Thank you so much! (Can't install via zip since I'm on stock with no TWRP)
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Ryus71:
Bootloops

looks like the new update from razer requires a new boot.img file so we qill have to wait for it to be posted on the dev portal
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
I'm about to install one of the kernels and I'll let you know if it'll boot
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
Damn i didn't read this lol

Bootloop :eek:

---------- Post added at 12:27 AM ---------- Previous post was at 12:11 AM ----------

When I flashed the Trinity kernel I was able to boot into TWRP but system would not boot. It boot looped back to TWRP
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] EliasEscolero:
Help with flash

I have the lastest update for the razer phone 2 the MR3 so I tried to flash the kernerl r12 and when I type the fastboot flash recovery twrp.img (changed the name) its just got stuck on cmd, Do the r12 is not compatible with latest update for razer phone 2?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] DeathToy:
Don't flash TWRP. The kernel comes with OP's own TWRP build for our devices.

Rename the .img to boot.img

fastboot flash boot_a boot.img

fastboot flash boot_b boot.img

Then reboot into recovery and you should be good to go.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] rogeriskira:
Not if he's on MR3. It'll bootloop.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] EliasEscolero:
So I better stay put until an possible r13?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
I'm on MR3 rooted
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] rogeriskira:
I mean me too but how'd you get the custom kernel? What steps did you take to install it?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] EliasEscolero:
May I know where did you got the boot.img to patch it with magisk and root the phone?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
[MENTION=4136389]rogeriskira[/MENTION]

Honestly I did the same thing I had done when it boot looped.

I started fresh with flash_all image. Let it update to MR3 and literally booted to bootloader and installed latest Trinity nightly and booted to TWRP.

Flashed magisk v20.3 and rebooted to system. Installed latest magisk manager and that's it.

Not sure why it worked because the first time it did boot loop :confused:

---------- Post added at 07:13 PM ---------- Previous post was at 07:09 PM ----------

Didn't use one i just flashed magisk v20.3 from stock
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] grv00711:
I'm on MR3 rooted twrp is encrypted > no security on the phone?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] grv00711:
cannot get past TWRP encryption to flash magisk?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
Are you typing a pass code or just clicking cancel when TWRP boots?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jonchance_84:
Same thing happened to me as soon as i flashed kernel. You need to wipe data.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] grv00711:
cancel

---------- Post added at 11:58 AM ---------- Previous post was at 11:52 AM ----------

started from scratch >literally 15 times >new MR3 > flash boot a & b > boot in TWRP > encrypted > bootloop on restart .. willtry for # 16 install . WTF
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
I'm currently unrooted on MR3 I'll do another run through here in a bit and see what happens when I flash
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] grv00711:
> i had it working once > tried to go back into recovery to install V4A and TRINITY kernel could not get past the encryption that time doing a fresh install now of MR3

---------- Post added at 01:01 PM ---------- Previous post was at 12:34 PM ----------

> finally got it ! new install > trinity > magisk > thank you [MENTION=2889221]JDBarlow[/MENTION] & [MENTION=1936797]jonchance_84[/MENTION]
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
Good deal!!

I tried flashing and it did boot loop back to TWRP so I formatted data and then flashed magisk again and got stuck at swirling green and white circles so reflashed stock boot image and went thru setup again. Maybe it has to be a fresh install??
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] grv00711:
same > had everything working on razer MR3 with magisk and TRINITY booted back to TWRP encrypted hit cancel went back wipe DATA in TWRP now i am back to install on MR3? _ not able to install ed exposed or other mods with twrp > i have to do a new install every time with this TWRP ..........at least it boots

---------- Post added at 01:55 PM ---------- Previous post was at 01:27 PM ----------

how can i disable encryption on MR3?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] NewRazer:
I just can't get anything to work. I have tried literally everything, and it just seems to stop after I type in the command "fastboot flash boot_a boot.img." It isn't just a problem with this, but the instant I do this for any of the images, it just stops, and nothing happens. I have all the drivers, etc. installed, and I am just genuinely confused.

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

fastboot: error: Command failed
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] NewRazer:
Ok so I got all of this fixed, but, is there any chance that this kernel causes bootloop? Because I first got the kernel installed and then got a bootloop with it by installing an incompatible version of magisk (so I assumed it wasn't the kernel), but now, I fixed the bricked device and re-installed this, and now I'm facing a bootloop again :(
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Monopod:
How did you Install the Kernel may i ask? i have had no issues on Pie MR3 nor Android 10 GSI.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] bhomie28:
I think it's a driver issue. Do u have Windows 10 and using Usb3.0 port?

As widows update the driver fastboot doesn't working any more ?

U must install the original driver and it should be work.

When u see this in ur Driver Manager u can follow this tutorial (https://plugable.com/2012/12/01/windows-8-and-intel-usb-3-0-host-controllers)

I hope u can understand my German English xD
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Usyless:
Uhh so I am new here but I was wondering if it is only possible to install TWRP on rp2 without the custom kernel? (also does the kernel actually bypass safetynet and will I be able to use google pay and banking apps? because if so then I will happily use the kernel if a new version comes out to support MR3 fully).

Another question I have is does TWRP pass safetynet as I couldn't find an answer online (I'm guessing yes but I just have to be sure)

Is there a link to just pure TWRP for this phone?

thanks in advance
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] chris5s:
You could flash this and then from TWRP you can flash the stock boot.img to get original kernel back? Before the MR3 update I was able to pass safety net, banking apps worked fine :good:

Peace
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] arter97:
r13 is now live.

This is relatively a minor update.

A major update will have to wait until official Q release.

r13

img file updated for P MR3

SELinux is now set to enforcing

Minor patch to improve responsiveness
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] FQuimson23:
Flashing the update directly causes System and External SD Card to be "missing" inside TWRP. It is also unable to boot properly and gets stuck at the boot animation.

EDIT Added logs
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Usyless:
Oh I didn't know, thanks, however isn't this kernel broken on rp2 right now. Is it possible to revert back to MR2 by flashing the stock image and then flashing this kernel? Or is there a way now to get it working on MR3.

Thanks.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] FQuimson23:
There's a way to get it working. I am running MR3 with R12 right now. While R13 is out to natively support MR3, there seems to be an issue with it currently.

Basically to get R12 to work with MR3:

1. Download both img and zip to your computer

2. Flash img via fastboot

3. Boot into twrp and transfer the zip to your phone (sd card or internal storage)

4. Flash zip within twrp

If the device still refuses to boot, you may need to flash Magisk. If safetynet is a big issue, there is a module available to get it to pass.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Usyless:
Uhh thank you for the advice but ngl I would rather not risk it and just wait for like maybe r13.1 to fix the bugs. I would really like to not have safetynet triggered as I would like to use Google pay and such.

Also I've read that with magisk it doesn't always pass safetynet? and sometimes it's finicky.

Thank you for the help tho.

I don't think it should take that long for the bug to be fixed
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Usyless:
Also, when I am going to flash this kernel eventually onto a completely wiped phone as I have to unlock my bootloader, do I just fastboot straight into partition a and b?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
[MENTION=4898097]arter97[/MENTION]

It broke mine as well. no log sorry and it wouldn't let me save a screenshot to my device...
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
This works perfect but I replaced using the latest nightly Trinity kernel and flashed magisk v20.4 right after the kernel and rebooted :good:
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Usyless:
So I have one last question in case, if I am going to install the r12 kernel onto stock MR2, do i actually need magisk? As I would prefer to run this kernel without magisk but it seems that everybody installs magisk aswell? I haven't found any information on whether I can run this without magisk.

Thank you
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
No there's no need to flash magisk unless you want root

Why don't you want to upgrade to MR3?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Usyless:
Because I've read that r13 doesn't work as verified by you and one other user, and also even though it is possible to flash r12 onto MR3 I've read that it doesn't always work and I might have to flash magisk aswell. Unless you know a way that would be great :)

also, here are the steps I am going to take to flash, please correct me if I have done anything wrong

1. downloaded fastboot and adb drivers to laptop and verified it works using fastboot devices

2. enable OEM unlocking

3. unlock bootloader and critical bootloader partitions through fastboot

4.through fastboot flash the .IMG file onto partitions a and b

5. if I'm on MR3, boot into TWRP, then flash the .zip of r12 onto my phone and it should work?

Thank you for the response as everybody seems to use magisk with this kernel
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
Yes assuming you are on MR3 you do just as you stated. I use the Trinity kernel and I did the same exact procedure and it does very well ??
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] dub414:
r13 isn't working for me either. It says no os installed, but I finally got P MR3 to boot with r13 to the system anyway. That took a while. It kept getting stuck at the loading screen until I reflashed. I am going to try r12 and see if that works. If not I will got back to MR2 and try that again. Patching r13 with magisk was easy enough though. I would also just use the stock recovery but I cannot get this phone to mount the system partition as rw so I need twrp for moving and editing system files.

---------- Post added at 05:55 AM ---------- Previous post was at 05:45 AM ----------

Update if anyone cares r12 with P MR3 got me stuck at loading screen again.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LSS4181:
Wasn't SELinux already enforcing? At least that was the case with GSIs all along (including Q).

Was it possible to set it permissive on stock before?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Usyless:
I was going to try to downgrade to MR2 to check if I can reflash an update in case something goes wrong, then out of nowhere it says I can't install MR2 on a cheryl1 and it told me to plug in a cheryl2, I tried different cables and usb ports and nothing worked :/

guess I'll just wait for now with the kernel until arter releases s fully working version for MR3 and I'll try reinstalling ADB and fastboot drivers as I can't be asked to factory reset my phone again.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] arter97:
r14 is up to fix r13's breakage.

Sorry for not testing thoroughly.

r14

Reverted SELinux back to permissive to fix recovery
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] FQuimson23:
This might be useful, just experienced a random reboot while I was loading up Pokemon Go. Can't see the log myself atm but it may be useful.

EDIT: Had to remove the log I attached because the log was a "File not found" error. Seems that last_kmsg has changed since I had a Galaxy S6, so attached should be the proper log from when the random reboot occurred.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Rox598:
Thanks Arter for the continued support :D
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
Appreciate you sir!
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] rogeriskira:
I can confirm r14 works fine on MR3 coming from stock.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] dub414:
R14 seems to be working so far. Thanks much.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jonchance_84:
Just updated to r14 from r12, kept f2fs and vold. Thanks dude.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Usyless:
Something I havent thought about is can the bootloader be relocked after flashing this kernel ? or do I leave it unlocked

also if I do have to relock it would I just do the normal procedure of going into the bootloader and fastboot all the commands through adb?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Rox598:
Hey [MENTION=4898097]arter97[/MENTION] kernel sources and images for MR3 are now available :)

https://developer.razer.com/razer-p...88.2008528676.1588263099-538158406.1588263099
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
I suggest to never relock it unless you're getting rid of the device

And then if you did it would need the stock boot image I would think :confused:
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Usyless:
Thank you for the response, by now I have flashed the kernel with no issues and even edited build.prop with no issues and everything works fine and safety net is passed. also battery life seems to be improved a bit as I used to lose 20% per hour SOT and now I've pay 10% in just over an hour

I've even installed custom emojis
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] grv00711:
did you flash r14 over the r13 setup >i have it working on r 13 <but not wanting to do a fresh install after twrp asks for encryption password ?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
Yes sir actually came from the Trinity kernel and all I did was boot to TWRP and flash the r14 and then flashed magisk :good:
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] grv00711:
nice >thank you <!
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] AllGamer:
never mind...

found the issue :p
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] AlDollaz:
Flashing r14 over r12 still causes the phone to freeze at the boot logo. r12 working fine though (MR2).
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Rankourai:
I tried the same thing today. I had r12 installed from when I got the phone in January with MR2. Today I downloaded r14 and the patched boot.img for MR3 and tried flashing them but now i'm stuck on the razer boot logo. Going to try restoring my backup from earlier. Anyone know what I did wrong?

1. Ran flash_all.bat from the MR3 update while keeping user data

2. Flashed patched MR3 boot.img in fastboot to boot_a/boot_b

3. Flashed arter97 r14 in fastboot for recovery

Edit: now after restoring backup from before flashing it's stuck on the green loading screen.

Edit 2: for some reason my backup from earlier today only backed up the system partition even though I selected boot and data. Restoring the boot/system from my first backup in January got me booting again.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] bhomie28:
Do u forgot after flashing the mr3 & keeping userdata to flash the f2fs file in twrp (Magisk?) ?

When twrp works try installing the zip file. Personally I use the tritinty R1 Kernel. I don't know why but R2,R3 & R4 Kernel freezes the half of my Display sometimes.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] DeathToy:
What app would y'all recommend for messing with kernel settings? I love FK but a lot of options don't stick and get overridden. Core control resets to all 8 online and min/max cpu frequencies keep resetting to default. Any help would be much appreciated!
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Pyr0ball:
Hey guys,

I dun goofed when trying to do a routine backup.

Rebooted into TWRP, which surprises me with a password prompt (instead of pattern unlock)

Reboot to system to remove encryption and then fix stuff, greeted by "Enter password to start android" prompt

Tried the numbers-to-pattern trick, no luck. Basically locked out of the phone now

Booted back into TWRP, while looking around for other options, accidentally chose "Slot A" which has gotten me stuck back on the old recovery

fastboot commands no longer work

D:\adb>fastboot.exe boot twrp-3.2.1-0-cheryl.img
Sending 'boot.img' (23120 KB) FAILED (Write to device failed (Too many links))
fastboot: error: Command failed

Trying to re-flash the kernel just hangs:

D:\adb>fastboot.exe flash boot arter97-kernel-r14-20200428.img

I've got some data I'm not 100% sure is backed up like my 2FA applications so I'd like to try and get this fixed without re-flashing the entire firmware. Not sure if that's possible but I'm open to suggestions

Edit:

Tried switching to Windows Terminal/Powershell and got slightly different error:

PS D:\adb> .\fastboot.exe boot .\twrp-3.2.1-0-cheryl.img
Sending 'boot.img' (23120 KB) FAILED (Write to device failed (Unknown error))
fastboot: error: Command failed
PS D:\adb> .\fastboot.exe flash boot .\arter97-kernel-r14-20200428.img
Sending 'boot' (30176 KB) FAILED (Write to device failed (Unknown error))
fastboot: error: Command failed
PS D:\adb> .\fastboot.exe getvar all
getvar:all FAILED (Write to device failed (Unknown error))
Finished. Total time: 5.004s

I'm sure the TWRP image is still there, but I can't get it back up.