[ASUS ROG Phone II ROMs, Kernels, Recoveries, & Oth] Freak07:
Update to 3.1.5

Hey guys and girls,

Here´s the next update for the Rog Phone 2. It includes Linux-Stable upstream.

Used clang 12.0.2 prebuilt from Google for compilation.

fix for f2fs that prevents data loss in case of sudden power failure. Free more RAM, by removing unused reserved ram-regions.

Detailed changelog below and on github.

thanks to @uriii13 for testing the kernel with me prior to release!

Kernel backend PSI-Support and PSI-Enable Magisk-Module:

2.6.0 introduced kernel-backend PSI support .Asus enabled the userspace low memory killer in the stable firmware update. However they do not use it with PSI like the Pixel 4 and google intends, but with vmpressure levels.

If you´re interested in this topic here is more information.

I personally like the PSI-approach way better and I think google did some excellent work there.

If you want to enable this feature just flash the PSI-Enable Magisk-Module via Magisk Manager, when you´re on 2.6.0 or higher and reboot.

If you say I like the approach from Asus just don´t flash it.

I´d advise everybody to read the instructions in the OP and follow them. They are written for a reason, because they ensure everything will be working as expected.

Kernel is made for the latest stock rom from Asus, you must update your phone to the most recent Asus update, before flashing the kernel.

Enjoy!

Changelog:

- Linux-Stable Upstream to from 4.14.213 to 4.14.222

- use Clang 12.0.2 prebuilt by Google

- fix preserving root on latest magisk versions

- fix coding issues detected by clang 12.0.2 by Google

- fix for f2fs to prevent data loss in case of sudden power failure

- fix compilation/booting related to the new toolchain, alongside LTO and linking the kernel with LLD

- increase KSYM_NAME_LEN

- arm64: lse: Prefetch operands to speed up atomic operations (thanks to @kdrag0n )

- remove unused mem regions to free more RAM (thanks to @kdrag0n )

I wish you all a nice day/evening!

Download is below :)

Download:

Disclaimer/Important:

Kernel for the Stock Firmware by Asus (make sure you´re always on the latest firmware)

Kernel: https://www.androidfilehost.com/?fid=2188818919693749092

Kernel for Custom Roms based on Android 10 (please note vibration only works properly on omni based custom roms)

Kernel: https://www.androidfilehost.com/?fid=2188818919693749093

Instructions how to flash the kernel can be found in the OP!

But look at this post too :)

PSI-Enabler-Magisk-Module: https://www.androidfilehost.com/?fid=4349826312261798764

Only for Android 10 Stock Rom running a custom kernel with PSI enabled! Flashable via Magisk Manager!

Brightness Module (reduces minimum brightness):https://www.androidfilehost.com/?fid=4349826312261766808

Only for Android 10 WW Stock Firmware ! Flashable via Magisk Manager.

The module is offered without any form of support. Please do not discuss it here in the thread.

If you face issues, it´s probably because you accidentally use any form of tweak, app, script, module or some other conflicting mod.

It´s optional and can be used standalone without the kernel.

Have fun, enjoy the kernel and your phone.

If you like my work please consider a donation.

Donations are not mandatory but very welcome.

Coffee and Green Tea is what keeps the development going: http://paypal.me/freak07