yashsingh1/xdaforums huggingface dataset:
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] mattwheat:
When you said "Got it! Old version of Fasboot/adb."

Did you mean you were unable to flash using the old version or you had to swap back to an old version to flash?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] edison:
[MENTION=3562224]Pyr0ball[/MENTION], I was able to get my SD card formatted as internal memory with MR2 & r12. The following steps worked for me. YMMV.

* Flash all back to MR1

* Complete setup w/no SD card

* Power down & insert SD card

* Set up SD card as internal memory & format when prompted (or go to Settings->Storage if not prompted)

* Upgrade to MR2

* fastboot flash r12

* reboot to system

* reboot to TWRP & install Magisk v19.5

* reboot to system

At that point the phone seems to be working fine and recognizes the SD card as internal memory.

The only odd thing is that the 64GB card is reported as a 128GB card, of which 64GB is used by the system. I dunno if this is normal, but this was the behavior on stock before installing r12.

As of yet, I have not tried to install the f2fs mod or the update vold. I'll report back after I make a nandroid and attempt each.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] edison:
Ummm, is there a way to backup /data? What's the pattern-to-password secret decoder ring?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] AlDollaz:
I was using a version of ADB/Fastboot NOT suggested by Razer. Once I used the versions they suggested I was able to flash arter97 with no issues.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] aceofalltrades:
I have gotten around this by removing all finger prints and the screen lock
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LSS4181:
Still no solution for setting SELinux to permissive on Havoc 2.9? It's been more than a month since last time I asked about this...

The thing is, "setenforce 0" returned 0 which means the command exited without error, and for that reason, I got nothing unusual from logcat dumps.

Smartpack Kernel Manager sets SELinux by echoing to /sys/fs/selinux/enforce. It seems the content of /sys/fs/selinux/enforce is always 1, even if you manually echo a 0 into it.

So, aside from kernel itself is there anything else that could prevent SELinux from being set to permissive? Since OP did mention the kernel was made with SELinux set to permissive, I think something else might be keeping it at enforcing as even Magisk SELinux permissive script does not work, either.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] edison:
I tried that, but TWRP was still asking for a pass on startup. Maybe there needed to be some sort of background decrypt.

I wiped /data and haven't set a pattern or fingerprint...yet.

It seems that Google is now backing up at least some app settings to the cloud, not just the apps themselves. It's hit or miss from what I've seen as to the ones that wake up identically to my old phone.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Pyr0ball:
I've not tried the vold update either, but I'll give this option a try.

Any chance you've got a link for the lazy to get flashable MR1?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] EMJI79:
https://developer.razer.com/razer-phone-dev-tools/factory-images/
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] MatrixWriter:
Hi Everyone - have had my RP2 for some time and flashed arter97 kernel on MR1 and recently to MR2.

Using EX Kernel Manager and noticed that I'm missing a bunch of features of this kernel from the side bar.

ElementalX, adjust display settings, GPU, etc.

Has anyone run into this issue and might know what's going on?

Would definitely appreciate your help on this.

---------------------------------

Rooting Steps I Took

1) Unrooted MR1 and flashed back to latest global factory image available

2) Relocked bootloader (including critical)

3) Updated to latest patch, MR2

4) Rooted device

-Unlocked bootloader (fastboot unlock & fastboot unlock critical)

-Flashed arter97-kernel-r12-20191028.img to A and B (fastboot flash boot_a & fastboot flash boot_b)

-Booted into arter's modified TWRP

-Flashed arter97-kernel-r12-20191028.zip

-Rebooted system

5) Booted back in TWRP

-Flashed latest version of Magisk (20.1)

-Rebooted system

6) Installed EX Kernel Manager

Also no idea why images aren't loading in this post....
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Weerawit37:
I delete thermal-engine in vendor/bin the performance work very awesome without delete this file performance it suck

When i run heavy load application or game cpu run on max clock 2.8ghz but when my battery low down at 10%-1% my cpu big cluster clock drop at 1.20ghz whatever application or game you run max speed no go more 1.20ghz on big cluster

when battery at 100%-11% no issue cpu clock drop down max speed it always run at2.8ghz when run heavy load or game

I know delete thermal-engine file may damage device and heating issue battery hot but i'm okay with it

Anyone can fix this solution?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] DeathToy:
Delete
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Warrior1988:
You probably should post logs to actually help short out.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Trippyy Doee:
Do I have to repeat same steps as before to update? As far as wiping data ?

Edit

Its fully working for me with magisk on r1 . However I still can't get Google pay to work anymore . Quite upset since I used it everyday
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] striked0wn:
[MENTION=4898097]arter97[/MENTION] Isn't encryption of f2fs userdata partition supported or planned to be? Or is something wrong from my side?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] arter97:
https://twitter.com/topjohnwu/status/1109841194018922496?s=19
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] arter97:
I have no intention to support encryption with f2fs. Too much of a headache and fragmentation.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] cobben:
Heh-heh!

Don't use neither Magisk nor Gpay, but follow both, just in case . . . and I enjoy watching a good duel, from a safe distance of course.

A comment on Xiaomi.eu forum was interesting - why just on Thursdays?

" . . . every Thursday Google updates Google service. Due to that it is neccessary to repeat procedure described in points 1-9. . . . "

https://xiaomi.eu/community/threads/google-pay-issue.49386/#post-478801
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] dankickcan:
ran into issue of installing kernel and losing magisk, fixed by installing kernel and flashing magisk image inside of twrp everything is fine now mr1 with root and twrp hope this helps someone
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jonchance_84:
So did you flash the magisk zip? And the main problem I ran into is that it asks if you want to mount system when TWRP first comes up. Could you be more specific on what your did?

Also it asks what slot, etc. I understand there's dual partitions but specifics would help.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] dankickcan:
Deleted

---------- Post added at 06:19 PM ---------- Previous post was at 06:17 PM ----------

Ok so install magisk in the os, it will ask you if you want to download the zip for it, let it download once finished just boot to recovery and flash that zip, no need to select partitions and whatnot as for mounting system I think you are referring to when it first boots it asks if you want to make the system writeable, just swipe and the install the magisk zip, should work just fine, let me know if you are still having problems, I spent hours trying to update to mr1 and get this done today
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jonchance_84:
Ok cool, I'll give it a shot. Another question, I know the OP says it passes safety net, but does Google Pay work? I use it and I remember seeing someone say its broken even after wiping data for pay and play store.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] striked0wn:
Is it possible that WiFi-Hotspot/DHCP is broken? Sitting in school and can not test any further. Seems to be more than just DHCP-Server
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Ventigo:
Hey guys I have a problem :

When I flash the kernel I got a bootloop. TWRP is working fine but I can't get into the os.

What is strange because I had the device booted with this kernel but needed to go back to stock for short

Tried it with f2fs and without
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] dankickcan:
I also ran into issues on mr0 with root but without this kernel, my PS4 would no longer connect to my hotspot PS4 just gives me a dns server error. So I'm not sure if it would be beccause of the kernel in this case considering I had similar problems without the kernel flashed.

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

I'd suggest format and wipe data, and reflash vendor system and boot images in twrp on both a and b partitions(not sure if necessary but I did it anyway)and see if it boots up then. Just make sure your by your PC so if it overwrites the kernel and twrp you can reinstall
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Ventigo:
Just to clarify : with the boot.img to flash after the wipe you mean the stock or arter's ?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] dankickcan:
wipe format and factory reset flash mr0 boot vendor and system(you'll have to download the stock image for mr0 on razers website and open it to get those images) on both partitions you can switch between the partitions by selecting reboot from TWRP main menu and chose the partiton you weren't on and reflash those images(once you flash each one make sure you put them in there rightfull places ie. Flash boot to boot vendor to vendor and system to system and don't reboot until all are flashed in there right places on both a and b partitions) , once you boot in without magisk root or kernel/twrp you can take the ota to mr1 to get the audio fixes, Google gms, and general bug fixes that come with mr1 and after that installs and boots up with the update boot into bootloader/fastboot mode, flash the kernel and reboot to check that everything is functioning and while you are booted in os go ahead and install magisk and click install to download the zip once done boot to recovery, I find it easier to boot to bootloader/fastboot and then click on reboot recovery, and flash that magisk zip and reboot bam Bob's your Uncle
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Ventigo:
Well thanks for the clarification..but I was on MR1 (with the flash_all.bat from Razer) when I flashed the kernel and those bootloop occurred..

My plan is now that I'm on stock and everything is good I'll go ahead and flash the kernel again as usual and see if it's boot or not ..
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Twiggy000b:
Okay so for my recent post about system partition not allowing gapps to install.

Tested with the Vendor for MR1 and got this error in the log.

Tested with MR0 and got "this gapps version is for 9.0 sdk 27" (was using ressurection remix 7.0 and it was leading to the vendor partition.)

OKAY... Tested with MR0 vendor and system. tried installing 8.1 gapps and got error 64 stating the device was arm architecture. so theres still some flaws. but keep up the good work :)
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] blackknightavalon:
Was able to flash it into both boot partitions then flash Magisk via TWRP. Everything works perfectly!
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] godsfilth:
I noticed this too, things can connect but do not have internet access.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] keaheng:
Root and install FK kernel. Flash the kernel thro the app. Profit.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] DeathToy:
ElementalX and display controls aren't apart of arter97's kernel. Looks like those options are simply included in that app for kernels that have those controls.

I'd highly recommend using FK to play with kernel settings. It has a lot of options available that work with almost any kernel on any device that has root, from what I've seen. If your goal is to use ElementalX to improve battery life, and performance, you'll be able to with FK where needed, on a per-app basis.

You can adjust how many cores are active, and the min/max frequencies for big and LITTLE cores, per app. By default, I'm running 1 big and 1 little core @ 1.5GHz. 2 little and 1 big for social media at the same frequencies, and 2 big / 2 little for lite games. Setting it to the default all cores and max frequencies for benchmarks. No noticeable drop in performance, and everything still runs buttery smooth. Both screen on and off times have definitely improved.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] gorast358:
Hi . December kernel and Wi-Fi sources was released by a RAZER. Thank you for your work.

https://developer.razer.com/razer-phone-dev-tools/
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] EMJI79:
Bad link?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] gorast358:
new link. December factory image and kernel sources

https://developer.razer.com/razer-phone-dev-tools/
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Weerawit37:
When my battery low at 10%-1% big cluster CPU freq max speed always run at 1.20ghz no more than this I try many different like change CPU governor to performance lock CPU clock to 2.80ghz but not work cpu freq ramp down at 1.20ghz but on battery 11%-100% everything work great

And on little cluster no problem CPU freq ramp down

It has to modify in system or vendor something like that

I try delete thermal-engine in vendor/bin

And delete thermal-engine.conf,thermal-engine-cool.conf,thermal-engine-performance.conf in vendor/etc not fix this problem

And battery charging slow after 15minute

Here some images what I talking about

I appreciate that

Can anyone fix this problem?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] greencartim:
I'm pretty sure that's just how it is. The battery won't be able to deliver the correct amount of power for that CPU speed or it'll cause the phone to reboot, like what happened to the iPhone 6S. It even happens to high end laptops when the charger isn't plugged in. That's just how things are. Also if you want the battery health to last longer than two years, don't drain it pass 20%. And with the slow battery charging after 15 minutes could be due to heat since the phone won't fast charge at high temps.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Weerawit37:
On OnePlus 6t when battery low than10%-1% always run at Max clock 2.80ghz no performance drop I think on Razer phone 2 maybe have some app or system files has limited CPU speed when battery low than 10%

Because OnePlus 6t and Razer phone 2 has same cpu
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] fubar73:
I'm trying to install havoc but having some problems. You say to choose system partition to install to rather than boot partition? I tried once to system partition and only got a bootloop and if I try boot partition I get size of image is larger than target device. I'm pretty sure you mean system partition which like I said results in a bootloop. If anyone has any ideas as to what I can try please let me know. Thanks.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
Yes just as [MENTION=817586]the_brad[/MENTION] stated you flash the havoc image to the system partition. You must format system before and format data as well. The only way I got it to boot is you must fastboot flash vbmeta partition with vbmeta.img

Hope this helps ?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] fubar73:
Hi and thanks for response. Sorry if this is a dumb question but where can I find this vbmeta.img image you speak of so I can fastboot flash it?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
It's in the stock image. The same image you use to flash_all when going back to stock. If you've unzipped it you can't miss it ?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] fubar73:
OK I actually got it to flash on my old moto x4 that has broken wifi and network. (this is a hardware issue) not my daily driver. More of a test device. Havoc is working with gapps. I had to resize partitions in twrp before it would boot. Also flashed vbmeta.img. Now I just have to find the nerve to install on my razer phone 2. Thanks again.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] AlDollaz:
Has anyone encountered TWRP removing itself? I tried to install the latest Magisk update, but it wouldn't install through the Magisk installer, so I tried to boot to recovery and install it manually, but it would only boot into download mode. I'm going to fastboot arter's kernel again to see if it comes back. Weird.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jonchance_84:
Yea I tried to update magisk to 20.2 too. Bad idea same crap happened to me. Wound up having to flash stock boot vendor system again, then arter, then magisk 20.0 just to be safe. I was on 20.1 but this is fine for me.

Arter r12 and magisk 20.2 don't agree.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Reznor7:
Did just reflashing the kernel alone work for you?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LSS4181:
Magisk v20.2 and onwards does not work on Razer Phone 2 (neither does the most recent Canary). I've filed a bug report here.

Magisk v20.1 is the last known good stable version. I originally encountered the same issue with Magisk Canary (20107) and it seems this issue is also present in the stable build (20200). At that time I thought the Magisk Canary build itself was broken but it turned out not be the case.

To restore TWRP, reflash arter97's kernel and flash Magisk v20.1.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] AlDollaz:
Yeah, it was definitely Magisk 20.2. Reflashed the kernel > back into TWRP > restored a backup > this helped because I had a pin > reflashed Magisk 20.2 again and it broke TWRP again.

It looks like Magisk 20.2 is an issue with our phone. Sticking with 20.1 for now.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jonchance_84:
Looks like we aren't alone:

https://xdaforums.com/apps/magisk/mod-magisk-v1-universal-systemless-t3432382/page3768

They need logs but in order to get logcat, it would mean breaking it again. I'll pass.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] NectarJoe:
I haven't gone ahead with repairing this yet... Thankfully I'm not forced to. Pain in the butt. I have lots saved them to my cloud. Where do they want them sent to?

---------- Post added at 09:01 PM ---------- Previous post was at 09:00 PM ----------

logs***
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] jonchance_84:
Looks like just report the issue on that thread and attach a log with it.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LSS4181:
The issue with Magisk v20.2 has been fixed on latest Canary. You can get it here. The issue which I filed previously has been closed.

It was caused by an issue which resulted in lz4_legacy (which arter97 kernel uses) packed boot.img failing to unpack. The issue did not affect stock kernel as it uses gzip (which works fine).
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Reznor7:
Just flashed the new canary release myself. I can confirm that it resolves the previous problem.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Cjkeenan:
When you reflash the kernel to get TWRP back does it wipe data so you have re-setup android or does it leave the Android install alone?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] AlDollaz:
It only flashes the boot partition. The rest should be untouched.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Cjkeenan:
Sweet thanks
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Cjkeenan:
Hey I am hoping you can help, I am trying to reflash the kernel, but fastboot is not finding my device. ADB correctly finds device, and then I adb reboot bootloader, but then fastboot device just says < waiting for any device >. I followed the Razer provided instructions but it still is not finding it. I also tried on another computer, no luck. Any ideas would be helpful. I am fine with doing the nuclear option as well, i.e. resetting everything and going back to a factory image if necessary, but I don't know how to do that without access to a custom recovery or fastboot. Im guessing the issue is with my drivers, do you know a way to make sure that all drivers are definitely deleted, like a sort of DisplayDriverUninstaller but for the Android Drivers?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] EMJI79:
Did you change cables?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] AlDollaz:
Also use the ADB/Fastboot that Razer recommends. I had this issue as well until I used the correct cable/ADB/Fastboot.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Cjkeenan:
Thanks for the suggestions, the cable wasn't the issue it was the driver, I tried a third computer which I have never tried to connect my phone to and did the driver installation and such and it worked perfectly. Anyone know how to completely remove all traces of a driver as if it's a new installation of windows?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] Weerawit37:
[YOUTUBE]https://youtu.be/q3y8JGHZvsU[/YOUTUBE]

Big Cluster Frequency drop at 1.2ghz when battery low

Here video test any idea fix this issue?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] santimaster2000:
Quick question, I just flashed the latest version of the kernel through ADB because I installed Magisk v20.2 and broke my recovery, my phone has been stuck on the boot animation for a while now, is this normal or did I just ****ed up ?

Nevermind, I'm not running the latest stock ROM, that was the issue, I went back and flashed an old version of the kernel and now it works fine.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] JDBarlow:
Has anyone successfully installed arter97 kernel on the latest At&T image P-RZR-ATT-RLS009 December release date??

I've tried numerous times and it doesn't boot. It stays at the Razer swirling boot image....
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] greencartim:
I tried too, seems to not work. However the global version with the September security update and released on December does work.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] tard24:
Has anyone fooled with any of the kernel settings with a kernel manager and have any suggests that boost the phone and still runs stable?
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] IDisposable:
https://twitter.com/IDisposable/status/1212881533306130433?s=19
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LilyL:
Can no longer access TWRP/ Overwritten?

I kept getting update notifications for Magisk and used the Magisk Manager's Recommended method of Direct Install through the app. It said it was Flashing and when it completed, the phone restarted and the updated had not completed. I then downloaded the zip file and assumed I would update via TWRP. I restarted the phone in Fastboot and tried to start Recovery Mode and it simply went back into Fastboot, again and again. I tried to use command line from adb tools to force it into Recovery mode, but still nothing. I cannot seem to access TWRP at all, and I am afraid that the Magisk update has some how overwritten TWRP some how. Do I need to reinstall TWRP or has anyone else has this problem, is there a way to get back into TWRP from here? I can't seem to find the right img file for just TWRP for the Razer Phone 2, apart from this complete Kernel. Do I need to reinstall the complete Kernel? Any help would be great, thanks so much.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] AlDollaz:
Reflash the kernel, that'll bring TWRP back. Boot TWRP > Flash Magisk 20.3.

Magisk 20.2 (if that's what messed you up) messes up the boot partition.
[Razer Phone 2 ROMs, Kernels, Recoveries, & Other D] LilyL:
This fixed it, thanks. Should I be able to update Magisk directly in the future, or should I stick to updating via TWRP?