• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM][4.4][UNOFFICIAL] LineageOS 16.0 with 4.4 kernel

xNombre

Senior Member
Apr 18, 2015
240
680
93
LineageOS 16.0 for Xiaomi Mi 5 with 4.4 kernel

Remember this is a beta release, althought I've been using it for more than a week and it's working perfectly.
If you experience any bugs, panics or so, please report full logs to me (logcat and dmesg, you can look in /sys/fs/pstore)

Installation:
You can flash it on top of OFFICIAL 3.18 LOS also you can always go back within a dirty flash.
For safety reasons always perform a backup of your important data!

Features:
This is well-known LOS, none of the functionalities have been altered.
Build is running 4.4.189 kernel with many improvements over 3.18, it will keep this device alive for upcoming Android releases.
Kernel is suited with initial bug fixes, however, it's a stock kernel without any advanced tweaks. It's built with CLANG (!).

Working:
Probably everything!

Not working:
Kernel is permissive

Temporary MTP fix (I didn't have enough time to investigate it well):
Developer settings -> Default USB conf -> MTP -> connect cable -> profit

READ ONLY IF YOUR DEVICE IS ENCRYPTED:
There is an incompatibility between 3.18 and 4.4 kernels, you have to flash new TWRP with 4.4 kernel, otherwise your data partition will be DAMAGED!
Nevertheless there could be a need to full wipe your /data (magic Format Data button in TWRP) so perform a FULL BACKUP.

Download:
LineageOS zip
TWRP

Future development:
Device tree will be created from scratch over new Qualcomm tag to get rid of old junk. Full Treble compability will be provided.
More kernel bug fixes
Vendor update

FAQ:
Can I install XXX ? Does it support XXX ?
- It's still LOS, it supports everything what stock LOS does.
Can't you ship kernel package only?
- No, ROM has to be modified to meet 4.4 requriements. You can't flash 4.4 kernel on top of 3.18 ROM.
But why 4.4? Do I need it?
- More fixes, more performance, more support. If you want, search for kernel changelog.
EAS?
- Not now, there are more important things to work on.

If you want to buy me a coffee, please consider donating, I've put much effort to make it working.
DONATE

Join Mi5 group on Telegram

Huge thanks to Zuk kernel team for initial 4.4 support!

Credits:
@DD3Boh
@YaroST12
@kenny3fcb
@Luk1337 - fix for USB
@Jawor245 - random stuff
@RadixCube

XDA:DevDB Information
LineageOS 16.0 with 4.4 kernel, ROM for the Xiaomi Mi 5

Contributors
xNombre
Source Code: https://github.com/xNombre/msm-4.4

ROM OS Version: 9.x Pie
ROM Kernel: Linux 4.x

Version Information
Status: Beta

Created 2019-09-01
Last Updated 2019-09-01
 

nebik

Senior Member
Dec 11, 2010
54
19
8
In Antutu 7.2.3 tested fresh, stock LOS + nano gapps and fresh this rom + nano gapps on my 32Gb version. Biggest improvement for my device is memory +22% in Antutu points.
Stock: 144 086 overall
CPU: 50 420
GPU: 53 892
UX: 34 159
MEM: 5 615

4.4 LOS: 148 079 overall
CPU: 50 600
GPU: 54 615
UX: 35 657
MEM: 7 207
 
Last edited:

dev>null

Senior Member
Mar 7, 2013
836
718
93
@xNombre great job!
I'll be testing your ROM in the future for sure. Looks very promising.
It would be great if you pulled the Floppy Kernel mods to tweak your 4.4 kernel ;)
(Just my wish)
However, congratulations man.
 

shashanksinghal

Senior Member
Jun 2, 2013
112
19
0
I really appreciate your effort :svetius: I would love to test your ROM :) But I only want to know 2 things before if someone can help.

1. Can I use it as daily driver?
2. Android Auto is working?
3. Will I need to do clean flash for future updates? Atleast for couple weeks.

Thanks
 

xNombre

Senior Member
Apr 18, 2015
240
680
93
I'm using it for two weeks and no problems here.
If Android Auto is working on official LOS it will for for mine, too.
Nope, not for now.

#edit
Here is the new kernel you can flash on top of my LOS. (DON'T FLASH IT ON ANYTHING ELSE)
https://androidfilehost.com/?fid=1899786940962575411

Changelog:
add exFAT and NTFS
fix problems with wakelocks
use LZ4 for ZRAM
debloat a bit
skip sync for better battery
 
Last edited:

xNombre

Senior Member
Apr 18, 2015
240
680
93
Damn, do you think it's easy to port it on 4.14? For small group of users? Totally for free?
Two devices were fried with 4.9 kernel test version and in result I've spent many many hours of work for nothing.
Och, and remember, I had to buy a new mobo to restore my dd.

msm8996 has official support of 4.4 kernel and that's enough. I won't go any further, even if it's possible.
 

andy356

Elite Member
Jul 5, 2016
1,279
552
113
Damn, do you think it's easy to port it on 4.14? For small group of users? Totally for free?
Two devices were fried with 4.9 kernel test version and in result I've spent many many hours of work for nothing.
Och, and remember, I had to buy a new mobo to restore my dd.

msm8996 has official support of 4.4 kernel and that's enough. I won't go any further, even if it's possible.
Whoa, calm down, mate. I just wanted to know the rationale. Knowing that msm8996 supports 4.4 is good enough for me. :good:

Sorry to hear about the two damaged devices, though. That must have been extremely frustrating.
 

chandonmiaxda

Senior Member
Mar 26, 2016
76
11
0
Damn, do you think it's easy to port it on 4.14? For small group of users? Totally for free?
Two devices were fried with 4.9 kernel test version and in result I've spent many many hours of work for nothing.
Och, and remember, I had to buy a new mobo to restore my dd.

msm8996 has official support of 4.4 kernel and that's enough. I won't go any further, even if it's possible.
Lots of love for 4.4 kernel.
 

Myxomatom

Member
Sep 28, 2012
18
4
0
Hello

Thanks for this amazing work.

I have a question (probably stupid) will voWifi work better than with a 3.18 kernel or there is no relationship between kernel and voWifi?
 
Last edited:

xNombre

Senior Member
Apr 18, 2015
240
680
93
Hello

Thanks for this amazing work.

I have a question (probably stupid) will voWifi work better than with a 3.18 kernel or there is no relationship between kernel and voWifi?
There it no correlation between kernel and RIL. No changes here. Maaybe sth nice will happen with new vendor blobs but you have to wait for it.
 
  • Like
Reactions: Myxomatom