[Discontinued] [ROM][OFFICIAL] LineageOS 16.0 - Xiaomi Mi 8

Search This thread

infrag

Senior Member
Sep 3, 2008
1,678
4,455
Perth
https%3A%2F%2Fimg.xda-cdn.com%2Fy-LtXHGCDBH0KxFw9MxWAPF3guk%3D%2Fhttp%253A%252F%252Fi.imgur.com%252F2okPze5.png

LineageOS is a free, community built, aftermarket firmware distribution of Android 9 (Pie), which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

Base source code is available in the LineageOS Github repo. And if you would like to contribute to the project, please visit our Gerrit Code Review.

GPL compliance:


Device tree source code: LineageOS/android_device_xiaomi_dipper
Kernel source code: https://github.com/LineageOS/android_kernel_xiaomi_sdm845

Working:
Camera (and flashlight)
IR Camera
WiFi
NFC
Bluetooth
Telephony (Calls and Data)
Audio (Record and Playback)
Video Playback
Sensors
GPS
HW crypto (FBE)

To make Google Pay work there is currently a .zip that need to be flashed as shown in the post below:
https://forum.xda-developers.com/showpost.php?p=79672865&postcount=2284

Compatibility:
Compatible with Xiaomi Mi 8
Builds are based off the Xiaomi's Android 9 firmware with proprietary blobs.
Downloads:
Official download links: https://download.lineageos.org/dipper

Notice:
No custom kernels are supported in this thread. Only stock kernel and official builds will be supported. No bug reports if that's not the case.

Installation:
Reboot to recovery (TWRP recovery for Mi 8)
Format /system, /data and /cache
Install MIUI P based firmware.
Install LineageOS zip package
Install [optional] a Google Apps package of your choice (Open GApps is advisable, but stock and super variants are not recommended!!!)

Important notes:
* Required * firmware version must be based on MIUI P-based builds.
GApps can only be flashed on clean installs.
Formatting data (all user data is wiped, including internal storage) is a must if MIUI was previously installed and device was encrypted.
Credits & collaborations:
bgcngm
infrag
joe2k01
All LineageOS team would like to thank everyone involved in helping with testing, coding, debugging & documenting! Enjoy!



Unofficial Builds:
Build 17/08/2019
https://drive.google.com/open?id=1evOopo9SgAC_fAQilbNovaVkBKF0mgzb




TWRP 3.3.0.0:
Build 05/06/2019
Build on Android 9.0 TWRP sources

https://drive.google.com/open?id=1OcmasmRO1athTFL5zvy-vgytMtDHMfwT
 
Last edited:

sheg0

Senior Member
Nov 20, 2010
80
11
Damn you´re fast. Nice job.
What are the requirements for firmware?
-->
Firmware required:
Blobs from 8.9.20 miui beta
Means 8.9.20 has to be installed before?
 
Last edited:

nono77240

Senior Member
Mar 18, 2011
173
26
OnePlus 8
Ok,

For now I didn't test everything but I have no In call sound.
Through headphone, speaker phone or high speaker.

Rest seems ok, Wifi and everything else worked.
Can't test bluetooth for now.
 

Flawn

Senior Member
Apr 8, 2016
174
37
Ffm 069
Github link?

---------- Post added at 02:43 PM ---------- Previous post was at 02:40 PM ----------

hey, just asking, do you know in which commit the sound driver have been added to the kernel source, because then the sound in the sphinx kernel would be fixed too
 
  • Like
Reactions: milouk

argraur

Recognized Developer
You are right. I had tried that and it worked.
However thats now how it should have to be I believe so therefore I didnt list it as an option :)
Also, I unpacked your build, can't see classes.dex in /system/framework/com.nxp.nfc.nq.jar, there are no /system/framework/oat/arm64/com.nxp.nfc.nq.vdex as well.

UPD: All shared libs and apps you copied from MIUI lack classes.dex (QtiTelephonyService, QtiSystemService, NQNfcNci, qcrilhook, QtiTelephonyServicelibrary and etc...). Because of that your in-call audio doesn't work
 
Last edited:

tharonny

Senior Member
Feb 18, 2013
91
26
Xiaomi Mi 8
Could someone clearify something for me. Everywhere I read about MIUI versions like 8.9.20 (the one you mentioned in the first post).
Currently I'm running xiaomi.eu_multi_MI8_V10.0.4.0.OEACNFH_v10-8.1 with getvar anti Failed status. This is a completely different version if understand it well?

At the time I am happy with the rom I'm using, but could someone mention what I should install to get this rom working in the (perhaps nearby) future for me?
@infrag: Great job man!

Edit: Figured out that I have to flash the global MIUI rom, this contains version 8.9.20
 
Last edited:

infrag

Senior Member
Sep 3, 2008
1,678
4,455
Perth
Also, I unpacked your build, can't see classes.dex in /system/framework/com.nxp.nfc.nq.jar, there are no /system/framework/oat/arm64/com.nxp.nfc.nq.vdex as well.

UPD: All shared libs and apps you copied from MIUI lack classes.dex (QtiTelephonyService, QtiSystemService, NQNfcNci, qcrilhook, QtiTelephonyServicelibrary and etc...). Because of that your in-call audio doesn't work

Thanks for your analysis :laugh:
Yes extracting the jars/apks all failed as you've shown. Didn't have time to fix it.

The NFC stuff is because lineage doesn't support NXP NFC yet so therefore I didn't bother adding it all as it wouldn't work straight away anyway. Hopefully I can get the extra lineage stuff for it working next build.
 

coverdu33

Member
Aug 2, 2017
12
6
Impressive Job! So fast

Bug I noticed :
BT audio
Call audio
And notch padding bottom in domes apps webview/site.

Thank very much
 

BlinkDominik

Member
May 17, 2017
11
0
Edinburgh
Hi three i just get my mi8 and runing miui 10.0.2.0 global version witch i dont like its any way i can change my rom for linageos . Can you tell my how to do this please thank you... Dominik
 

Top Liked Posts

  • There are no posts matching your filters.
  • 98
    https%3A%2F%2Fimg.xda-cdn.com%2Fy-LtXHGCDBH0KxFw9MxWAPF3guk%3D%2Fhttp%253A%252F%252Fi.imgur.com%252F2okPze5.png

    LineageOS is a free, community built, aftermarket firmware distribution of Android 9 (Pie), which is designed to increase performance and reliability over stock Android for your device.

    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    Base source code is available in the LineageOS Github repo. And if you would like to contribute to the project, please visit our Gerrit Code Review.

    GPL compliance:


    Device tree source code: LineageOS/android_device_xiaomi_dipper
    Kernel source code: https://github.com/LineageOS/android_kernel_xiaomi_sdm845

    Working:
    Camera (and flashlight)
    IR Camera
    WiFi
    NFC
    Bluetooth
    Telephony (Calls and Data)
    Audio (Record and Playback)
    Video Playback
    Sensors
    GPS
    HW crypto (FBE)

    To make Google Pay work there is currently a .zip that need to be flashed as shown in the post below:
    https://forum.xda-developers.com/showpost.php?p=79672865&postcount=2284

    Compatibility:
    Compatible with Xiaomi Mi 8
    Builds are based off the Xiaomi's Android 9 firmware with proprietary blobs.
    Downloads:
    Official download links: https://download.lineageos.org/dipper

    Notice:
    No custom kernels are supported in this thread. Only stock kernel and official builds will be supported. No bug reports if that's not the case.

    Installation:
    Reboot to recovery (TWRP recovery for Mi 8)
    Format /system, /data and /cache
    Install MIUI P based firmware.
    Install LineageOS zip package
    Install [optional] a Google Apps package of your choice (Open GApps is advisable, but stock and super variants are not recommended!!!)

    Important notes:
    * Required * firmware version must be based on MIUI P-based builds.
    GApps can only be flashed on clean installs.
    Formatting data (all user data is wiped, including internal storage) is a must if MIUI was previously installed and device was encrypted.
    Credits & collaborations:
    bgcngm
    infrag
    joe2k01
    All LineageOS team would like to thank everyone involved in helping with testing, coding, debugging & documenting! Enjoy!



    Unofficial Builds:
    Build 17/08/2019
    https://drive.google.com/open?id=1evOopo9SgAC_fAQilbNovaVkBKF0mgzb




    TWRP 3.3.0.0:
    Build 05/06/2019
    Build on Android 9.0 TWRP sources

    https://drive.google.com/open?id=1OcmasmRO1athTFL5zvy-vgytMtDHMfwT
    23
    Official builds incoming. Waiting on the final commit: https://review.lineageos.org/c/LineageOS/hudson/+/243257
    For now you can enjoy or not enjoy the wiki.
    https://harryyoud.co.uk/lineage-previews/243255/3/devices/dipper/
    22
    So there hasnt been an update for a while since I've been working on building vendor img. Hopefully I'll have a test build up in the next few days. As it is it boots but there are a few bugs that I'm trying to sort out first.
    Secondly:
    I'll ask Bruno about what the process is to get mi8 official. I cant imagine there will be much required. I cant say it bothers me if mi8 is official or not but theres enough people here who seem to care so I'll give it a go.
    16
    I just wanted to say thanks to all have donated to me. It is definitely not a requirement to donate and I wasn't sure if I should post anything here to sound like I'm encouraging it but I'd feel remiss to not say anything.
    So Thanks very much!
    15
    Latest unofficial is close to perfect for me, everything works fine, it's smooth and battery life is astounding but gps is unusable on Waze, it kept moving my location all over the place once I started driving :/

    ew. Looks like my gps crash fix lost us some satellites.
    I'll do some testing and make another build soon.