yashsingh1/xdaforums huggingface dataset:
[ASUS ROG Phone 5 / 5s] Freak07:
Update to T_1.0.1

Hey guys and girls,

Alright so here´s the next update. :)

Linux-stable was updated as well as latest QCOM upstream.

Source code updated to latest WW-33.0210.0210.221.

After flashing the kernel.zip there will be a magisk module in magisk manager called AK3 Helper Module. Do not delete it.

The link to the latest WW firmware can be found following this link.

More changes in the Changelog below:

Changelog:

- Update kernel source with WW-33.0210.0210.221

- bump linux-stable to 5.4.251

- include latest qualcomm upstream

- other improvements and tweaks please check github

Androidfilehost is currently broken. Zip is attached to this post!

Instructions can be found in the OP!

But look at this post too :)

Have fun, enjoy the kernel and your phone.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee/green tea to keep development going: http://paypal.me/freak07
[ASUS ROG Phone 5 / 5s] ~zen~:
Hi!

could you please tell me if I can use this kernel for ZS676KS / ROG 5s?

thanks!)
[ASUS ROG Phone 5 / 5s] dre89:
Yes, you can use it on the 5s and it runs perfectly.
[ASUS ROG Phone 5 / 5s] Aydin12341:
Hello,please help me i urgently need qcn file for asus rog 5s phone.
[ASUS ROG Phone 5 / 5s] Alex2008Ex:
Hey, I can't find vendor dts in branch master_release_t_1 in the kernels source code.

Is this normal? If not what can I do to compile my version of the kirisakura kernel?

Thanks in advance!
[ASUS ROG Phone 5 / 5s] Freak07:
Yes, that's normal because I dont ship dtb/dtbo on my A13 release at the moment.

When Asus pushed A13 source on release they didn't include dts files in the source code. They're available by now in the latest source though.
[ASUS ROG Phone 5 / 5s] Aydin12341:
Please urgently need qcn file for asus rog phone 5s, please help.
[ASUS ROG Phone 5 / 5s] Freak07:
I don't own a rog5s, can't help you, sorry.
[ASUS ROG Phone 5 / 5s] Alex2008Ex:
Can I add dts from latest source code or it needs modifications? Or if it needs modifications can you provide it please?
[ASUS ROG Phone 5 / 5s] calvinfoo:
Hi anyone has the firmware file WW-33.0210.0210.221 as asus servers are down for me at the moment
[ASUS ROG Phone 5 / 5s] Criz 13:
Apakah ini berfungsi pada firmware WW.18.0840.2106.83? Tolong dijawab,terimakasih

Mod Edit: English Translation Below

Does it work on WW.18.0840.2106.83 firmware? Please answer, thank you
[ASUS ROG Phone 5 / 5s] shadowstep:
@Criz 13

Spoiler content hidden.

Spoiler content hidden.
[ASUS ROG Phone 5 / 5s] Criz 13:
Apakah ini berfungsi pada firmware WW.18.0840.2106.83? Mohon dijawab, terima kasih

Mod Edit: English Translation Below

Does this work on WW.18.0840.2106.83 firmware? Please answer, thank you
[ASUS ROG Phone 5 / 5s] Freak07:
As mentioned by @shadowstep this is an english forum, so please use at least a translator.

I don´t know if it works on that firmware. The first builds were done with the source code from 18.0840.2107.151. I never built or flashed the kernel on that very old firmware.

Backup your partitions and try.
[ASUS ROG Phone 5 / 5s] Freak07:
you should be able to add the device tree files, you might need a few additions commits to actually build dtbo.img during kernel compilation.

You should be able to find those on my older branches.

If I find time I might add them myself, but no guarantee or ETA. :)
[ASUS ROG Phone 5 / 5s] Alex2008Ex:
K thanks I'll look at it.
[ASUS ROG Phone 5 / 5s] :
Hello sir, Im trying to build your kernel from source sir, with clang and it got an error about "sp", I built the kernel with clang 11.0.1 as used in the kirisakura_build.sh script, but my gcc uses default linux, But it doesn't build either, How should I fix it sir, did you use something different, sorry if I disturb you sir, thank you
[ASUS ROG Phone 5 / 5s] Criz 13:
Thank you for reminding me . I've tried the 2107.151 firmware, it was successfully installed and it's very soft, the temperature is very cold, it's stable, but it does crash a lot, especially when rebooting and shutdown. (shows a ram dump). It's not good if forced. Your kernel is very good, thank you for your hard work to make a kernel as magical as this .
[ASUS ROG Phone 5 / 5s] Criz 13:
sorry the question is a bit off topic, between franco & exkm which one is more complete for rog 5? i tried to download franco kernel in playstore but i can't. please give me your opinion.
[ASUS ROG Phone 5 / 5s] Criz 13:
I tried all the kernels according to the firmware version you specified, but why is it that after flashing the kernel it's always like this?

Android 11

rog 5

unlock bootloader

root
[ASUS ROG Phone 5 / 5s] Alex2008Ex:
Hey @Freak07

I asked Asus to send me .235 kernel source because we can update to it and they accepted because I told them not releasing it is GPL violation.

Now it's available on support webpage so would it be possible to update your kernel for Android 13 please?

Thanks in advance :)
[ASUS ROG Phone 5 / 5s] Jbro129:
@Freak07 can you build a version with KernelSU included? I am having some trouble building the kernel source myself. I downloaded aarch64-linux-android-4.9, arm-linux-androideabi-4.9, dtc, and clang from Googles source and modified your build_kirisakura.sh to include them.
[ASUS ROG Phone 5 / 5s] zinou213:
Any new version ?
[ASUS ROG Phone 5 / 5s] Shironeko2:
does this work for ROG phone 5s WW 33.0210.0210.235 (android 13)?
[ASUS ROG Phone 5 / 5s] Ricardo911_619:
i really hate to be a pain can someone please explain to me how to install a kernal i want i just wanna install Update kernel source with WW-33.0210.0210.221 but i have no idea ive read over the original post instructions over 20 times its just going right through me can someone explain from the beginning on what to do how do i install Kirisakura_Anakin_S_2.3.0 do i need to unlock bootloader do i need to install magisk also on how to instal twrp sorry to be a pain any help would be apprcieated on full instructions
[ASUS ROG Phone 5 / 5s] thejus44:
Hi, I tried this kernel and its really snappy, much better than the default stock kernel on Android 13. Thank you so much for working on this, its great! But I did encounter a couple of issues

I'm not able to connect my external crucial x6 SSD to this kernel. It says "Issue with device, tap to fix", and the only solution is to format the device. Obviously, I don't want to do that. When I flashed the stock kernel once again I was able to connect and use the device with no issues. I was wondering if you had a solution for that.

There have been more recent updates to the ROG phone 5 in the past few months, is the kernel getting another update sometime?

Thank you once again!
[ASUS ROG Phone 5 / 5s] Shironeko2:
Hi, is it possible for me to install this kernel in version .235? Thank You🙏
[ASUS ROG Phone 5 / 5s] Bash29:
@Freak07 can you update to the latest version 235? Please
[ASUS ROG Phone 5 / 5s] twistedumbrella:
I was trying to give you a pass, but I can take it back if you didn't want it lol. Pretty sure I know which config you are talking about. I had wondered why it wasn't enabled, so that explains it.

The ROG Phone 5 is super finicky. It doesn't help that they released two (or three, depending where you're from) models and then immediately pushed out a second series with two more. All of them have slightly different hardware that Asus is trying to keep on a single code base.

NieR Re[in]carnation - Apps on Google Play

All Prayers Lead to The Cage

play.google.com

