yashsingh1/xdaforums huggingface dataset:
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
It is up and running, I just checked the link.

Perhaps your router, ISP maybe blocking it, bad cell reception ?

Suggestions: Try again, try another browser, Or use a VPN.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] kountry83:
Can't set selinux to permissive, always enforcing. I thought this kernel is already permissive?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Dominor:
Well, I've just flashed the r11 version and had the same issue. The phone boots fully but consistently freezes and goes into an endless bootloop up until pin insertion. However, if before flashing r11, wifi is disabled then r11 kernel boots correctly. The moment I renable wifi, the bootloop restarts. Until the issue is diagnosed and fixed, I'll revert to using r10.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
I copied all needed files from an old laptop to sd card.

Put SD card in phone with sim.

I unlocked bootloader.

I fast booted r11 using PC, Done with PC.

Booted to twrp.

Did a full backup to external SD card.

Flashed havoc 2.9 system.

Resized system partition.

Formated dated partition.

Reboot twrp.

Flashed pico gapps.

Flashed magisk 19.4

Phone is running as a champ, No bloat, WiFi, Bluetooth, SD card reading fine formatted as fat32, Constant LTE+. Not a bug found so far.. ~13 SOT, I suspect more once all settles for a few days.

Google camera port working flawless.

Logo+ working as well, So the back logo light functions with more options.

Thank you so much for the kernel/twrp. Makes this the best 300$ unlocked phone currently available imo.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Reznor7:
Might I ask where you got Havoc for the Razer 2? And does VoLTE function properly for you?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
64 bit ab gsi

Havoc-OS-v2.9-20190910-phhgsi_arm64_ab-Official.img
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] tard24:
I'm assuming Havoc is Pie and so we're using the 9.0 GApps?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Fookwah:
Just a question as this is my daily driver.

Can I:

Unlock Bootlaoder.

Rename Arter's Kernel to boot.img and replace the one in stock MR1.

Replace modem with AT&Ts in their stock image. (Or is this even necessary?)

Use the flashall.bat.

Profit? I can always resort to stock, just wanted input as I am one of those peeps with no internet and have to prep hardcore with starbucks wifi for this stuff.

Also, this kernel bootloops if you try to install it right out of the AT&T box B/C its running Oreo by default. Heads up to us AT&T suckers out there.

Thanks to everyone involved!
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] tard24:
Went through all of this and got everything installed and it's everything seems to be working fine, except I can only get 3G and not 4G/LTE, I attempted to switch the APN to nxtgenphone as well, but still only getting 3G connection.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] tard24:
N/m, I was able to get it to work. For anyone wondering, I went to the Phone Information settings after entering in*#*#4636#*#* in Phone Dialer and switched it to LTE and then toggled airplane mode.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
Yuppers

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

Sorry, I forgot that step, as I normally do it, like muscle memory ;)

Glad you got it working, Havoc 2.9 is Much better than stock and now have all the latest security patches.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] ronald11:
how to fix the device is corrupt. ?

need help to return back to stock. i getting an error when I try to flash with the stock flash_bat.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
At what step is it "corrupt"?

What did you try to flash?

Usually just format data partition, fixes most installs.

Use twrp and restore the backup of all stock partitions to return to stock if you want mr1 and older security patches installed.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] phoenixwillrise99:
Magdisk 19+ seems to break everything with this kernel, running on the stock ROM. TWRP can open but when it does all my system files are missing. I just reflashed the stock boot image to fix but I am wondering if there is a workaround or fix coming for this issue?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
Mount > system ?

I know it's simple but did you try to unmount, then remount the system partition ?

19.3-19.4 both work flawless for me.

Edit:

Now updated to 19.5 still perfect.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] phoenixwillrise99:
No, I did not I just followed the install instructions in the opening thread. First tried to flash the ISO with command prompt on computer via fast boot, then tried to flash the zip file with FK kernel manager in system. Both froze my phone on boot up. I do not have twrp installed, was only using the modded twrp that is embedded in the arter kernel itself. Both install methods worked fine with magdisk 18 but no dice with 19. Also to note that I am using the ODEX verison of the stock ROM.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
ISO ?

Just extract the zip, take the recovery image/kernel flash with fastboot.

Everything else can be done through twrp, you can choose the prerooted mr1 ROM listed, or use just about any phh gsi image.

I've tried many bit settled on havoc 2.9 from the 14th as everything works and latest security updates.. Too many bugs still on a10, I'll patiently wait.

If not just start from scratch using razors instructions. Then flash kernel/twrp from fastboot.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Fookwah:
Hey buddy,

you know anything about getting this to booting multiple roms on this phone?

I'm currently rooted on stock global MR1 but thought about trying havoc.

Thanks to anyone that replies!
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
Havoc works flawless with this kernel.

Few posts back, I have a quick write up.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] the_brad:
I'm using this kernel and switched to havoc some weeks ago. Everything works fine so far, except for Bluetooth and voLTE and voWifi. Do these work for you?

I tried with and without the ims.apk from said thread and the enable_volte.zip from havoc. For Bluetooth I deleted the two overlays in vendor-partition but I can't switch Bluetooth on.

Gesendet von meinem Phone 2 mit Tapatalk
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
Both work for me. Bluetooth worked by default.

For LTE , I had to *#*#4636#*#* and turn on LTE.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] the_brad:
LTE works flawlessly, voice over LTE seems broken for me as well as voice over wifi. I think, these two are somehow connected to each other.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] iGomX:
Is it possible to use f2fs on SD card too?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
Well my provider doesn't support either,

But using the same ROM on a z2 force, and on tmobile which the WiFi calling is working, But I honesty have no idea about volte, it shows its provisioned, But I never notice and icon change. It does stay on LTE+ during a call ..
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] iGomX:
I can't format SD CARD as internal storage after flashed kernel and f2fs_fstap.zip

[IMG="error"]https://abload.de/img/user_scoped_temp_datgqjof.jpeg[/IMG]
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Gummirobot:
Try formatting it to exFAT on your computer, others have had this issue.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LSS4181:
I think he's referring to using the SD card as internal (adoptable) storage, not exFAT. Not sure if f2fs is supported on SD card as internal storage. I never tried the adoptable storage feature (and currently I don't really have a need to do so at the moment), so I don't know much about its details.

On the other hand... not sure how to deal with new stock firmware updates after going to a GSI (such as the Pie MR2 that came out just recently in some places), as I only started using this phone and it's the first time I try a Treble-capable AB device. Do I just need to flash vendor.img from now on (either via fastboot or via TWRP)?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Reznor7:
Bluetooth is broken for me too with Havoc and this kernel. It seems to pair, but never successfully connects.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
Which havoc ? I'm still running the 14th of sept version, But my Bluetooth connects to my watch.

I previous went from stock, r11 version of this kernel> immediately to rooted mr1 listed in the forums, right after booting and checking everything > then havoc gsi for the 10th, all worked great, then 12th, had issues making calls, now 14th all is working here.

I did not flash any f2fs or sound mods. My external SD is fat32.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Reznor7:
I started with a freshly flashed MR1, and then installed the new kernel. I then installed the GSI and rooted with Magisk. I've tried connecting to my car and home stereo. It pairs but fails to connect to where I can send audio. Just sits there "connecting."
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] tard24:
Yeah mine does the same thing for audio Bluetooth connections. Works fine with my Fitbit though. So weird.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
Same here when I connect to car audio mine connects and I can make phone calls hands free BUT it will not play Bluetooth audio :confused: so I continue to float between stock ATT and stock Global...
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
I'll have to try in a friends vehicle. I have an android head deck, So I never tried to use my phone in the car..
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LSS4181:
I'm currently using this kernel and Havoc OS 2.9 GSI, but it appears SELinux is set to enforcing and cannot be turned to permissive. I'm not sure what might have caused it...
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
Out of curiosity, what is it you want to permit that you can not ?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LSS4181:
The kernel should be permissive according to OP, but it's actually Enforcing when I checked in the system.

I tried setting SELinux to permissive via SmartPack Kernel Manager, but after setting it went back to Enforcing again.

Setting it using "setenforce 0" doesn't work, either. "getenforce" still gives me Enforcing.

Not sure which caused the issue, maybe the issue is GSI-related, but in overall, Havoc OS worked out-of-box (most features just work, or could be made working with some tweaks).

I need to set this to permissive in the future, as some keymapping tools such as Tincore requires SELinux to be permissive otherwise it won't be able to pick up my bluetooth gamepad.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] kountry83:
[MENTION=4542513]LSS4181[/MENTION]

I've tried this too with GSI and stock modded rom with this kernel. Even though the kernel says it can be set to permissive I've tried so many ways to get it to set even with a init script I made and still enforces.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] cory733:
What exactly is happening?

I'm getting random reboots and trying to figure out what is causing it.

edit: just enabled wifi and it force rebooted. Tried again and couldn't duplicate the problem.

earlier when I pulled into my driveway it rebooted also (probably connecting to wifi).

