[ROM][DISCONTINUED] LineageOS 15.1 for Xiaomi Mi 5

Not open for further replies.
Search This thread
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 218

    LineageOS is a free, community built, aftermarket firmware distribution of Android 8.1 (Oreo), 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:
    • Nothing?

    • Camera (and flashlight)
    • WiFi
    • NFC
    • Bluetooth
    • Telephony (Calls and Data)
    • Audio (Record and Playback)
    • Video Playback
    • Sensors
    • GPS
    • VoLTE


    Compatible with all Xiaomi Mi 5 variants (32GB / 64GB / 128GB). Xiaomi Mi 5S and 5S Plus are not supported.
    Builds are based off the Xiaomi's Android 8.0 firmware with proprietary blobs from MIUI 8.5.10 dev package.​


    • 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.

    • Reboot to recovery (TWRP recovery for Mi 5 - Direct link)
    • Format /system, /data and /cache
    • Install LineageOS zip package
    • Install [optional] the LineageOS su addon to get root (there are obviously other root methods, but this is the recommended one as it survives to OTA updates)
    • Install [optional] a Google Apps package of your choice (Open GApps is advisable, but stock and super variants are not recommended!!!)
    Important notes:

    Credits & collaborations:
    This work is due to efforts from Mi5Devs founding members (@h2o64 and me) that did the full device bring-up. Huge thanks to @deovferreira for all the help during the kernel bring-up after source code dropped. Last but not least, pleasure having @luca020400 and @LuK1337 onboard since the bring-up of the whole Xiaomi 8996 family, that lately did the major work in the O era.

    Finally, all LineageOS team would like to thank everyone involved in helping with testing, coding, debugging & documenting! Enjoy!​

    Device wiki:


    XDA:DevDB Information
    LineageOS 15.1, ROM for the Xiaomi Mi 5

    bgcngm, Mi5Devs
    ROM OS Version: 8.1 Oreo
    ROM Kernel: Linux 3.18.71
    ROM Firmware Required: MIUI 8.5.10 dev

    Version Information
    Status: Nightly

    Created 2017-09-07
    Last Updated 2018-02-25
    Who wants a taste of Oreo with working camera? Grab the fresh link in the first post.

    All credits goes to @highwaystar_ru for the huge help with the reverse engineering of the stock camera HAL.
    First of all, happy new year everyone! :highfive:

    I have just uploaded a new build with some more features ported (LiveDisplay is still broken), but the most important of all is that kernel is now based on the latest 8.1 tag and we're now using full CAF HALs (previous builds were compiled with display and media AOSP HALs). Feedback is appreciated, since this is again a major change.

    Last but not least, my "new" gemini should arrive tomorrow. :D
    So... Android 8.1 sources have dropped a couple days ago. :victory: Next release to be shared will hopefully be based on it (I don't expect any major issue to arise) and I'll keep using this thread. Stay tuned. ;)
    New build is up. Nothing really new in terms of features, but fixed audio and front facing camera render. Enjoy! :cool: