yashsingh1/xdaforums huggingface dataset:
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] arter97:
Ugh, I'm sorry.

r4 can cause random reboots.

Please upgrade to r5.

r5

Reverted a minor Wi-Fi drivers improvement causing kernel panics
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] mrgrim800:
Is anyone else getting jittering if they try to slowly scroll through UI?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jal3223:
Has anyone been able to get exfat working on the latest update? Any time I flash the zip I get thrown into a bootloop.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] blackknightavalon:
Have you tried simply flashing the image through bootloader? That's the method I use and I just need to boot into recovery twice to get rid of the encryption error
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jal3223:
I flashed the kernel/twrp successfully. Everything works fine until I try to flash the exfat zip or the f2fs zip. Then I am not able to get back into the OS. I'm just wondering if anyone has gotten exfat working at all?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] blackknightavalon:
Honestly, Magisk, this kernel (and TWRP), and the beta Xposed/Gravitybox are the only real system modifications I've made to my device. The storage on it is pure stock and I don't even have my SD card formatted as internal
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jal3223:
Bump - had anyone gotten Exfat working yet?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] godsfilth:
i had exfat installed from when i installed the V1 kernal and everything is fine, maybe install an older kernal install the patch and then upgrade?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jal3223:
Thank you for the reply. What steps did you take to install exfat when installing V1, if you don't mind sharing? Then, did you only flash the updated kernels without losing it?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] godsfilth:
i installed the first kernel using fastboot, flashed the F2FS file, rebooted recovery wiped data, then rebooted back into recovery again and flashed the vold file that was in the first post. i had set up the sd card as exfat on windows.

no problems upgrading the kernel, just flashed the zip's through recovery
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jal3223:
Awesome! Thank you. I'll give it a try.

Have you noticed any improvements or problems by using F2FS by the way? I read that issues could possibly arise after longer use.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] godsfilth:
didnt have the phone long enough before going F2FS to know for sure, but i noticed performance increases on my nexus devices back in the day. As for issues later on no idea but i didnt see anything on any of my nexus devices i used it on, and the pixel 3 uses F2FS by default so i can't imagine there's too many issues that could arise.

arter has a link in one of the first posts about F2FS and helped with some info that was in an article on anandtech talking about F2FS so he might be better to ask.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] arter97:
That's not a thing on my kernels.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jal3223:
Awesome. I'll give it a try as well then. Thank you!

---------- Post added at 10:11 PM ---------- Previous post was at 09:26 PM ----------

Alright, I tried again with the first kernel released and it still just sits at the bootup animation then eventually reboots back to recovery after a bit.

Here are the steps I am doing. I flash the kernel via fastboot on both a and b partitions, flash the F2FS file, reboot recovery, format data by typing "yes" in the wipe settings, reboot recovery, flash the vold file, then reboot to system.

After it just hung there, I tried to go back into recovery and flashed the kernel again but it still just hangs at the boot animation.

Am I doing this wrong? [MENTION=4898097]arter97[/MENTION]

---------- Post added at 10:11 PM ---------- Previous post was at 10:11 PM ----------

Alright, I tried again with the first kernel released and it still just sits at the bootup animation then eventually reboots back to recovery after a bit.

Here are the steps I am doing. I flash the kernel via fastboot on both a and b partitions, flash the F2FS file, reboot recovery, format data by typing "yes" in the wipe settings, reboot recovery, flash the vold file, then reboot to system.

After it just hung there, I tried to go back into recovery and flashed the kernel again but it still just hangs at the boot animation.

Am I doing this wrong? [MENTION=4898097]arter97[/MENTION]
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] arter97:
r6 is up for fixing Wi-Fi issue.

r6

Reverted a problematic Wi-Fi drivers optimization causing Wi-Fi to not turn on after some period of time
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] arter97:
That seems about right. If you converted /cache as well, don't. It'll prevent boot.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jal3223:
I'm not sure then. How do you prevent converting cache?

Also, should I let the kernel boot first before flashing the f2fs zip and formatting? Should I re-flash the kernel again after the wipe?

I'm excited to try this out, so I have tried multiple different methods. It just always boot-loops on the latest PIE build. Any advice would be appreciated. Thank you.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] arter97:
r2 is up.

r2

Wi-Fi drivers updated to 5.1.1.71C

Disabled some debugging options to improve performance

Updated f2fs-tools is now included from TWRP
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jal3223:
What does the updated f2fs-tools change regarding the installation process? Is it still done the same way?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] popeye2468:
Hi guys i flashed this but now when i boot into recovery i get asked for a decrypt password?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] wschamps42:
So I've unlocked the bootloader via the unlock_critical route as per the Razer developer site, I've downloaded the kernel file, and when I try to do fastboot flash boot_a arter97.img (I renamed the file to make it shorter), it just hangs. Nothing happens. running fastboot devices does show my phone...so idk what's going on.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] arter97:
If you're using a Ryzen compuer, try again with Intel's.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] wschamps42:
I'm using an intel PC. i7-9700K
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] capxcom:
try with different usb port

---------- Post added at 09:19 AM ---------- Previous post was at 09:18 AM ----------

I had the same problem,solved by a different usb port.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] mariusra102:
If you have a pin or password set in the rom you need to enter it
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] mattwheat:
So this I all you have to do to flash the kernel and to have twrp installed for good unless you flash the stock .img correct?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] xttweaponttx:
I know this may be a newbie auestion, but better safe than sorry. Can I run this kernel with a stock rom running magisk?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] the_brad:
Yes, stock works, magisk too.

Gesendet von meinem Phone 2 mit Tapatalk
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] RKBD:
of course you can run this kernel with stock rom. you only need to reinstall magisk
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Castanoff:
I cannot get the exfat to work. Every time I flash the vold zip in twrp I get a bootloop.

I have done multiple tests on MR0 and MR1 and both times the bootloop happens after flashing the vold.

I have tried r1 then flashed r7 then flashed vold and still boot loops.

My last big test was flashing mr0 then doing the OTA to mr1 flashed the r7 kernal and made sure that booted. Flashed Magisk and that booted fine also. Flashed vold then get a bootloop.

I'll backup phone and redo a test and try and get some logs.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] arter97:
Some log will help.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jal3223:
Try formating by typing yes while it is bootlooping. It somehow stuck for me and now I have f2fs and exfat working perfectly. I think that extra format by typing yes is needed after the bootloop for some reason.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Castanoff:
I have got it working. Ill put down the exact steps I took and hope it helps someone that was having issues.

I THINK the issue was that when you reboot from TWRP it sometimes asks you to install the TWRP app so you slide to accept or press the DO NOT INSTALL button, I was swiping "DONT DO THAT" clicking on the button. so it does not try and install TWRP app \ as a system app

Install factory mr1 image.

boot phone until you get to the setup.

Reboot into bootloader.

flashed arte97 Kernal r7 on both A and B

boot phone to setup "Dont think i needed to do this but wanted to know if it boots correctly with the kernel"

reboot to TWRP and flash the f2fs_fstab.zip

reboot back to recovery and wiped data

I then booted up phone to the setup again

reboot into recovery and installed vold_mod_arter97.zip

rebooted phone to setup to make sure that it worked.

rebooted to recovery and then installed Magisk 19.1

rebooted back to phone setup and all is working fine
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] 666teen:
Hello arter97, I can not to change SELinuxMode to Permissive.Maybe you help me? Or you can build kernel with SELinux permissive?

THANK. I want use viperandroid for sound but can not, need permissive

I try swich SELinux use program SELinuxModeChanger,and others but have problem...

Sorry for bad english.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Trippyy Doee:
The kernel IS built with permissive but Viper requires it to be enforced so when you flashed Viper it made it enforced
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] 666teen:
OK,the kernel is built with permissive,but why others program (sdmaid, Jasi Patcher) show me SELinux Enforcing?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] arter97:
A yuge beta kernel is up.

It should be a daily driver material, I'm marking it as a beta just in case a major issue slipped that I didn't notice.

As always, make a back-up!

Encryption now works with f2fs, albeit with a huge caveat: TWRP may not be able to read /data.

More info: http://arter97.com/browse/f2fs/encrypted

The procedures for using FBE with f2fs: flash the 2 zip files linked above under TWRP and format.

You must re-format if you want to use encryption.

My Razer Phone 2's TWRP currently does not work with FBE + f2fs.

This kernel is now VLA-free too. VLA(Variable-Length Array) causes performance regression and may expose potential security holes under the Linux kernel. I've managed to get rid of VLA by porting mainline commits and patching some Qualcomm code myself.

afaik, I'm the first one to do this on XDA. Spread the word and encourage other developers to get rid of VLAs as well :)

More info regarding VLA: https://www.phoronix.com/scan.php?page=news_item&px=Linux-Kills-The-VLA

r8b1

Linux v4.9.175 merged

Wi-Fi drivers updated to 5.1.1.71H

Latest f2fs-stable merged

LA.UM.7.3.r1-07400-sdm845.0 merged

LA.UM.7.8.r3-01400-SDM710.0 merged

Fixed a Qualcomm issue that prevented audio-app stune creation

Merged various patches from Proton kernel by kdrag0n to lower overheads and improve responsiveness (thanks to kdrag0n, sultanxda and ab123321)

Now VLA-free