Two other crashes though at random times with wifi connected already

On R11

edit: left wifi off all night, everything worked fine. Turned on wifi this morning and restarted itself right away.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] tard24:
I haven't had any issues since flashing r11.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] herb9876:
Any way to change SElinux to permissive? I've exhausted all my normal options. Thanks
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LSS4181:
By the way, while I'm running this kernel with Havoc OS 2.9 GSI, I noticed that sometimes in games, usually happening with background music (sound effects are usually better), that the audio sounded like it was cut off at some frequency ranges.

Haven't tested the USB-C to 3.5'' dongle to see if the problem's also there, and I can't test Bluetooth either, as media audio currently doesn't work on the GSI (the phone seems to time out when negotiating media audio codec and other parameters, while phone calls work fine).

I'm not sure which place is the right one to ask about this as I'm not sure what might the cuplrit: the phone hardware itself, the speaker, the drivers, or the GSI... although it's very likely has something to do with the hardware as back then I experienced similar issues when devices get hot for too long (which eventually leads to the phone being unable to produce any sound), and might be able to recover after cooling the device down.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
[MENTION=4898097]arter97[/MENTION] can you help us root the July and September updates please sir it would be much appreciated :good:
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] kountry83:
[MENTION=2889221]JDBarlow[/MENTION]

So magisk is not working for you on September patch? I can't install it because mine has a prototype bootloader.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
No sir doesn't work :(

I'm not familiar enough to mod the boot IMG. Would love to be able to learn how to cook up an AOSP rom for this device just to keep up with the security updates...
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LSS4181:
Does the MR2 OTA update stuffs in vendor partition? If so, had anyone extracted its contents so one can compare what's changed between the two versions?

GSI may not be a panacea as a lot of patches are needed (which can break over time causing regressions). Also, the following restrictions apply:

- If you flash from fastboot, addon.d scripts won't work, since TWRP is not being used (not sure how image flashing works on TWRP at present).

- Since GSI leaves almost no free space in the image in order to accommodate system partitions of any size, you'll need to resize the partition from TWRP prior to flashing anything extra (such as GAPPS and other mods).

Given the situation, to cook our own ROMs we'll need to extract stuffs from vendor partition (as well as some other proprietary stuffs that might reside in system partition) to make our device trees, and build both system and vendor images in the final product. This was the case for Google Pixel C custom Pie ROMs, which builds/installs its own vendor image instead of using stock-provided ones.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
Just spit balling and idea,

Have you tried magisk 19.5 ? I've had great success when other versions have failed.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
I have not. When I get a chance I'll try just that thanks!
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
Yes that fixed it ?? thanks for the idea!
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
Not a problem, glad we got you sorted out.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Gummirobot:
I keep getting Invalid zip format & checksum error messages in TWRP trying to flash (install) Havoc 2.9 gsi ab Sept 10th, or 14 or even the Razer aura pie mr1 build. I am using the unlocked version of rp2, with arter97;mr0 pie

How are you extracting the file and getting it to zip format? I am downloading it on my phone and moving it to SD, then tried extracting them with WinRAR and Zdev then compressing to zip. When I try to move files to SD on my computer my phone no longer recognizes them even if I haven't reformatted (using as external storage formatted by razer phone.) Really annoying if someone has a solution to that I think the whole SD thing is my issue.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] the_brad:
That's no zip-file. You need to extract the xz-file on your computer, copy the resulting img-file to your phone. When in TWRP, you choose "flash image" at the bottom of install menu. Then choose "system".
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Gummirobot:
Hey thanks for your info- I'm drawing a blank as to what you meant by dated partition? I'm having some trouble getting gapps to stick.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] tard24:
You have to resize the system partition for the gapps to work. Dated is supposed to be data.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] cory733:
Went to r10. Wifi / rebooting issue hasn't happened at all since.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] dnicoll:
Just wanted to say thanks for the kernel. Wanted to ask if there was any plan to add color control in a future update? Would like to be able to remove the slight off white look.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] stephenobe:
First ROM

Just recently rooted mine with this ROM. Thanks for the awesome work and guide. I'll be sticking to this one for any future builds. I am curious, since security updates are pretty much dead to Razer at this point, is there any thing we can do with root to stay more secure?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Pantherinae:
Just as you say this we get an update.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] stephenobe:
Wow, go figure....I literally checked today before I went through and loaded the ROM......so if I am correct, wouldn't I need to flash back to stock before updating?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Pantherinae:
For now yup, I just have magisk with stock rom and didn't let me update
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] stephenobe:
Yeah I sent mine back. Might wait to flash back to arter's ROM to see if it'll need tweaks at all. I just went around in circles trying to go to stock ROM because I can't read instructions. Ha!
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] link68759:
I installed Arter on slot A, but I left the stock bootimg on slot B.

Today I rebooted into B, successfully applied OTA update with no complications. A/B are both overwritten by OTA in the process. Very simple.

I tried flashing Arter R11 to slot A again. TWRP starts and complains that I need a password to mount the filesystem? I ignore this and boot into android. Boot is stuck on loading animation forever. So, no big deal. I switch back to slot B, reboot. Now android is asking for a password on boot! Is the filesystem just corrupted now, or is there a default password I should know about?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
Try to Format data ?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] link68759:
Is there nothing less catastrophic to try first? Ideally I would like to not lose everything.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
Seems data is encrypted.

Unless I'm misunderstanding.

For now you could always try flashing the kernel/twrp to a/b

Followed by flashing whatever android your currently running on a/b, and I'd use the latest magisk v20 zip it flash auto to the correct boot.

But I always keep a full backup on SD card, PC. Same with a titanium backup, good ideas for the future..To do one monthly, it's a pita, but in rare situations as these, it'll save ya a headache.

Hopefully all works out for you.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] link68759:
Thanks. Yeah I had backups, going to the internal storage. I was not aware that it was even a possibility that Android would just throw away the device encryption keys (outside of a factory reset, which is the only time this should ever have happened). Never liked android much, like it even less now.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
Think its something like 8.1 and higher for more security.

Think of it this way, if anything similar happened with crAPPLE , you wouldn't be able to do a thing ;)

But at least it seems you got it going
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] stephenobe:
I went ahead and reflashed after new update. I am also going to start backing up, restoring over network is toxic. I'll let you guys know if I run into any issues.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
Once you have a nice backup, of you haven't, you may want to look into some gsi , that way you'll have more features, and most important be up to date with security patches.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jcol320:
Everytime that happens to me I've had to reinstall the stock image from razer. The recovery gets corrupted as well if you don't wipe data at least it has with me unless I'm overlooking something it soft bricks on me.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] stephenobe:
You talking about putting on the ROM? Yeah I actually havn't been able to do so so far.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LSS4181:
Warning: Never ever try to wipe data outside twrp

A big warning here: NEVER EVER TRY TO WIPE DATA OUTSIDE TWRP. This includes wiping from bootloader as well as doing factory reset from system. Make sure to always perform wiping operations ONLY FROM TWRP.

Back then when I wanted to flash Havoc OS GSI, I made a big mistake when I tried to wipe data by using the "wipe userdata" bootloader option and this got myself into a recovery loop that I could only get out by switching to the untouched slot, let stock recovery do the job, then switch back.

I also had such experience on another device (with unofficial TWRP) and I suspect TWRP (official or unofficial) might not always be able to handle /misc commands, so I filed an issue to TWRP in hope to find a workaround (or a proper porting guidance regarding the matter for unofficial devices). While some other people reported that for their devices, the /misc commands are correctly handled by TWRP and are considered safe, on our device this definitely isn't the case and should be AVOIDED.

As I usually perform wipes directly from TWRP, and the only times I ever tried wiping outside TWRP all got me stuck to such a loop, there's always a possibility that a TWRP build for a given device may not be able to correctly handle /misc commands and enter a recovery loop which can only be safely fixed by booting to stock kernel/recovery.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDubbed:
After installing the Arter97 kernel sometimes and at random the screen will freeze and I will get a system UI not responding message or something similar. Only way to get out of it is to perform a forced reboot. The one thing I did not do is format /data to f2fs primarily because I did not want to lose my data and the many hours it took to personalize my phone. Would that be the cause? Any suggestions on how I can troubleshoot this and or provide more info?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Fookwah:
So is it okay to take the stock OTA update with this kernel installed? will it lose magisk?

right now I'm rooted with magisk and have stock MR1 with the latest Kernel. I dont want to start all over. Ill lose save data on Morrowind. :cowboy:

JF
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] liammc83:
I've never did an ota with a custom anything without a problem.

But I'd recommend to do a full twrp backup to your external SD card, as well as do a titanium backup to your external SD card.

Then if you have to start over, its much faster, and you can restore apps + data so you wouldn't loose much at all.

Curious if ota will brick the phone ? I've had it happen with an old lg.

Let us know the results please if you take the plunge, this is my daily driver, or I'd try it.