[Xiaomi Mi A2 Lite ROMs, Kernels, Recoveries, & Oth] eremitein:
=BUTTERFLY KERNEL=

Your warranty is now void!

We're 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

before flashing it! YOU are choosing to make these modifications, and if

you point the finger at us for messing up your device, we will laugh at you

​

Features:

Pie base: CAF & Prima Tag by LA.UM.7.6.r1-04500-89xx.0

Oreo base: CAF & Prima Tag by LA.UM.6.6.r1-11000-89xx.0

Legacy base: not updated pure sources from MiCode github

(prima tag LA.UM.7.6.r1-05500-89xx / LA.UM.6.6.r1-11300-89xx.0)

• KCAL color control

• Vibration intensity control

• Sound gain control

• Audio codec quality improved

• exFAT Support

• NTFS support

• F2FS support

• SquahFS support

• CIFS/SMB support

• Added CPU Hotplug (default disabled)

• Set lz4 for better zram work

• Boeffla wakelock blocker

• Added defaults rules for Boeffla wakelock blocker

• Disable vendor verify and set no verity

• CRC32: disable by default & enable toogle (average 30% I/O performance profit)

• Few patches from Franco kernel (disabled a lot of debugging stuff)

• Fsync: on/off support

• Battery deep optimisation: undervolting & additional tweaks

• Added Adreno Real Idler (supported turning it on/off)

• Improved interactive governor (patch from Franco kernel)

• Improved CPU boost, default is disabled (patch from Franco kernel)

• Improved conservative governor (patch from Franco kernel)

• I/O schedulers: noop, deadline, bfq, cfq (default), sio, fiops, maple, tripndroid, zen, anxiety, sioplus, fifo, v(r)

• Added CPU governors: darkness, zzmoove, relax, impulse, electron, nonconservative, lionheart, clarity, blu_active, yankactive, intelliactive, conservativex, ondemandx, interactivex, bioshock, darknessv5, alucard, smartmax_eps, pegasusq, lionfish, hyper, despair, barry_allen, xperience, alessa, chill, ondemandplus, ironactive, culvitation, tripndroid

• Added GPU governors: guardian, balanced, msm-adreno-plus

• TCP congestion algorithms: cubic, reno, westwood (default)

• Installer include fix for Wi-Fi SELinux permission

• Kernel installer also support custom ROMs

• GCam focus fix (thanks [MENTION=7366851]teftel1608[/MENTION] and [MENTION=5296790]33bca[/MENTION])

• GPU: clocks table reworked (lags free, performance grew). OC max gpu freq now is 725MHz

• Added WireGuard 0.0.20190601

• Fix for goodix-fp gestures on stock (thanks to [MENTION=9566519]artyom5613[/MENTION] & [MENTION=9992356]Broomber[/MENTION])

• Also in the v4 installer included fix fpc-fp gestures for the customs rom

now gestures for both fingerprints is are:

* swipe2right - paste text

* others like in rom's setting

(if you not like this - change it in the /system/usr/keylayout/uinput-*.kl)

• Memory & battery life optimization due config settings for kernel

• Added a block to wakelock from wifi

• I/O optimization

• Hide unlocked bootloader state (for apps like bank clients etc)

• Patches from Franco "mido" kernel for battery life improvement

• Added gpu Adreno simple algorithm (beast!!)

• Found a reason for which the CPU could for a long time not to raise the frequency to the maximum, it's all in the file /vendor/etc/thermal-engine.conf

See samples how to improve situation

• Compiled with GCC 9.1.0, which gave an increase in performance and speed of the kernel

• Reworked undervolting, battery lives even longer

• Added voltage control

• Maximum CPU frequency is now 2.4GHz

• EUOC version has a maximum GPU frequency of 750MHz

• added support for display status for CPU Hotplug & some schedulers

• all schedulers that have display status support:

alucard, chill, clarity, cultivation, darkness, electron, impulse, intelliactive, ironactive, nightmare, relaxed, anxiety-iosched and maple-iosched

• added drivers for few USB-Ethernet adapters

• added nightmare and dancedance CPU governors

• updated version with 2.2GHz overclocking

• removed the patch for hiding the bootloader state (there are more problems than good with it)

• new settings for a smooth interface in installer (applied for GSI only)

- DT2W fix for fts_ts [default disabled] (thanks [MENTION=5296790]33bca[/MENTION]) * tested on customs and GSIs. for latest maybe need to enable "Handwave gesture" in "Phh Treble Settings" > "Doze features" * #TODO

- Installer include Magisk preserve #TODO

<< download Pie v5.5 || download Pie v4.4 >>

<< download Oreo v5.5 || download Oreo v4.4 >>

undervolted (U) lower voltage for decrease overheat. also incredible battery saving

overclocked (OC) CPU max frequency is 2.4GHz, GPU max frequency is 725MHz

extra-overclocked (E) GPU max frequency is 750MHz (if you will face with graphical glitches - don't use it!)

Installations:

Backup boot.img, /system/lib/modules, /system/usr/keylayout and /vendor/lib/modules folders, /vendor/bin/init.qcom.post_boot.sh file if you want to go back

Flash Zip file with any TWRP recovery, wipe Dalvik cache, reboot and enjoy ^_^

Notice: if you have Magisk with modules installed maybe you'll get bootloop.

If you have Magisk don't need reinstall it after kernel because installer will save Magisk #TODO

Right way: if you have Magisk and modules - deinstall all. Then flash stock boot.img, then custom kernel, then other stuff like TWRP and Magisk.

Enough just dirty flashing kernel and then Magisk if you need it. All yours Magisk modules will preserved.

Issues:

- DT2W not work for fts_ts touchscreen

- tell me if find :)

XDA:DevDB Information

Butterfly kernel for Xiaomi Mi A2 Lite "daisy"

Contributors:

eremitein

Source Code:

https://github.com/eremitein/xiaomi_kernel_msm8953_daisy_butterfly

CREDITS:

All people, who made good code for this platform

Version Information

Status: Stable/Experimental

Release Date: 2019-04-15 (UTC +0)

Created: 2019-04-07

Last Updated: 2019-08-08

.