RCU boost enabled for better responsiveness

New patches made to f2fs for more efficient GC and trim

FBE(File Based Encryption) now works with f2fs
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jal3223:
[MENTION=4898097]arter97[/MENTION] Awesome man, thank you!

If we already have f2fs running, can we just dirty flash this kernel over the last build? I don’t really care to encrypt at this point.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] arter97:
Yup
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] arter97:
After testing several builds with [MENTION=7293167]thegreatn_[/MENTION] , I managed to narrow down problematic culprit for Wi-Fi signal strength issue.

Will be fixed with the next build :)
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] MystikMan97130:
Good news, thanks for ExFat support with your kernel
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] tard24:
Just a quick question. I have a pattern screen lock for my phone and it used to require it while loading after a restart, but I think after installing r7 (not 100% sure on this) it doesn't require that anymore. It also required it in TWRP and doesn't require it there anymore either. Not sure if this was a security problem or not with the kernel or something random with my headset.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] CalebQ42:
Sounds like your phone is no longer encrypted. If you wiped your phone after flashing the kernel then you probably didn't re-encrypt this time around. If your using f2fs for data then I believe it can't be encrypted.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] tard24:
I simple flashed the kernel update with the zip file in TWRP and the only time it was wiped was when I originally unlocked the bootloader to root it. I also never switched it to f2fs, so I don't think I'm using that file system.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] CalebQ42:
Check to see if your phone is encrypted by going to Security & Location > Encryption & Credentials. You can also encrypt your phone from there if it isn't.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] tard24:
Yeah, it says it's encrypted.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] the_brad:
Go to settings, security, display lock, choose your pattern, as if it was new, answer the question for early pattern unlock with yes.

I roughly translated those points from German, so good luck [emoji1696]

Gesendet von meinem Phone 2 mit Tapatalk
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] tard24:
Yup, this worked. Thanks man.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] 666teen:
Please help.

https://xdaforums.com/showpost.php?p=79512966&postcount=95
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] FellpeSoares:
i can remove yellow alert with this kernel?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] RKBD:
no
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] S1thh@ck3r:
do someone have a stock boot.img with same twrp included like in kernel? cause i cant format sd cards with this. i get error. i need root for some apps. and i patched boot with magisk but magisk says not installed.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] RKBD:
just download kernel and patch it in app then flash it in fastboot if you have problems ( I don't have them on r7 + stock)
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] RKBD:
Can you please add/fix aroma installer in twrp and this patch https://github.com/derflacco/drg_stable/commit/632ce336624de8b2db764b8d42dbe97f2ea32e0b ?

btw i love this kernel! using since cm13 on op3

EDIT: im not sure if its already installed but i have some problems with installing any erfan gsi
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] arter97:
New update is up!

OnePlus 6/6T users got a completely new base for the Wi-Fi drivers(check here), which I left out for the Razer Phone 2 due to relatively small number of users hence lesser chance of getting bug-reports. I'll be keeping the stable 5.1.1 driver branch for the Razer Phone 2.

Sidenote for those using f2fs:

I've got a report that my f2fs conversion tools weren't applying appropriate optimizations.

If you're using f2fs, just flash this zip from the recovery just to make sure you have up-to-date extensions list for f2fs.

http://arter97.com/browse/f2fs/optimize

r9

Linux v4.9.180 merged

Wi-Fi drivers updated to 5.1.1.72J

Fixed several memory management issues from previous releases

- This fixes multiple issues including performance regressions(wake-up delays, etc) and radio malfunctions

- Thanks to [MENTION=3262915]habylab[/MENTION] for testing multiple builds prior to release)

Latest f2fs-stable merged

LA.UM.7.8.c3-06800-QCS605.0 merged

LE.UM.3.2.1-18400-SDX24 merged

Removed f2fs debug tracing codes added by Qualcomm

qseecom performance improved

Re-enabled kernel tracers for avoiding janks

32-bit vDSO added for improving performance on arm32 programs

Audio kernel updated LA.UM.7.3.r1-07800-sdm845.0
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] dmw_4814:
So, my SanDisk microSDXC took a dump today, and now all my music; photos, and a bunch of my apps (because they were installed on my external SD) are gone/inaccessible (my music & most of my photos are backed up on my PC).

I'm not sure if the card is bad or not - I was getting messages my card was missing, after I rebooted earlier today, and then that it was corrupted - and after I formatted it (set it up, as Google put it), now I'm getting a message that the card is unsupported. I'm assuming that's because Android formatted it in exFAT, and the phone doesn't support that.

Anyway, I've got a PNY 512GB card at home that I bought about a month ago, so I'm going to use that. I figure this is a good time to flash this kernel, and the zip to get exFAT support.

I've got two questions:

1. This kernel installs TWRP - is that on the phone (as opposed to just using it in fastboot)? In other words, does it replace the stock recovery on the phone, so if I reboot the phone into recovery, I'll have TWRP?

2. I've already got Android 9 MR1 on my phone - do I still have to re-flash it from Razer's website before I flash the kennel, or can I just factory reset and follow the instructions in the first post (including wiping data, etc)?

Thanks!
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] tard24:
As far as question 1. Yes, TWRP is built in and replaces the phone's recovery.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] hendibudi:
When I power off button during charging, screen become blinking and no battery charging indicator on screen, kindly fix this for us [MENTION=4898097]arter97[/MENTION] thanks
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jal3223:
[MENTION=4898097]arter97[/MENTION] Thank you for the work you do man. These releases are much appreciated.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] MystikMan97130:
Hello someone can tell me how to have ExtFAT step by step? i always have boot loop now :(
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] th3cavalry:
So with r9, I'm unable to use ADB. In bootloader I get no devices and in the OS I get a key error and never get a request for debugging. Can I flash an older version of the kernel in TWRP since I can't ADB push it?

Update: I flashed the deoxed mr1 ROM in TWRP and I have ADB in the OS again but not in bootloader still.

Edit again: Ignore me.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] mattwheat:
I flash this kernel / boot. Img. Everything went smooth. Twrp is working. But one question why when I boot to TWRP do I get a screen asking for my password? I don't have a password set up on my device. I've tried 2 or 3 password I have linked to Google accounts thinking that was what it was asking for but nope it wasn't. So how do fix this so that I can utilize TWRP for all its Glory?

Thanks in advance

---------- Post added at 10:02 PM ---------- Previous post was at 09:58 PM ----------

Try using these commands

fastboot -i 0x1534 devices

fastboot -i 0x1534 flash boot_a boot.img

fastboot -i 0x1534 flash boot_b boot.img

fastboot -i 0x1534 reboot

See the pattern. I had to add in the "-i 0x1534" to get any of my fastboot commands to work.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Spunkybob:
Hi,

Can I relock the bootloader after installing this so I don't get the warning on boot?

The install worked perfectly.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] brezzz:
does this work for oreo or just pie?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] RKBD:
pie only
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] th3cavalry:
Anytime I try to do anything with the SD card I get this error and then anytime I go I to storage settings it will crash until I reboot. It's just a 64GB card.

Works fine on stock kernel. I just have f2fs. I'm not using Samsung vold drivers.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] RKBD:
i have weird issue on r9

my screen is flickering sometimes really rarely and i have no idea what is causing that
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] lacrossev:
Occasional slow screen-on response from sleep

Thanks arter for this kernel. I've held off on rooting my RP2 for awhile since I was pretty happy with the stock performance, but the fact that exFAT wasn't supported was a huge bummer for me as I like to use my phone to review footage in the field from my action cam. Having that option back has been great.

I'm experiencing an issue with screen on response time from sleep. Occasionally the phone will refuse to respond to power button or double taps, or maybe its a delayed response. Eventually when it does wake the phone operates at it's normal responsiveness.

It has been awhile since I've looked at frequency settings, but does your kernel have a lower than stock clock speed while the screen is off by chance?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] arter97:
Yeah, extremely rarely due to some iommu changes.

I think it's fixed now internally.

Yes, I'm currently investigating this issue as I've managed to reliably reproduce this issue.

Nope.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] klassen00:
Can I use your kernel for the razer phone cheryl ?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] js 996:
booting to the integrated TWRP

Hi,

Sorry, I'm wondering how I can complete the full process in my Razer Phone 2.

Isn't required a .img to flash the kernel?

Sorry I'm not a developer, but my phone is branded and I really like to flask the stock firmware.

Thank you in advance,

Jeremy.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] RKBD:
1. you don't need to quote whole post omg

2. yes .img is required to flash via fastboot

3. here you can download stock firmwarehttps://developer.razer.com/razer-phone-dev-tools/factory-images/
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] DeathToy:
Does this not work with the deodexed/zipaligned ROM posted on here? I've gone through the flashing process, even returning to stock and starting over, many times and always end up with an endless boot screen after flashing the vold mod.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] RKBD:
vold=bootloop

yes this is working with deodexed rom
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] DeathToy:
So there isn't a way to get exfat working with the deodexed/zipaligned ROM?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] js 996:
Sorry but I didn't understood very well.

The image file of the stock ROM you've posted isn't a .img file, it's a folder.

Plus after unlocking the boot loader how should I proceed?

Do I have to install the kernel first? If yes, how I'm supposed to do that.

I'm sorry but I'm very ignorant in this kind of stuff, but I really hate branded phones.