[Xiaomi Redmi Note 3 [Snapdragon] ROMs, Kernels, Re] psndna88:
AGNi pureLOS-N/O

(Audiophile's Blazing Fast & Efficient Kernel)​

[IMG="AGNi pureCM-N kernel"]http://s6.postimg.org/v3lh6glwt/agni_xda.jpg[/IMG][IMG="AGNi pureMIUI kernel"]http://s6.postimg.org/v3lh6glwt/agni_xda.jpg[/IMG][IMG="AGNi pureCM kernel"]http://s6.postimg.org/v3lh6glwt/agni_xda.jpg[/IMG]​

Join Telegram DISCUSSION & TESTING GROUP

AGNi Toolbox

:- GOTO 3rd POST HERE

For Android 7.x / 8.x LOS/AOSP

DOWNLOAD pureLOS-N/O kernel:- 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

Supports SDCARDFS, CIFS, exFAT

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 pureLOS CHANGELOG:-

AGNi pureLOS-N/O 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

disable CONFIG_IOMMU_AARCH64,CONFIG_ARM_SMMU

AGNi Control: enable fsync operations by default

AGNi Installer: fix frequency hysteresis values

AGNi pureLOS-N/O 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

enable HARDEN_BRANCH_PREDICTOR

disable SCHED_FREQ_INPUT

drivers/power: disable bcl

mm/vmscan: fix prepare_kswapd_sleep if kswapd running too long

Updates:-

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

Fixes:-

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 pureLOS-N/O v12.8:-

Audio:-

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

Updates:-

Disable discard mount early mount of system partition [LOS-O]

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

Fixes:-

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: allow auto-selinux handling based on last kernel [LOS-O]

AGNi Installer: resolve selinux issues leading to fp problems [LOS-N/O]

AGNi Installer: disable init.qcom.post_boot.sh [LOS-O]

AGNi Installer: use fstrim on boot [LOS-N,MIUI-MM/N]

OLD CHANGELOGS: HERE

Download the app for supporting this keyboard & mouse feature HERE

DOWNLOADS:- HERE

XDA:DevDB Information

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

Contributors

psndna88

Source Code: https://github.com/psndna88/AGNi_pureMIUI.git

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-10-02

Last Updated 2018-06-28