[KERNEL][MIUI-MM/N] 28-06-2018 AGNi 🔥 pureMIUI-MM/N v13.0

7,483 posts
Thanks Meter: 17,891
By psndna88, Recognized Contributor on 24th September 2016, 02:48 PM
Post Reply Email Thread
(Audiophile's Blazing Fast & Efficient Kernel)

AGNi pureMIUI-MM/ N kernelAGNi pureMIUI kernelAGNi pureMIUI kernel


For android 6.0.x MIUI, 7.0 Ported MIUI :

AGNi Toolbox: HERE


General Improvements:
Built with custom UBERTC GCC 8.0.0
Enhanced compiler optimizations with device and target flags, build improvements, etc
Removed a ton of debug and logging to improve performance
ARM64 enhanced performance and battery patches
CVE security patches, general upstream and CAF fixes - upstreamed to Linux 3.10.108 and added patches from CAF LA.BR.1.3.6 & Android 8 release LA.BR.1.3.7
CPU & GPU Improvements:
Interactive governor tuned to achieve maximum performance with best battery life by default
Several CPU Governors available - Interactive, Blu_Active, CAF active, Cultivation, Darkness, ElementalX, Chill, Bioshock, Despair, Relaxed, Ironactive, Wheatley, ALUcard
Slight OC, mild undervolt to reduce heat and improve stability and battery life
Input boost off by default
Adreno Idler and Adrenoboost available
CPU and GPU Voltage control (optional)
Network improvements:
Implemented Wireguard VPN support usable with Azire VPN
Enhanced TCP methods - reno, htcp, highspeed, westwood+, CDG, Network and Wifi tweaks and updated drivers
Option to enable 2.4 GHz Wi-Fi channel bonding while installing => moved to AGNi Toolbox
I/O improvements:
Several I/O control tweaks, added schedulers (Zen, SIO, SIOplus, BFQ, CFQ, Maple, Tripndroid, Row, Deadline, V(R), No-OP,fiops), tweaked and updated filesystems (EXT4, F2FS, ExFAT, NTFS & CIFS)
Adaptive LMK, 1GB LZ4 ZSWAP+VNSWAP available and on by default for better multitasking
ext4-lazytime mounting for /data (improves filesystem performance)
UKSM while charging to optimize RAM use option
Dynamic FileSync toggle
Disabled I/O CRC check for more performance
Screen Improvements:
sRGB and KCAL - Advanced color control for Qualcomm MDSS v2 (RGB calibration and post-processing features)
Backlight dimmer for lower minimum brightness
Wake gestures, dt2w, s2s and s2w for all panels
Sound improvements:
modify headphone processing for increased fidelity
modify speaker processing for clarity
Implemented flar2 sound control along with Franco sound control
Slimbus OC for better sound quality
Added a lot of audio enhancements (heaven for audiophiles)
Fixed earpiece & mic boost
Ported hybrid headphone jack driver from Sony 3.18 with CAF patches for faster detection
Headphone impedance detection
Headphone mic volume boost
Fix earphone Jack's various problems
Battery improvements:
USB Fast Charge (USB mode up to 900mA with MTP on)
Boeffla Wakelock blocker available
Power efficient workqueues
Option to replace thermal blobs with old ones which may help to resolve slow charging issue while installing
Fast charging with maximum 2100mA safe limit with temperature control
Miscellaneous improvements:
Optimized hardware accelerated crc+crypto routines
Implemented lot of security fixes
Vibrator Strength tunable
Notification LED brightness options
Can use device as USB keyboard and mouse with the app by pelya
Option to select SElinux mode while installing
Compatibility with Magisk v14+ and SuperSU SR5
Compatible with Kernel Auditor and EX Kernel Manager
Spectrum app profiles support
AGNi improvements:
Custom Agni Control app for all your kernel control needs, has many useful CPU profiles and advanced options, available while installing
Custom Agni ScreenModes app which has various KCAL profiles to improve screen experience, available while installing
Works on all Marshmallow, Nougat and Oreo ROMs


AGNi pureMIUI-MM/N v13.0-
qdsp6v2: dts_eagle: use newer drivers
wcd9335: accept interrupts for huwifi mode
sound: wcd9335: add huwifi_mode & low_distort_amp mode
sound:codecs: wcd9335: remove impedl code
msm_audio_ion: add DTS-Eagle dependency - msm_audio_populate_upper_32_bits
sound: codecs: wcd9335: laster k's driver
slimbus: lower oc
sound: wcd9335: Disable g_DebugMode
Initial AudioWizard bringup
sound: DTS-Eagle integration
drivers: Initial import of DTS-Eagle driver
Kconfig: msm: remove deprecated dts eagle driver
revert: "ipv6: sctp: fix lockdep splat in sctp_v6_get_dst()
revert: "BACKPORT: ipv6: fix udpv6 sendmsg crash caused by too small MTU
revert: "BACKPORT: netlink: add a start callback for starting a netlink dump
revert: "ipsec: Fix aborted xfrm policy dump crash
revert: "BACKPORT: net: xfrm: support setting an output mark.
revert: "BACKPORT: net: ipv4: fix for a race condition in raw_sendmsg
AGNi Control: enable fsync operations by default
AGNi Installer: fix frequency hysteresis values

AGNi pureMIUI-MM/N v12.9-
New Additions:-
Merge caf/LA.BR.1.3.7_rb1.11
staging: prima: Merge caf/LA.BR.1.3.7_rb1.11
fs: Add sdfat support (msdos,fat16,vfat,exfat combined driver)
fs: sdfat: sync upstream
fs/proc: hide androidboot.selinux=permissive flag in /proc/cmdline
drivers/power: disable bcl
mm/vmscan: fix prepare_kswapd_sleep if kswapd running too long
ANDROID: sdcardfs: Set s_root to NULL after putting
ANDROID: sdcardfs: d_make_root calls iput
ANDROID: sdcardfs: Check for private data earlier
ANDROID: sdcardfs: Hold i_mutex for i_size_write
ANDROID: sdcardfs: Protect set_top
msm: mdss: adjust mdss_mdp_get_plane_sizes parameters init order
BACKPORT: futex: Remove requirement for lock_page() in get_futex_key()
UPSTREAM: scsi: sg: don't return bogus Sg_requests
ALSA: pcm: prevent UAF in snd_pcm_info
ALSA: pcm: use lock to protect substream runtime resource
ALSA: pcm: add locks for accessing runtime resource
ANDROID: sound: rawmidi: Hold lock around realloc
drivers: qdsp6v2: Add mutex unlock to properly release lock
binder: use GFP_HIGHUSER flag since binder is designed for userspace
Bluetooth: Prevent stack info leak from the EFS element
ASoC: msm: qdspv2: add mutex to prevent access same memory simultaneously
msm: ADSPRPC: validate user buffers after copying from user
dts: kenzo: disable sched_enable_power_aware
kgsl: convert some workqueues to use kthreads
kgsl: Increase priority of RT thread
msm: mdss: check buffer size before writing to user buffer
dtsi: adjust prim panel and panel-supply as per latest miui
kernel: disable arch_power by default & allow toggle
cpufreq: ironactive: add checks for CONFIG_SCHED_FREQ_INPUT
kernel/cgroup: fix permission checks for task group attach
kernel/workqueue: restore to older state
ANDROID: Bluetooth: hidp: buffer overflow in hidp_process_report
ipsec: Fix aborted xfrm policy dump crash
BACKPORT: msm: mdss: Fix invalid dma attachment during fb shutdown
msm: mdss: Fix for wrong length in copy_to_user
msm: sensor: actuator: fix out of bound read for region params
msm: sensor: actuator: check NULL pointer for actuator ctrl
revert: "msm: mdss: fix race condition between rotator api's
dts: fix big cluster max-corners
dts: restore 133,200,366MHz gpu freq steps
AGNi specific additions:-
AGNi Control: tweak impulse governor & other governor scripts
AGNi Control: add option DoubleTap2Wake+Swipe2Wake(^v,<>)+Swipe2Sleep
AGNi Installer: add gpu uv option
AGNi Installer: tweak scheduler
AGNi Installer: set 266MHz gpu freq as min default balanced spectrum profile
AGNi Installer: make rcu 3x aggressive RCU_FAST_NO_HZ for Battery profile
AGNi Installer: use modified thermal config [LOS-N/O]
AGNi Installer: always replace thermal engine without thermal libs [LOS-N/O]
AGNi Installer: fix goodix-netlink auto mode for NOS-Oreo [LOS-O]
AGNi Installer: add back option to replace thermal engine [LOS-N/O,MIUI-MM]

AGNi pureMIUI-MM/N v12.8-
aw8738_amp: change to mode 5
Disable graphite optimizations for sound,qdsp6v2
wcd-mbhc-v2: add more compatibility to jack's stock-mode operation
audio: add cmdline option for 16(default)/32bits default compr & pcm routing
ASoC: squashed revert to older state
slimbus: set max limit 24bit @ 192KHz
New Additions:-
prima(wifi): Merge caf/LA.BR.1.3.7_rb1.9 (v3.0.11.66 --> v3.0.11.85)
Merge caf/LA.BR.1.3.7_rb1.9
drivers/power: hardwire bcl trigger at 10% battery, disable for MIUI-N
cpufreq_stats,cpufreq_governor,cgroup,cpuset upstream commits
mm: kmemleak_alloc_percpu() should follow the gfp from per_alloc()
dm,md verity commits
qpnp-smbcharger: add cmdline option to suppress QC charging support @ 9 volts
Convert some more drivers to use msecs_to_jiffies insted of HZ
reboot_auto_fsync: flush writeback buffers and sync more completely
fsync: flush writeback buffers with auto fsync & sync-on-suspend
fsync: allow auto_fsync_delay_sec=0 to disabe AGNi auto fsync dwork
fs/sync: allow sdcardfs to use vfs_fsync_range_sdcardfs always
cpufreq: cafactive: disable tracing
workqueue: disable power_efficient wq's by default and allow sysfs tunable
block: modify fiops
proc: meminfo: provide estimated available memory
proc: meminfo: estimate available memory more conservatively
CHROMIUM: selinux: Do not log "permissive" denials
BACKPORT: net: ipv4: fix for a race condition in raw_sendmsg
BACKPORT: USB: core: harden cdc_parse_cdc_header
UPSTREAM: USB: fix out-of-bounds in usb_set_configuration
UPSTREAM: HID: usbhid: fix out-of-bounds bug
UPSTREAM: USB: core: fix out-of-bounds access bug in usb_get_bos_descriptor()
nl80211: Define policy for packet pattern attributes
crypto: hmac - require that the underlying hash algorithm is unkeyed
timers, sched_clock: Update timeout for clock wrap
cpu_input_boost: Use power efficient workqueues
cpu_input_boost: increase wakeboost to 2 seconds
dts: kgsl: remove 366MHz step, restore stock gpu voltages
qpnp-smbcharger: reintroduce default_hvdcp3_icl_ma tunable
qpnp-smbcharger: fix "make 2100mA max default charging current"
qpnp-fg: fix "force swappiness 1 on battery level <= 15%"
fs/exfat: partial revert "update exfat (squash commit)"
revert "sched: Set sched_upmigrate_min_nice to 9
revert "sched: Introduce Shadow scheduling
Revert "workqueue: make sure delayed work run in local cpu"
AGNi specific additions:-
AGNi Control: 2.0GHz unlock for big cluster cpus
AGNi Control: tweak cultivation governor
AGNi Control: disable adreno boost default
AGNi Control: tweak default interactive & scheduler
AGNi Control: TCP congestion cubic by default
AGNi Control: tweak cafactive governor
AGNi Control: add again those rare used governor options
AGNi Control: fixup fsync options
AGNi Control: increase default interactive timer, intsd(maple, 1024) extsd(fiops,1024)
AGNi Installer: restructure Aroma Menus to single page
AGNi Installer: remove discard mounts in fstab
AGNi Installer: latest arm64+selinux busybox YDS in /sbin
AGNi Installer: fix rare installer status 7 errors
AGNi Installer: try fix option to select stock cpu voltages
AGNi Installer: add cmdline option for audio 24/32bits audio
AGNi Installer: add option to select stock cpu voltages
AGNi Installer: set QC2.0 9v suppress disabled by default
AGNi Installer: always replace thermal engine & libs
AGNi Installer: disable stock recovery replace [MIUI-MM/N]
AGNi Installer: use fstrim on boot [LOS-N,MIUI-MM/N]
AGNi Installer: use goodix libs when selected [MIUI-MM]


Download the app for supporting this keyboard & mouse feature HERE


XDA:DevDB Information
AGNi kernel (Audiophile's Blazing Fast & Efficient Kernel), Kernel for the Xiaomi Redmi Note 3

Source Code:

Kernel Special Features: Based on caf/LA.BR.1.3.6_rb1.25,LA.BR.1.3.7_rb1.11, LOS15.0 official sources with selectively picked mods/patches

Version Information
Status: Stable

Created 2016-09-24
Last Updated 2018-06-28
The Following 140 Users Say Thank You to psndna88 For This Useful Post: [ View ] Gift psndna88 Ad-Free
24th September 2016, 02:48 PM |#2  
psndna88's Avatar
OP Recognized Contributor
Flag Mumbai
Thanks Meter: 17,891
Donate to Me
The Following 22 Users Say Thank You to psndna88 For This Useful Post: [ View ] Gift psndna88 Ad-Free
24th September 2016, 02:49 PM |#3  
psndna88's Avatar
OP Recognized Contributor
Flag Mumbai
Thanks Meter: 17,891
Donate to Me
The Following 20 Users Say Thank You to psndna88 For This Useful Post: [ View ] Gift psndna88 Ad-Free
24th September 2016, 02:53 PM |#5  
Thanks Meter: 40
Wil this work on RR or cm based roms??
24th September 2016, 02:58 PM |#6  
psndna88's Avatar
OP Recognized Contributor
Flag Mumbai
Thanks Meter: 17,891
Donate to Me
Originally Posted by rohit4kk

Wil this work on RR or cm based roms??

try this attachment:-
differently packaged miui marshmallow kernel .. it can boot.. though i have not tested on CM based roms.
Im yet to make one for them !
Attached Files
File Type: zip - [Click for QR Code] (10.26 MB, 3208 views)
The Following 10 Users Say Thank You to psndna88 For This Useful Post: [ View ] Gift psndna88 Ad-Free
24th September 2016, 02:58 PM |#7  
Sur'ya's Avatar
Thanks Meter: 7
More kernel touchwiz note move to miui 👍👍

Sent from my Redmi Note 3 using Tapatalk
The Following 2 Users Say Thank You to Sur'ya For This Useful Post: [ View ] Gift Sur'ya Ad-Free
24th September 2016, 03:07 PM |#8  
Senior Member
Flag Dhaka
Thanks Meter: 18
Thanks for the kernel. Does it support goodix sensor??
The Following 3 Users Say Thank You to Zrzahid For This Useful Post: [ View ] Gift Zrzahid Ad-Free
24th September 2016, 03:09 PM |#9  
psndna88's Avatar
OP Recognized Contributor
Flag Mumbai
Thanks Meter: 17,891
Donate to Me
Originally Posted by Zrzahid

Thanks for the kernel. Does it support goodix sensor??

the goodix driver is present.. let me know if it does or doesn't work..
The Following 4 Users Say Thank You to psndna88 For This Useful Post: [ View ] Gift psndna88 Ad-Free
24th September 2016, 03:18 PM |#11  
Senior Member
Flag Pune
Thanks Meter: 139
@psndna88 thanks 4 the kernel.. Btw i m using agni kernel in galaxy note 2 as well.. It is the most stable kernel i have used so far on note 2.. Hope this will be the case with kenzo kernel as well. Downloadin now.. Also a question does it really support exfat??? Cause miui has some issues??
The Following User Says Thank You to yogesh324 For This Useful Post: [ View ] Gift yogesh324 Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes