• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[Kernel][MIUI-AOSP]Yuki ユキ Kernel 3.9 Miui 6 AOSP[curtana,excalibur,gram,joyeuse]

Search This thread


Recognized Developer / Recognized Contributor
android 11 has been released for joyeuse officially about a month ago, new version of miui is, previous version was which was on android 10. that's why i'm asking since it was developed when android 10 was the latest on joyeuse at least, and it hasn't been updated since
AOSP R version will work on MIUI R but not all wil work like led
  • Like
Reactions: kadorna1


Recognized Developer / Recognized Contributor
I added some boosting info for they who have some laggy issues on some games

COD Mobile for reference


Senior Member
Nov 6, 2018
Redmi Note 9 Pro
It does not seem to be working on xiaomi.eu miui 12.5 ROM port for Redmi Note 9S. It remains stuck on the Redmi logo but does not go into a bootloop. I'm on build 21.6.2 of the ROM. Any help would be appreciated.


Senior Member
Jun 7, 2012


Recognized Developer / Recognized Contributor
It's ok, I've installed Havoc OS 4.6 on the phone. I have a question though: Would you recommend the kernel for better battery life? Performance is good on Havoc but the battery life is quite average.
I'm sorry but normally I am not interested in having a thousand hours of battery life.
And maintaining good performance without hurting the battery is not so easy or causes abnormal operation or lags.


Senior Member
Nov 6, 2018
Redmi Note 9 Pro
I'm sorry but normally I am not interested in having a thousand hours of battery life.
And maintaining good performance without hurting the battery is not so easy or causes abnormal operation or lags.
I see. I guess long battery life is kind of redundant now with fast charging and all that. Anyways, I flashed your kernel on Havoc and it's working great. The idle drain at least seems to have improved a lot. So, thanks for your work I guess xD

Top Liked Posts

  • There are no posts matching your filters.
  • 3

    #include <std_disclaimer.h>
    * Your warranty is now void.
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM/Kernel
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    Yuki kernel is based in CAF

    /* Details */
    • Last Xiaomi Changes
    • Last CAF Merges
    • LZ4 zram
    • LMK PSI
    • Backported pidfd
    • Use power efficient working queues
    • Use overlayed DT (to avoid making dtbo images)
    • LMK config module (see screenshots)
    • Wireguard
    • kCAL
    • Manthilla governor
    • Jump label optimizations
    • F2FS Rapid GC
    • BBR2 tcp cong

    /* Work in progress features */
    • sound control
    • Upstream

    /* Instructions */

    • Simply flash the kernel zip file from the recovery.
    • This kernel uses Anykernel 3 so no need to reflash magisk (if you use magisk) after installing it.
    • For good work don't disable Yuki-ユキ Kernel RN9Pro LMKD module (see the image click to see the image...)

    Note: Yuki kernel (curtana folder) is for miui roms, miatoll folder is for AOSP based roms.
    Note2: Now the AOSP variant have 2 versions uno for Android R versions for better compatibility zip name similar to this

    It is not necessary but if you like my job you could invite me a cup of coffee :)

    Changelog in second post.

    XDA:DevDB Information
    Yuki-&#12518;&#12461; Kernel 3.6 for Xiaomi Atoll devices [curtana,excalibur,gram,joyeuse], Kernel for the Redmi Note 9 Pro

    Source Code: https://github.com/Klozz/android_kernel_xiaomi_sm6250

    Kernel Special Features: LMK psi, Last CAF Merges, Backported pidfd, Wireguard and more...

    Version Information
    Status: Stable

    Created 2020-10-26
    Last Updated 2020-11-29


    • Upstream to 4.14.221
    • Add Klapse and kcal
    • Optimice randomness
    • don't leak vdso pagelist
    • Use a larger on-stack video copy buffer
    • UPSTREAM: net: bpf: Make bpf_ktime_get_ns() available to non GPL programs
    • BACKPORT: bpf: add bpf_ktime_get_boot_ns()
    • Yuki ユキ clang update to 20210219 build
    • Merge tag ' LA.UM.9.1.r1-08600-SMxxx0.0 '
    Note: AOSP android R with inline encrypt only.
    Miui kernel will be updatyed when xiaomi release R miui for all devices.
    Q kernel will be updated soon.

    • Fixed performance regretions
    • Implement via userspace and update exec prog configuration
    • Don't force Low Memory killer configuration if detects we are using LMDK
    • Reconfigure LMKD configuration if detects 4GB ram device (needs more testing i have RN9Pro 6GB ram device)
    • Track power changes from Gram Q OSS
    • power: Drop “_3P5” from type to get recognized in AOSP (some roms haven't added this flag yet and sometimes cause issues so remove it)
    • Update ds28e16 driver from Q gram OSS
    • Merge tag 'LA.UM.8.1.r1-16600-sm8150.0'
    • Upstream to 4.14.214
    • optimize bpf modulo operation
    • RCU fixes
    • disable binderfs [Q ROM]

    • exfat 5.8 [both]
    • bindefs port (as per R requeriments) (R in the name Redmi-Note-9s-Pro-AOSP-R.zip)
    • haptic update from gram-q-oss [AOSP]
    • NFC firmware download fixes (from CAF)[AOSP]
    • magical changes to make your life better (or not)[both]

      NOTE: AOSP zip have 2 variants now, 1 for Android Q and other for R
      Some new requirements on Android R won't work on Q based roms and may cause fastboot reboot

    • Fix usb XHCI connection
    • Fix usb EHCI connection
    • Fix usb OHCI connection
    • v4l2-ioctl: Use a larger on-stack video copy buffer
    • printk: Add sleep time to timestamps
    • Mark vdso_pagelist allocation as not a leak
    • Avoid dynamically allocating memory in ext4_ext_remove_space
    • Alsa: Don't dynamically allocate a single struct instance
    • Atoll: increase linux,cma to 128M
    • Enable ULP
    • TTL Fixed (?)
    • some more.... for both kernels miui and aosp variants

    30/10/2020AOSP variant only

    • Rebased over LA.UM.8.9.r1-10600-SM6xx.0 (AOSP variant only)
    • Merge tag 'LA.UM.8.1.r1-16200-sm8150.0'
    • Wifi, Audio tag used LA.UM.8.9.r1-10600-SM6xx.0
    • Net Wireward
    • Enable PSI monitor
    • Add pidfd backport
    • Fixed boot on Joyeuse (Miui variant )
    • Last xiaomi changes (Miui variant )
    • Disable LMK
    • [TESTING] exec: Add node tampering blacklist function
    • [TESTING] allow [email protected] and perf 2 to tampering blacklist

    Old log history

    • dm-crypt: increase threads
    • mm: Introduce kvcalloc()
    • treewide: kvzalloc() -> kvcalloc()
    • Increase the cgroup limit to 7
    • fs: exec: Introduce is_zygote_pid()
    • [TESTING] exec: Add node tampering blacklist function
    • [TESTING] allow [email protected] and perf 2 to tampering blacklist
    • Optimize CRC32
    • UFS pm_qos
    • use buffer from the stack space
    • implement stpcpy
    • expose event streams
    • Allocate decoder buffers
    • Fix VLA's
    • Improve backwards memmove performance
    • Enable vDSO + vDSO COMPAT (32bit)
    @TeamMex This is a very fine kernel. I am currently working with using it (compiled with clang-11.0.4) as the kernel for OrangeFox Recovery, and it is looking very promising. :highfive:
    Credits not in order:
    • Xiaomi (MiCode) for kernel sources
    • Code Aurora Forum for kernel changes
    • Google for easy access to PSI Pidfd changes
    • Demon000 for his work on AOSP kernel
    • kdragon for proton clang
    • xlidz for Yuki logo
    • RN9pro tg group for donate the device
    • KernelToast for kernel changes like qOS etc
    • To you for use my work
    • and a lot of others developers :)

    this config help with some "laggy issues"
    I leave some config for get more perf on gaming

    hey @TeamMex ! great to see you developing for our device. I remember your Xperience Rom was one of the first roms i flashed back in the day on the original moto G lol. looking forward to trying this kernel :)
    Nice :D

    Yesterday, I installed yuki kernel on my joyeuse phone, it was really strong but after flashing I haven't been able to use my hhd hard drive
    My device didn't recognize that
    So I forced to flash stock boot


    It is possible to update
    new curtana branch?

    Because aosp has a newer branch

    Rebased over LA.UM.8.9.r1-10600-SM6xx.0 (AOSP variant only)
    Merge Tag 'LA.UM.8.1.r1-16200-sm8150.0'
    Wifi, LA.UM.8.9.r1-10600-SM6xx.0 audio tag applied

    I would like to check if galileo and dual gps work.

    Because cortana has this kernel there is no galileo and dual gps.

    I do not have a lag system
    check the miatoll core to see if it can detect galileo indual gps

    ---------- Post added at 12:40 PM ---------- Previous post was at 12:34 PM ----------

    I am also joining the request

    Not needed to switch to new branch i merged it

    What about fix TTL feature?

    It should be working on the latest version.
    let me know if not.