has a bunch of tactile (effect) UI components that make it easy to pick out the lag.
[ASUS ROG Phone 5 / 5s] Freak07:
I pushed my source :) I took the pass don´t worry. :)

CONFIG_MSM_PERFORMANCE_QGKI needs to be explicitly enabled.

For some reason when extracting the defconfig from boot.img or from /proc/config.gz and using that to build the kernel it doesn´t get enabled.

It seems there´s a lot for me to be learned about CAFs QGKI build "system". There might be more surprises.

Yes, the ROGs are super finicky I completely agree.

I´ll check the game and bluetooth on my end. thanks :)
[ASUS ROG Phone 5 / 5s] Freak07:
Update to 1.1.0

Hey guys and girls,

I hope everyone is having a good day or starting into one. Here´s the next update.

I forgot to include wireguard in the release. That´s now added.

Since we´re not building a QGKI kernel, but rather a standalone kernel an important config that feeds information to the powerhal daemon didn´t get fully built, since the QGKI dependency wasn´t met. This resulted in lags in games like NieR.

Also fix certain games like 7DS (com.netmarble.nanagb) crashing frequently on startup.

thanks to @twistedumbrella for reporting the bugs and noticing wireguard missing.

More changes in the Changelog below:

Changelog:

- add wireguard

- enable qgki part of msm_performance to fix lags in certain games

- fix some games ( for example 7DS (com.netmarble.nanagb)) frequently crashing during startup

Download:

https://www.androidfilehost.com/?w=files&flid=328305

Instructions can be found in the OP!

But look at this post too :)

Have fun, enjoy the kernel and your phone.

Donations are not mandatory but very welcome.

If you like my work and want to buy me a coffee/green tea to keep development going: http://paypal.me/freak07
[ASUS ROG Phone 5 / 5s] twistedumbrella:
I believe their build system is completely integrated. Their chain of configs put completely together is nothing like what you pull from their kernel and even that can't compile as is, which is a likely indication they have some of the configuration in the system side of things and build it as a single process (rather than kernel binary style). That is the reason I opted for export ASUS_BUILD_PROJECT="ZS673KS" instead of the usual process of changing around some ifdefs that I saw elsewhere. I don't trust that they didn't throw a random curve somewhere I'd miss it.

Yours come up as "-qgki-perf" using extract-ikconfig because of the spoofing commit.
[ASUS ROG Phone 5 / 5s] Freak07:
the spoofing commit will show the defconfig that I extracted from the stock kernel, that´s correct.

Interestingly on zenfone 8, CONFIG_MSM_PERFORMANCE_QGKI was enabled without passing it explicitly in the defconfig I use to build the kernel with. It seems on the zf8 repo having CONFIG_QGKI and CONFIG_MSM_PERFORMANCE was enough to enable it. Checked .config in the out folder there.

For some reason not the case on the ROG 5 source.

I pass the same flag in my script.

Either way it´s fixed now :)
[ASUS ROG Phone 5 / 5s] twistedumbrella:
Two display and two sound drivers with conflicting definitions... all I have to say...
[ASUS ROG Phone 5 / 5s] Anubarak16:
In normal media there is actually not that much of a delay but every game where you swing a sword that makes a sound will face a hard delay. For example https://play.google.com/store/apps/details?id=com.direlight.grimvalor
[ASUS ROG Phone 5 / 5s] twistedumbrella:
@Freak07

b82b18ff29a8c9d4883cf8cb4db1f4fa257eb501

Not sure that it eliminates the issue, but the delay is noticeably reduced
[ASUS ROG Phone 5 / 5s] Freak07:
thanks for the heads up @twistedumbrella, appreciate it. I tried the commit, but it doesn´t make a difference for me.

I resorted to using the game titan quest. Pressing the pause icon, and then pressing the "continue" button in the interface, but doing a hold press instead of a tap-press, produces a sound without the interface vanishing.

