[KERNEL][4.4][PORTING][WIP] Linux 4.4 Kernel for Z2 Plus - Lenovo ZUK Z2 (Plus) ROMs, Kernels, Recoveries, &

Presenting the 4.4 Linux kernel successfully booting on our Z2 plus​
DISCLAIMER-> Do not clog the thread with bug reports which are already known, do not fight, be respectful
Background-​So the other day I got my lenovo a6000 exchanged for Z2 plus ^Windows XP Error sound plays^ and was roaming around the community groups and got in touch with @ZyxxeZ when @mrhacker5476 added me to his group, so then i planned about bringing TheRagingBeast Kernel to the z2 plus but felt pretty lazy and was clogged around with college stuffs, so we dropped the idea and thought about this 4.4 kernel and started working on it, so I and DmitriiKudas worked our azzess off and successfully booted it.
What Works currently-​
Boots
RIL
FingerPrint Sensor
Haptic Feedbacks
Proximity sensor
Calls are bugged a bit
Battery Gauge driver
USB gets detected but doesnt charge
Bugs-​
Camera
USB
Sound
Vol down, Power button [Press Home to wake Works]
Wifi drivers are not yet included in the source as its not our priority
Downloads->
https://transfer.sh/GiT7K/B00ty-4.4_z2_plus.zip
Notes->
1] The kernel currently only boots on Nougat and Old Tree OREO/PIE ROMs, don't complain if it doesnt boot on treble/new trees.
2]Do not copy paste the work anywhere else.
3]The kernel may take around 1-2 months to turn out as fully stable.
4]Some devices may face a "Blue Screen" after flashing the kernel, those users are advised to update their bootloaders via flashing latest QFIL Stock ROMs after that kernel will boot, confirmed by Dmitrii.
We appreciate any sort of contributions to the kernel, report bugs with proper kernel logs whenever you do.
Like our Work? Buy us a beer-
PM me here on XDA for more details on Donations.
XDA:DevDB Information
[KERNEL][4.4][PORTING][WIP] Linux 4.4 Kernel for Z2 Plus, Kernel for the Lenovo ZUK Z2 (Plus)
Contributors
[email protected]_, ZyxxeZ, sandeep.sethi
Source Code: https://github.com/varunhardgamer/z2_noU
Kernel Special Features:
Credits to->
Linus, Sony, and all the commiters in the source
Version Information
Status: Alpha
Created 2018-08-26
Last Updated 2018-08-26

Reserved #1

Reserved Just in case.

reserved again :/

Reserved for review

Thought I would never get to see kernel for our phone go past 4.. But here we are thanks to you.. We finally have 4.4.. A much needed improvement for SD820..
Dev @[email protected]_.. could you confirm this in the attachment?

Reserved for review

What was the current stable kernel version number?
And how could you do this?
And can this be ported to other sd820 devices like the le max 2

SteelBodyX said:
Thought I would never get to see kernel for our phone go past 4.. But here we are thanks to you.. We finally have 4.4.. A much needed improvement for SD820..
Dev @[email protected]_.. could you confirm this in the attachment?
Click to expand...
Click to collapse
Yep caf added sd820 officially to the list of socs which can boot 4.4 but as we know oems like lenovo don't care much, once the kernel stabilizes it will be showing an improvement in overall capabilities of sd820.

anuj.sharma said:
What was the current stable kernel version number?
And how could you do this?
And can this be ported to other sd820 devices like the le max 2
Click to expand...
Click to collapse
Z2 plus runs linux 3.18, and yep it can be done with other 8996 too

If the screen turns blue,can we boot into twrp recovery to clear everything or to flash other kernel?

Sdsahu101 said:
If the screen turns blue,can we boot into twrp recovery to clear everything or to flash other kernel?
Click to expand...
Click to collapse
Yep, just reboot back to twrp and flash ur usual kernel/rom, and consider updating your bootloader

Great work.

[email protected]_ said:
Yep caf added sd820 officially to the list of socs which can boot 4.4 but as we know oems like lenovo don't care much, once the kernel stabilizes it will be showing an improvement in overall capabilities of sd820.
Click to expand...
Click to collapse
That's very good.. I'll wait cause I'm using this phone for at least 2 more years.. Can't test it as it only supports Nougat for now and I'm in Oreo.. When it's bootable for Oreo, do change the thread.. I'll test it then

Outstanding work!

[email protected]_ said:
Yep, just reboot back to twrp and flash ur usual kernel/rom, and consider updating your bootloader
Click to expand...
Click to collapse
It broke my flashlight on miui 9.5

thread closed as per OP request
Edit
Thread re-opened