If I use 3,5mm headphones the sound is basically synced with me touching the screen, while on my pixel buds over bluetooth there´s, as to what I can perceive and tell apart, exactly the same delay with or without the commit.

Now I think it´s interesting that there´s not the same kind of delay at all over the youtube test I posted earlier.

Two guesses, maybe it´s either, both combined or none.

There might be sound processing in the background tailored to games and only being active there. Might increase latency in that case.

Second guess, additionally to the "usual" bt delay it´s more perceivable on the ROG 5 when running games due to the very low touch latency.

I´ll compare it with my other phones, how they behave in the same game with the pixel buds over bluetooth to get a general impression how it looks on other devices.

But it would certainly be nice if it could at least be reduced in some way. Let´s hope we find a way :)
[ASUS ROG Phone 5 / 5s] Devaanp:
Mine is unlocked bootloader and I've installed TWRP, still need root?
[ASUS ROG Phone 5 / 5s] twistedumbrella:
The more I thought about it, my last test was also on full stock. Any improvement I had could have been that. That is still hope that some is possible, at least.
[ASUS ROG Phone 5 / 5s] JazonX:
@twistedumbrella | @Freak07

Asking because I couldn't locate where it's mentioned;

Which models can this kernel work with ?

* ROG 5

* ROG 5 Pro

* ROG 5 Ultimate

* ROG 5s

* ROG 5s Pro
[ASUS ROG Phone 5 / 5s] Freak07:
Yes. I tried your kernel, my kernel and compared them. I think @Anubarak16 might also be interested in that.

Compared to stock, both yours and my kernel is slightly improved when I use the Google pixel buds. At least to my perception it's noticable, maybe I'm biased though. I think others can try too. (Pixel buds use AAC, SBC)

I also found time now try with the Sony WH-1000XM3. Same scenario with the game I mentioned. They support SBC, AAC, aptX, aptX HD and LDAC.

Compared to the pixel buds there's barely any latency. There's still a bit latency compared to the 3.5mm jack, but not a real "delay". I guess if one plays "competitive" games it's still way too much delay, but it's not as disruptive to the experience when swinging a sword in an RPG compared to when I use the pixel buds.

The difference between the pixel buds and the Sony makes it very difficult for me to say there's a difference between stock kernel and custom kernels there, as the delay is way less on the Sony headphones.

There's also the possibility that it's related to the QCOM BT stack and we can't do anything in the kernel.

The kernel "should" work fine on all non 5s phones. However I can only test the regular ROG 5.

There's the possibilty it might break the touch zones on the back cover and rear display on the pro/ultimate. Without a device I can't confirm.

The 5s uses a more recent CAF snapshot and might (very possibly) require a separate kernel. I guess to confirm that somebody needs to try.
[ASUS ROG Phone 5 / 5s] twistedumbrella:
That's also a good point. My first test was with a Wonderboom speaker and the second was with Airpods Pro (last year's model). The Airpods would have much better hardware than a speaker that is now about four years old. At 2AM, firing up the Wonderboom wasn't ideal.

I would think the only thing they didn't recycle is the processor. As long as the current base can also support the 888+, it should run. That's not to say they didn't go and change something under the hood.

@JazonX can you extract the ikconfig from the stock S kernel? That would be a quick and easy way to verify the hardware.
[ASUS ROG Phone 5 / 5s] JazonX:
Just installed on ROG 5 Ultimate Global - A Version (ZS673KS) : Boots and works fine.

Installed using TWRP.

Not sure where the mapping or enabling the option for the back cover touch zones exist. Never used it, and I doubt I ever will since it's a hassle with the size of the phone, and I have to remove the cover to do so. Not a dealbreaker at all.

Was and is an active user of your work on the ROG II.

Thank you so much for your hard work and support. :)
[ASUS ROG Phone 5 / 5s] twistedumbrella:
In case you've never used 'less' before (since I don't typically use it)

less -R "ROG Phone 5 to S.txt"

That will display the color-coded diff from the text and 'q' will quit the view
[ASUS ROG Phone 5 / 5s] Freak07:
Yes, I'm unsure about the newer base (especially changes in the kernel device tree and other kernel side changed that might depend on updated firmware).

Maybe somebody will try and report back that owns a rog5s device.

Nice thanks, I appreciate it! I'll look at it when I'm back home at my PC. :)

Thanks for the kind words :) I really appreciate it. Glad to read posts like this from time to time!

Enjoy the ride. :cowboy:
[ASUS ROG Phone 5 / 5s] twistedumbrella:
It's not THAT much different. Touchscreen and WiFi (CNSS) changes are probably the most relevant.
[ASUS ROG Phone 5 / 5s] chairman011:
So far so good 👍
[ASUS ROG Phone 5 / 5s] MotoE2014:
Sorry for the inconvenience, I have a Rogphone 5 16/256 with Bootloader unlocked only, I have read the instructions but I have not understood some things well: I have the stock firmware with Bootloader unlocked, I just need to install the twrp, root and kernel and enough? Do you need to do some wipes? Thank you so much to those who will help me.
[ASUS ROG Phone 5 / 5s] Freak07:
if you already own ex kernel manager or franco kernel manager app, you can use those to flash the kernel.zip. then there´s no need for installing twrp.

you don´t need to do any wipes. just follow the instructions in the first post.

make sure your phone is rooted, before flashing the kernel.
[ASUS ROG Phone 5 / 5s] MotoE2014:
thank you very much x the answer I appreciate it very much, it is very noticeable that you are a dev. very attentive to our needs and quick in lending a hand to the end user, one last thing but this kernel was also born to set up and improve Rogphone 5 in the various aspects where a kernel can intervene?
[ASUS ROG Phone 5 / 5s] Freak07:
Read the first post for features and aspects of the kernel. It's pretty detailed already.

There are a lot of links and for the rest Google is your friend.
[ASUS ROG Phone 5 / 5s] nexusnerdgeek:
Thanks Freak07. My Rog 5 is now running the custom kernel of yours. Seems buttery smooth performance to me. Well done and thanks for your hard work!
[ASUS ROG Phone 5 / 5s] MotoE2014:
Installation complete, thanks advanced!
[ASUS ROG Phone 5 / 5s] Anubarak16:
Installed it one hour ago and "lost" the ability to control my rear touches with my Ultimate. At least my rear display still works. The option to set/change/enable them completely disappeared everywhere.

Is there a way to enable it for you without having the device? For now I could live without it but it would be cool to use them again in some time.

Unfortunately as already said no real change in Bluetooth audio game latency but the phone is generally a little bit hotter. At least it never went above 35°C before in the games I play mostly, not it reaches that level after a few minutes and surpasses it. 😅

However it feels a little bit more smooth 😎👍
[ASUS ROG Phone 5 / 5s] twistedumbrella:
Nevermind. I read it wrong.
[ASUS ROG Phone 5 / 5s] Freak07:
might just be something else in the background. temps are about the same for me.

oh no, I was afraid of something like that. you´re rooted like in requirements mentioned?

can you go to terminal, type "su", grant permission, then when the beginning is a "#" type "lsmod" and paste the output here?

unfortunately I really lack the time at the moment to do longer remote debugging sessions. if you know how to take logs, logcat and dmesg, play with the rear zones on stock kernel and see if you see some lines when enabling, disabling the zones. That might be helpful. Then upload the logs here and point me to those lines.
[ASUS ROG Phone 5 / 5s] Anubarak16:
You were totally right about the temperature.. It went down to normal now.

Yes I had/have root access before and now.

$ su
:/data/data/com.termux/files/home # lsmod
Module Size Used by
:/data/data/com.termux/files/home #

I'll see what I can do about the logs. Never did that. I'll play around when I have time and come back.