So most of us heard things regarding 4.4 on telegram groups, like Some other guy had helped us booting it, etc. etc. We already clarified that its our own pure work and also forwarded the guy's messages in the z2 groups, so its purely our work and people are advised not to spread fire on this thread.
Peace!

[email protected]_ said:
So most of us heard things regarding 4.4 on telegram groups, like Some other guy had helped us booting it, etc. etc. We already clarified that its our own pure work and also forwarded the guy's messages in the z2 groups, so its purely our work and people are advised not to spread fire on this thread.
Peace!
Click to expand...
Click to collapse
opps I saw my commits on your source code ?
Sent from my z2_plus using XDA Labs

faizauthar12 said:
opps I saw my commits on your source code
Sent from my z2_plus using XDA Labs
Click to expand...
Click to collapse
Sed

Related

[ROM] [LP5.1.1 r8] [UB] Rom Updated Jul 18 Paranoid Android Stable Unofficial

July 18: New build is up. This is LP 5.1.1 r.8
Latest PA changes
FM radio incorporated
Slim Launcher instead of Launcher3
All hardened features are in
Latest M5 kernel with voltage, kcal, sound, hotplug, multiple governors and TWRP
Download Link: http://forum.xda-developers.com/devdb/project/dl/?id=13577
P.S. Although, clean install is preferred, you may flash dirty if you are upgrading from the prior PA version. Still, to escape conflicts I would format everything including internal sd, then flash the rom, then flash Supersu, then do Xposed if you use it, then restore data partition that you previously backed up with TWRP, then reboot
______________________________________________________________________________________________________
Rom Updated on July 13. Latest changes. Also new kernel based on M5 with numerous governors/sound/kcal/voltage and others.
Download Link: http://forum.xda-developers.com/devdb/project/dl/?id=13516
Credit for kernel to Myself5
Kernel Source: https://github.com/AOSPME/android_kernel_sony_msm8974
_______________________________________________________________________________
Here is the latest Paranoid Andoird LP5.1 for Honami. Latest AOSP/Paranoid features.
My changes:
1. All security features including ciphers, random number generation, 256 bit encryption, SElinux out included
2, Kernel with sound, screen calibration, voltage, overclocking and TWRP
3. Evil IPs removed
4. WIFI background scanning disabled
5. Network selection is handled by System and you can set any available combination in Cell Networks and your selection will stick
6. VOLTE enabled, you are all set if and when your carrier offers the service
7. Camera mike sound fixed
8. Thermanger tweaked to prevent flickering
Instructions:
1. Full factory reset and separate wiping of System/Cache/Data
2. Flash the rom
3. Reboot and enjoy
Warnings: If your device dies or kills everybody in the vicinity, blame yourself. This is XDA, if you can't help yourself, stick with stock
Another Warning: Please no dumb questions in this thread, such as: where is my network, I am on C6902; where is my recovery; where is the gapps; No comments like this: great rom, except for one thing ; can you take a nose from DirtyUnicorns and stich it to this rom; oh, my god, the phone bootloops.. This rom boots and works. Also, no complaining about bugs without posting a readable logcat. Again, if you can't help yourself by reading, no one will help you. Can I support multi-rom? Never, multirom/kexec the way it is implemented on Android (by teenagers who have no concept of security) is a glaring security hole exposing your phone to multiple threats...
Download Link: http://forum.xda-developers.com/devdb/project/?id=10677#downloads
Credit: Paranoid Android and Myself5 for initial kernel sources
Kernel Sources: https://github.com/HonamiZ1/android_kernel_sony_msm8974
XDA:DevDB Information
Paranoid Android LP5.1 Unofficial, ROM for the Sony Xperia Z1
Contributors
optimumpro
Source Code: https://github.com/HonamiZ1/android_kernel_sony_msm8974
ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.4.x
ROM Firmware Required: Unlocked Bootloader
Based On: AOSP
Version Information
Status: Stable
Stable Release Date: 2015-07-06
Created 2015-07-06
Last Updated 2015-07-18
Reserved
Reserved
Reserved
Mine...
Subscribed...
Sent from my Xperia Z1 using Tapatalk
You planning to regularly updating this build ?
Rom updated
New build is up. See the OP.
Please don't expect nightly files, which make no sense. There will be at least monthly updates or so.
The kernel in this build allows for much deeper undervolting. I have been testing different values in the past 24 hours and here is what I have:
300mhz 720
422mhz 730
652mhz 745
729mhz 765
883mhz 785
960mhz 800
1036mhz 810
1190mhz 825
1267mhz 840
1497mhz 860
1574mhz 880
1728mhz 900
1958mhz 925
2150mhz 950
And it is stable. No issues. I use lionheart cpu governor, which is the most lag free.
This works for all Z1's correct?
hakkai999 said:
This works for all Z1's correct?
Click to expand...
Click to collapse
If you have c6902, then you have to apply the patch to have network. Otherwise - yes.
Alright I got it to work. So far so good. Smooth as butter. Battery life is amazing. The only thing I sadly miss is the ability to use native Sony apps. I wish the Play Store would still count the phone as Z1.
Does anybody know a port for the stock Sony apps? Testing the ROM now. Thanks
Enviado do meu C6903 usando XDA Forums
nArdow said:
Does anybody know a port for the stock Sony apps? Testing the ROM now. Thanks
Enviado do meu C6903 usando XDA Forums
Click to expand...
Click to collapse
As far as I know you can't port the Sony apps because you need the Sony framework to run them.
LSD DREAMER said:
As far as I know you can't port the Sony apps because you need the Sony framework to run them.
Click to expand...
Click to collapse
That sucks. I wanted the camera and its libraries because the camera in this is less than stellar.
hakkai999 said:
That sucks. I wanted the camera and its libraries because the camera in this is less than stellar.
Click to expand...
Click to collapse
There is a port for camera.
http://forum.xda-developers.com/showthread.php?t=3154772
nArdow said:
There is a port for camera.
http://forum.xda-developers.com/showthread.php?t=3154772
Click to expand...
Click to collapse
Which one should I use? Its only for Dirty Unicorn, Resurrection Remix and CrDroid.
hakkai999 said:
Which one should I use? Its only for Dirty Unicorn, Resurrection Remix and CrDroid.
Click to expand...
Click to collapse
I didn' tested it. Yet. But it should work with all AOSP ROMs. I'm going to test and report back here
Could you please take this discussion about taking a nose from one rom and stiching it to this rom somewhere else?
Look in cross device development...
optimumpro said:
Could you please take this discussion about taking a nose from one rom and stiching it to this rom somewhere else?
Look in cross device development...
Click to expand...
Click to collapse
Sorry, m8.
Here... I just realised that there is two files for download. What are the differences between both?
nArdow said:
Sorry, m8.
Here... I just realised that there is two files for download. What are the differences between both?
Click to expand...
Click to collapse
Look at the dates: the latest one is July 13. If you want to look at changes, go to
https://github.com/aospa-l
optimumpro said:
Could you please take this discussion about taking a nose from one rom and stiching it to this rom somewhere else?
Look in cross device development...
Click to expand...
Click to collapse
Sorryyyy just wanted to have a better camera. You could at least... you know... advise us what our alternatives are? I mean we do love the rom. Just that we would want some features added.

[DISCUSSIONS][TESTING][ROM][UNOFFICIAL] CyanogenMod 13 ALPHA Build

This is a test build I take no responsibility for what this may or may not do to your device.
Click to expand...
Click to collapse
NEED TESTERS
currently i don't have the device to test i will be getting my device in the next week .
Click to expand...
Click to collapse
1. Install CWM Recovery
2. Do Full Wipe If coming from another ROM
3. Flash ROM
4. Flash Google Apps (my recommendation is to install minipal gapps due to /system partition size limits)
5. Reboot
Click to expand...
Click to collapse
]Not Booting
Click to expand...
Click to collapse
Code:
[B]Source[/B]
Here are the device tree :
Device Tree (from cm13 Nexus 9) : https://github.com/vickdu31/android_device_xiaomi_mocha
Kernel Tree (from Xiaomi KK) : https://github.com/vickdu31/android_kernel_xiaomi_mocha
Vendor Tree (old Xiaomi KK) : https://github.com/vickdu31/android_vendor_xiaomi_mocha
Thank you
@faust93 for cwm
XDA:DevDB Information
CM-13, ROM for the Xiaomi Mi Pad
Contributors
Rohit99, tank0412, vickdu31
ROM OS Version: 6.0.x Marshmallow
Based On: CyanogenMod
Version Information
Status: Testing
Created 2016-12-10
Last Updated 2016-12-13
Reserved
Edit 1:initial build didn't boot for me, no adb can't get log
Ok im gonna try it.
If you want, i can leave logcat for you
OoSTARTERoO said:
Ok im gonna try it.
If you want, i can leave logcat for you
Click to expand...
Click to collapse
Can get logcat? Try please.
Ofc, it doesn't boot. And don't create threads without testing.
Sudeep Duhoon said:
Can get logcat? Try please.
Click to expand...
Click to collapse
unfortunately....I couldn't get logcat too...
Sudeep Duhoon said:
Can get logcat? Try please.
Click to expand...
Click to collapse
we can't get logcat. It doesn't boot, i mean there are problems with kernel or init scripts or both. Kernel needs patches.
Nihhaar said:
Ofc, it doesn't boot.
Click to expand...
Click to collapse
As I thought
Prebuilt kernel from cm11
Sudeep Duhoon said:
As I thought
Click to expand...
Click to collapse
hey can i use prebuilt kernel from cm11 source @Nihhaar
Rohit99 said:
hey can i use prebuilt kernel from cm11 source @Nihhaar
Click to expand...
Click to collapse
Always try to build kernel with source. I think you can't, but you can try.
Please edit the link in OP, its me who miswrote it... : /android_device_xioami_mocha --> /android_device_xiaomi_mocha
You need to fix up SELinux and the init scripts. Taking a shield tablet device tree, renaming things to mocha and changing the fstab isn't enough. As far as I can tell the shieldtablet device tree also has dependency on a shield common tree. There's also no value in creating a new thread each time you push new commits
Our kernel from Xiaomi is also pretty useless without commit history. The device tree is also from shield tablet, not Nexus 9.
We also have a tree for building TWRP with OmniROM that you can compile TWRP 3.0.2.0 with.
What kernel repo is upstream one for tegra android? Like CAF for quallcom.
I've tried to merge xiaomi changes on l4t kernel https://github.com/HighwayStar/android_kernel_xiaomi_mocha
Merged dts files and arch/boot/march-tegra with some required drivers, but still cant boot it. Found somewhere here that l4t kernels is not for android, but for GNU/Linux, but what kernel is for android?
Cyanogenmod's shield kernel?
highwaystar_ru said:
What kernel repo is upstream one for tegra android? Like CAF for quallcom.
I've tried to merge xiaomi changes on l4t kernel https://github.com/HighwayStar/android_kernel_xiaomi_mocha
Merged dts files and arch/boot/march-tegra with some required drivers, but still cant boot it. Found somewhere here that l4t kernels is not for android, but for GNU/Linux, but what kernel is for android?
Cyanogenmod's shield kernel?
Click to expand...
Click to collapse
git://nv-tegra.nvidia.com/linux-3.10.git
I used rel-tn8-l-r7-shieldtablet8 to make a start on doing this. You could also use android_kernel_shield from CyanogenMod repo as it comes from the same place. But it will have a lot of extra commits for things not useful for mocha.
Here's what I have so far:
https://github.com/harrynowl/nvidia_tegra-3.10
Harrynowl said:
git://nv-tegra.nvidia.com/linux-3.10.git
I used rel-tn8-l-r7-shieldtablet8 to make a start on doing this. You could also use android_kernel_shield from CyanogenMod repo as it comes from the same place. But it will have a lot of extra commits for things not useful for mocha.
Here's what I have so far:
https://github.com/harrynowl/nvidia_tegra-3.10
Click to expand...
Click to collapse
Oh, intresting, cloned same url, but started other branch l4t/l4t-r21.5.
What status of your tree? Cant boot? We need minimal bootable kernel to be able to get dmesg and make further progress.
highwaystar_ru said:
Oh, intresting, cloned same url, but started other branch l4t/l4t-r21.5.
What status of your tree? Cant boot? We need minimal bootable kernel to be able to get dmesg and make further progress.
Click to expand...
Click to collapse
Untested, been doing device bring up. That kernel won't work yet anyway it's missing atmel, synaptic and battery firmware. (Plus the code that goes with it)
Some devs have one that gets to recovery but only 1 CPU core can come online and the CPU gets a bit hot. Unfortunately their commit history is hard to follow so I've not had a proper look at it yet
My my...it's been a while since I've seen a cringe-worthy dev thread on XDA. So OP just used the device tree from Nexus 9 (a 64-bit device with a different processor and nothing in common with the Mi Pad other than the fact that they use Nvidia SoCs and are both tablets), unmodified KITKAT kernel sources from Xiaomi (which takes work to make it boot, even on KK) and KITKAT userspace blobs to compile the ROM, and for some reason decided to share it without testing. The 10-post rule is meant to keep such people out of the development sub-forums, but obviously that's not working.
I do not understand why the moderators are allowing this thread to remain open. It's just a thread by a wannabe dev offering a non-bootable ROM that has the potential to brick the devices of many newbies who may decide to try this.
This thread is even more useless than the other "DEVS-ONLY" thread someone else made. Honestly, the entire Mi Pad forum is filled with people who either expect Android 7.1.1 to magically appear on their tabs just because Xiaomi released outdated kernel sources or just wanna create threads like this for the "thanks or whatever". The never ask for ETA rule seems to just float over their heads.
Now to some useful information. I believe, even if we patch the kernel enough for it to theoretically boot cm13, it probably won't, considering the outdated userspace blobs for the Mi Pad. Unless someone has the knowledge to take their tab apart and figure out how to get UART data, it will be virtually impossible for the mi pad kernel to boot any new version of Android. I heard another interesting approach taken by some russian devs at the Xiaomi forums. They've managed to port the kernel from the Nvidia shield (and apparently it's booting). Now this would mean we can use the userspace blobs from the Shield to at least get the ROM booting (most peripherals won't work, but that's step 2). I do not know whether they use GitHub or if they've even open-sourced their work, but now we know that it's possible, so that could be a possible method of approach.
EDIT: LOL. I just read the OP again. The "dev" expects donations to help him work harder. This from a person who posted his way into somehow compiling his first Android build without even having the damn device.
drakonizer said:
My my...it's been a while since I've seen a cringe-worthy dev thread on XDA. So OP just used the device tree from Nexus 9 (a 64-bit device with a different processor and nothing in common with the Mi Pad other than the fact that they use Nvidia SoCs and are both tablets), unmodified KITKAT kernel sources from Xiaomi (which takes work to make it boot, even on KK) and KITKAT userspace blobs to compile the ROM, and for some reason decided to share it without testing. The 10-post rule is meant to keep such people out of the development sub-forums, but obviously that's not working.
I do not understand why the moderators are allowing this thread to remain open. It's just a thread by a wannabe dev offering a non-bootable ROM that has the potential to brick the devices of many newbies who may decide to try this.
This thread is even more useless than the other "DEVS-ONLY" thread someone else made. Honestly, the entire Mi Pad forum is filled with people who either expect Android 7.1.1 to magically appear on their tabs just because Xiaomi released outdated kernel sources or just wanna create threads like this for the "thanks or whatever". The never ask for ETA rule seems to just float over their heads.
Now to some useful information. I believe, even if we patch the kernel enough for it to theoretically boot cm13, it probably won't, considering the outdated userspace blobs for the Mi Pad. Unless someone has the knowledge to take their tab apart and figure out how to get UART data, it will be virtually impossible for the mi pad kernel to boot any new version of Android. I heard another interesting approach taken by some russian devs at the Xiaomi forums. They've managed to port the kernel from the Nvidia shield (and apparently it's booting). Now this would mean we can use the userspace blobs from the Shield to at least get the ROM booting (most peripherals won't work, but that's step 2). I do not know whether they use GitHub or if they've even open-sourced their work, but now we know that it's possible, so that could be a possible method of approach.
EDIT: LOL. I just read the OP again. The "dev" expects donations to help him work harder. This from a person who posted his way into somehow compiling his first Android build without even having the damn device.
Click to expand...
Click to collapse
I agree, this device has no development threads. Only 2 give me thanks and here's my donation link threads.
They have indeed used GitHub, but I don't believe they want to share the repo just yet so I won't post it publicly. It has many problems to sort and also sadly, they didn't keep the commit history from Nvidia as it was initialised via zip DL. It does boot to recovery though.
Harrynowl said:
I agree, this device has no development threads. Only 2 give me thanks and here's my donation link threads.
They have indeed used GitHub, but I don't believe they want to share the repo just yet so I won't post it publicly. It has many problems to sort and also sadly, they didn't keep the commit history from Nvidia as it was initialised via zip DL. It does boot to recovery though.
Click to expand...
Click to collapse
Oh! I didn't realize we were talking about the same person/team. I'd love to start developing for this device. In fact, I'm working on KEXEC-hardboot and Multirom right now, but I'd like to follow what you guys are doing and contribute as much as I can. Is there an IRC channel/IM app you guys use for communication? If so, I'd appreciate it if you could PM the info.

[KERNEL]Heliox [Z2 Plus][3.18.87]

A lot of users wanted a thread for the Heliox kernel, here it is finally
Nothing fancy, just a stable kernel for Z2 plus with upstream patches. The main aim is to keep it as close to stock as possible without any compromise. This is why I have not added any extra governors or such mods.
Also, this isn't a new kernel. It's been around for many weeks and lots of users are already happy with it. So it was time to share it with everyone
Download
https://www.androidfilehost.com/?w=files&flid=215632
GDrive release folder (Since AFH is a bit unreliable for now)
Special thanks to @davidevinavil for the base for this kernel
@DD3Boh for his Anykernel2 repo
XDA:DevDB Information
[KERNEL]Heliox [Z2 Plus][3.18.87], ROM for the Lenovo ZUK Z2 (Plus)
Contributors
Subhrajyoti Sen
Source Code: https://github.com/SubhrajyotiSen/android_kernel_zuk_z2/tree/n7x-caf
ROM OS Version: 2.3.x Gingerbread
Version Information
Status: Stable
Created 2017-09-15
Last Updated 2017-12-14
Reserved
Best kernel.
Is it working with AICP?
Nice to see you creating seperate thread for it. I have been using it since almost 2-3 weeks on AICP.
Must tell so far so awesome. Better than few other I have tried.
Thanks and Keep up.
Sent from my Z2 Plus using XDA Labs
abhimanyu.singh said:
Nice to see you creating seperate thread for it. I have been using it since almost 2-3 weeks on AICP.
Must tell so far so awesome. Better than few other I have tried.
Thanks and Keep up.
Click to expand...
Click to collapse
Does it has updated camera blobs?
You can refer the attachment..
prasant737 said:
Does it has updated camera blobs?
You can refer the attachment..
Click to expand...
Click to collapse
I'm not much bothered about new/old libs.
I'm not sure how to check and tell. Only Dev could tell that.
Sent from my Z2 Plus using XDA Labs
prasant737 said:
Does it has updated camera blobs?
You can refer the attachment..
Click to expand...
Click to collapse
Yes, it does have support for the new camera blobs.
Thanks and keep up the work :good:
Latest AEX supported I guess, right?
WiFi does not work with aex 24 July build.
greatcoder said:
WiFi does not work with aex 24 July build.
Click to expand...
Click to collapse
Can anyone confirm if they are facing the same issue on other ROMs too? I tested it on my Validus build and it's working fine.
RessurectionRemix Nougat
WIFI wont work, can't switch on or off, only info "no wifi networks"
Okay guys! The wifi issue seems to be across ROMs. I'll look into it and update ASAP
Subhrajyoti Sen said:
Can anyone confirm if they are facing the same issue on other ROMs too? I tested it on my Validus build and it's working fine.
Click to expand...
Click to collapse
Same issue here
Its good but i would request to add atleast darkness governer for battery saving. Thnaks.
Subhrajyoti Sen said:
Okay guys! The wifi issue seems to be across ROMs. I'll look into it and update ASAP
Click to expand...
Click to collapse
I tried latest on AICP but it's having WiFi issues. But 23rd August beta build is working very fine.
Sent from my Z2 Plus using XDA Labs
dirty flash the rom you are using flash then kernel and then boot. this might solve the wifi issue. rom then gapps, wipe cache, flash kernel boot
I tried everything, still no WiFi
Wifi
The kernel is breaking wifi in all the roms I flashed it on.

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

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
Reserved
Reserved
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
@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.
I really appreciate your effort 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
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
@xNombre What is the reason behind choosing 4.4 instead of a newer LTS version like 4.9 or 4.14? Or was the decision out of your hands?
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.
xNombre said:
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.
Click to expand...
Click to collapse
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.
xNombre said:
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.
Click to expand...
Click to collapse
Lots of love for 4.4 kernel.
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?
Thank you for your work. This is quite big actually.
Thx
Myxomatom said:
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?
Click to expand...
Click to collapse
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.
great job, it heats a lot less than the miui .. today it's only the first day but it seems to me that the battery lasts much longer !!
bido1 said:
great job, it heats a lot less than the miui .. today it's only the first day but it seems to me that the battery lasts much longer !!
Click to expand...
Click to collapse
yeah ... been using it for the last 3 days ... the battery performance is better than the official one without any tweak
can't flash it under lineage-16.0-20190809-nightly-gemini-signed.zip. error code: 7. any clue why?
netrixken said:
can't flash it under lineage-16.0-20190809-nightly-gemini-signed.zip. error code: 7. any clue why?
Click to expand...
Click to collapse
Are you using TWRP provided in first post?

LineageOS 17.1 - Xiaomi A2 Lite - Development Only

I have some previous experience building rom from the WIko Wax and the Huawei P8.
I run the Xiaomi A2 Lite as my daily driver, so I can't afford to test this ROM.
I do not know if this will even boot. As I said, I need you members of this forum to test this and tell me what works and the ROM's performance.
This ROM is based on LineageOS 17.1, so that is Android 10.
With a bit of luck this should work out of the box. It is here, that I should thank the pople from the Team Potato here https://forum.xda-developers.com/mi-a2-lite/development/10-0-posp-v3-q-daisy-t4011191 They are the ones who made most of the work to bring Android 10 to this device. I have just modified it a bit. Once again, props to them.
And here are the links to the different versions:
Version 0.1
No device audio
No camera
Link V0.1
Version 0.2
LED not working when charging
Fixed Camera
Fixed Audio
Link V0.2
Version 0.2.1
Fixed LED
Link V0.2.1
Version 0.3
More breaking than fixing
Wireless display fixed
Link V0.3
Version 0.5
Everything should be fixed now
OTA crashes whe nhitting install
Link V0.5
Version 0.6
Uses right microphone for camcorder
Link V0.6
Version 0.7
Fixed wireless display
Fix decoder.avc errors
Build tinymix
Build libldacBT_dec
Link V0.7
Version 0.8
Everything should work
Stable flashlight behaviour
Fixed green camera tint in low light
Link V0.8
Version 0.9
Camera switching fixed
Everything works
Working OTA
Link V0.9
Version 0.9.1
Fixed back video recording
Link V0.9.1
Version 0.9.5
Fixed flash issue
Should be bug-free
Link V0.9.5
Version 0.9.5.1
Fixes GCAM
Link V0.9.5.1
Version 1.0
Everything is stable now
New HAL1/HAL3 switch
Link V1.0
Always latest url: https://github.com/a-huk/otaserver/releases/download/09/lineage-17.1-20201115-UNOFFICIAL-daisy.zip
It is a zip, I suppose that it will be possible to flash it through TWRP, just clean flash as much as possible. I am not responsible for any harm this may do to your devices.
Again, please only post with feedback on the ROM, logcats would be useful as well or some benchmarks. I would like to make this stable and if possible official with Lineage. I know this forum is a mess, but again it is only for development. I will make propper one if this ever works. I need testers, thanks in advance. And props to the Potato Team
XDA:DevDB Information
LineageOS 17.1, ROM for the Xiaomi Mi A2 Lite
Contributors
reujea0
Source Code: https://github.com/a-huk/device_xiaomi_daisy
ROM OS Version: Android 10
Based On: LineageOS
Version Information
Status: Beta
Created 2020-04-02
Last Updated 2020-04-04
It boots, it runs great. No audio of any kind and camera (stock and GCam) not working. So far..
In any case, thanks for the rom and fast delivery.
Sorry, BT and headphones audio works for music and notifications.
celrau said:
It boots, it runs great. No audio of any kind and camera (stock and GCam) not working. So far..
In any case, thanks for the rom and fast delivery.
Sorry, BT and headphones audio works for music and notifications.
Click to expand...
Click to collapse
Thanks for the quick logcat
I will try and fix these, in the meantime, could you try this app https://play.google.com/store/apps/details?id=com.footej.camera2?
reujea0 said:
could you try this app https://play.google.com/store/apps/details?id=com.footej.camera2?
Click to expand...
Click to collapse
I tested camera with a camera app "vanilla" camera2 and it's not working..
reujea0 said:
Wew building for a wiko phone must have been a pain in the ass welp welcome in the community and good luck
~ Lacia
Click to expand...
Click to collapse
lacia-chan said:
reujea0 said:
Wew building for a wiko phone must have been a pain in the ass welp welcome in the community and good luck
~ Lacia
Click to expand...
Click to collapse
Yeah, plus that one was based off a Nvidia SOC
Click to expand...
Click to collapse
celrau said:
I tested camera with a camera app "vanilla" camera2 and it's not working..
Click to expand...
Click to collapse
Second testing version was released 0.2, see the link above
reujea0 said:
Second testing version was released 0.2, see the link above
Click to expand...
Click to collapse
heyo,
I have a few things to say:
- Your bringup is a mess
- Do your bringup on these trees https://github.com/PotatoDevices/device_xiaomi_daisy/tree/6180e3d5870834981e5f41424014047038ca235c
https://github.com/PotatoDevices/vendor_xiaomi_daisy
That will fix audio and cam
Thank you so much for your work. Imma fan of Lineage since the beginning and would prefer it over stock rom.
I dont want to be rude or anything but your bringup is quite a mess in my eyes and why is audio and **** not working for you since almost everything works fine here besides the wifi dsplay and fm radio
Click to expand...
Click to collapse
WTF!? It's for testing purposes only as OT says. Maybe u can contribute and help solving those issues?
reujea0 said:
Second testing version was released 0.2, see the link above
Click to expand...
Click to collapse
Everything I've tested works now, thanks for prompt delivery.
celrau said:
Everything I've tested works now, thanks for prompt delivery.
Click to expand...
Click to collapse
Sick, could you test some more things, like sd, calls, LTE, and run an ANTUTU benchark?
reujea0 said:
Sick, could you test some more things, like sd, calls, LTE, and run an ANTUTU benchark?
Click to expand...
Click to collapse
SD card works, calls I just tested with my other phone, LTE later since I don't have it at my current location. GPS works pretty good. I never used ANTUTU but will give it a try later.
---------- Post added at 11:34 AM ---------- Previous post was at 11:19 AM ----------
Notification/charging light not working
Cappucinto said:
Thank you so much for your work. Imma fan of Lineage since the beginning and would prefer it over stock rom.
WTF!? It's for testing purposes only as OT says. Maybe u can contribute and help solving those issues?
Click to expand...
Click to collapse
XD, I took a look at his commits and they looked like a mess and i linked him to my updated trees that have the audio and cam issue solved so next time read further into the message instead of trying to become a white knight thanks
lacia-chan said:
XD, I took a look at his commits and they looked like a mess and i linked him to my updated trees that have the audio and cam issue solved so next time read further into the message instead of trying to become a white knight thanks
Click to expand...
Click to collapse
Yeah they are a mess, getting started ?, haven't done this in a while. Yeah, this is pretty much your tree with your latest commits and some changes to convert it to a lineage tree. I also ignore neverallows to let the build finish. I will have to eventually deal with them to make it into an official build. In the meantime I plan on hosting an OTA server on my own. I am not hiding that most of this is your work, it is forked and I thank the POSP team and other devs who worked on the A2 Lite, thanks again. I just prefer LOS and there seems to be demand for it so I'm here trying to build it.
I don't think that there is a need for anyone to argue, we all have the same phone, more ROMs are always welcome and merit should be given where it is due, which I think has been done.
I will make another post in the following days, where everything is properly outlined with some more explanations.
reujea0 said:
Yeah they are a mess, getting started , haven't done this in a while. Yeah, this is pretty much your tree with your latest commits and some changes to convert it to a lineage tree. I also ignore neverallows to let the build finish. I will have to eventually deal with them to make it into an official build. In the meantime I plan on hosting an OTA server on my own. I am not hiding that most of this is your work, it is forked and I thank the POSP team and other devs who worked on the A2 Lite, thanks again. I just prefer LOS and there seems to be demand for it so I'm here trying to build it.
I don't think that there is a need for anyone to argue, we all have the same phone, more ROMs are always welcome and merit should be given where it is due, which I think has been done.
I will make another post in the following days, where everything is properly outlined with some more explanations.
Click to expand...
Click to collapse
oh no you got me wrong, Your credits were alrights its just that your source is a mess and that trees i linked have the issues like cam and audio fixed and nope more roms is not a great idea because we had a buildbot apocalypse earlier during the pie days we had like 42 roms at that point
That's awesome news @reujea0, congratulations!
LineageOS is all I need for this phone.
I'll move to this ROM as soon as it gets close to official (I use it as my daily driver).
lacia-chan said:
oh no you got me wrong, Your credits were alrights its just that your source is a mess and that trees i linked have the issues like cam and audio fixed and nope more roms is not a great idea because we had a buildbot apocalypse earlier during the pie days we had like 42 roms at that point
Click to expand...
Click to collapse
Yeah, can completely agree with this, but tbh I feel like Los is a must for any phone. I'm not saying that it is better/worse than other ROMs but anyone in the scene knows it and most of them are stable and close to AOSP.
reujea0 said:
Sick, could you test some more things, like sd, calls, LTE, and run an ANTUTU benchark?
Click to expand...
Click to collapse
LTE works fine
---------- Post added at 05:32 PM ---------- Previous post was at 05:20 PM ----------
lacia-chan said:
XD, I took a look at his commits and they looked like a mess and i linked him to my updated trees that have the audio and cam issue solved so next time read further into the message instead of trying to become a white knight thanks
Click to expand...
Click to collapse
Your intervention, well intended as you say it was should have been private, otherwise it is what it looks like.
---------- Post added at 06:26 PM ---------- Previous post was at 05:32 PM ----------
Please enable signature spoofing for MicroG
LineageOS still my favorite ROM.
Well, hope will be official soon.
EDIT : Could you please share the change log if the update is released ?
1st of all thank you so much, for starting this missing project, this afternoon i'll report more!
1. ZIP wouldnt install through TWRP (error: to Edit later) (deleted System/Data/Cache Stuff, from Android 9), so unpacked payload.bin, and flashed manually in fastboot from stock 9.
2. One permission which is needed for MicroG with Playstore (no gapps) I think something like certificate/signing spoofing is missing. (Specify later)
Besides that feels quite stable, safety net passed with opengapps/magisk, can comfirm wifi, camera, sound works. Noticed nothing wrong, will test more today, right now writing in this Rom!
Someone asked for antutu Benchmark? Could not run it, inside the tutorial the "which OS are you using" wasnt clickable, probably because off the app itself? But:
3D Mark
853 points - my A2 Lite LOS 17.1 > 56% than other A2 Lite's
(Average)

Categories

Resources