Is there any particular order in which I have to flash boot.img, vendor_boot.img and dtbo.img
[ASUS ROG Phone 5 / 5s] Freak07:
Did you flash TWRP?

Can you run those two commands before flashing stock kernel and trying to get logs? They need su access.

insmod/vendor/lib/modules/focaltech_fts_rog2.ko

insmod /vendor/lib/modules/sx932x_2nd.ko

Afterwards try lsmod again and see if they are loaded. Maybe check for the touch sensitive zones again.
[ASUS ROG Phone 5 / 5s] twistedumbrella:
Reinstall the kernel zip from the system side and it will fix itself.
[ASUS ROG Phone 5 / 5s] Anubarak16:
I didn't Flash twrp - I'm still a bit unsure what to do in which order to keep root + kernel + twrp 😅

Until I'm 100% sure I'll boot into it via fastboot each time.

I'll try that in the next ~12 hours (it's night time for me now) I read about how to take those logs and I'm sure I can provide all the required information now.

The only thing I need to know is where to get the original kernel from.

Not sure if I need to unzip my WW firmware from the Asus site and just copy those files or if I need to follow the instructions from https://xdaforums.com/t/vendor_-boot-images-root-stock.4325939/
[ASUS ROG Phone 5 / 5s] twistedumbrella:
Have a copy of Magisk apk, the kernel zip from this thread, and the twrp image on your sdcard.

Boot TWRP and do Advanced -> Flash current TWRP

Install Magisk through TWRP

Reboot to system

Install the kernel zip

You'll have all three installed and running
[ASUS ROG Phone 5 / 5s] Anubarak16:
Deleted... Typed too slow. Your answer was already there
[ASUS ROG Phone 5 / 5s] Freak07:
hey, I just discovered that flashing the kernel.zip via TWRP is not working correctly at the moment.

The helper magisk module that´s supposed to replace two of the kernel modules is not getting installed correctly if TWRP is used.

Do you own EXKM or FKM app? If so can you please try flashing the kernel.zip via either of those apps?

If not I create you a separate zip, that should make it work in TWRP.
[ASUS ROG Phone 5 / 5s] Anubarak16:
I don't own them but I could buy the cheaper one if that saves you some work. But I still don't know where the stock kernel.zip is. Is it the kernel-source.tar.gz file from here https://www.asus.com/supportonly/ROG Phone 5 (ZS673KS)/HelpDesk_Download/ below the source code region?
[ASUS ROG Phone 5 / 5s] Freak07:
there is no stock kernel.zip.

you need to extract boot.img, vendor_boot.img and dtbo.img from the payload.bin inside the full firmware zip available on asus support site.

Flash all those three .imgs via fastboot and you´re back to stock. If you want to stay rooted patch boot.img via magisk-manager prior to flashing it via fastboot.

You can extract them with this tool for example:

https://xdaforums.com/t/guide-how-to-extract-payload-bin-from-ota.3830962/

attached is a more recent build of the kernel alongside a magisk module.

To try them, boot to TWRP, first flash the kernel.zip and directly afterwards the DLKM zip. Reboot.

After reboot go to terminal and do the lsmod command again and show me the output please :)
[ASUS ROG Phone 5 / 5s] JazonX:
@Freak07 | @Anubarak16

Here's

* Boot.img

* dtbo.img

* vendor_boot.img

from the firmware - WW-18.0840.2107.151-1.1.94

Download (Mediafire)
[ASUS ROG Phone 5 / 5s] twistedumbrella:
I do that for every firmware, along with posting the magisk patched boot images. The DTBO has never need to be reverted, but I can throw that in the ones posted and start including it.

The direct link to the folder if you want to skip the thread

151

Downloads for : ASUS ROG Phone 5 | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com

86

Downloads for : ASUS ROG Phone 5 | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com

56

Downloads for : ASUS ROG Phone 5 | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com