• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[ROM][OFFICIAL] LineageOS 18.1 weeklies for Xiaomi Mi 5

Search This thread

bgcngm

Recognized Developer
2okPze5.png

LineageOS is a free, community built, aftermarket firmware distribution of Android 11 (R), 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:
yG18r6g.png

Broken / not yet supported:
  • Nothing (?)

Working:
  • Camera (and flashlight)
  • WiFi
  • NFC
  • Bluetooth
  • Telephony (Calls and Data), including VoLTE
  • Audio (Record and Playback)
  • Video Playback
  • Sensors
  • GPS
  • HW crypto (FDE)

Compatibility:
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 V10.2.2.0.OAAMIXM global stable package.​

Downloads:

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 5 - Direct link)
  • Format /system, /data and /cache
  • 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:
  • Current minimal * required * firmware version is MIUI V10.2.2.0.OAAMIXM global stable, otherwise installation will fail. Download the latest dev fastboot package directly from Xiaomi and flash it prior to installing LineageOS or, alternatively, download and install one of the latest custom packages containing firmware only (at your own risk).
  • 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:
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.​
Finally, all LineageOS team would like to thank everyone involved in helping with testing, coding, debugging & documenting! Enjoy!​


Device wiki:
 
Last edited:

Hakikidaredevil

Senior Member
Jun 8, 2018
88
19
Twrp is gone after flashing this rom. I've had a few restarts while connected to the wifi, especially when connected to wifi but no internet. Other than these everything seems fine.
Thanks you so much for supporting the mi5 community.
 
Last edited:

dev>null

Senior Member
Mar 7, 2013
836
719
Yes, but will be fixed in today's upcoming build.
Quite impressive for being early builds!
I really love the visual and usability enhancements ;)
Also I can confirm GPS has a very quick lock.

The only deal-breaker for using this as a daily driver is that background apps, like Instagram and Whatsapp, keep draining the battery.
From 100% to 39% with 5 min of screen on + 2 hours of background activity.
I'm sure doze and the battery optimizations will be refined asap, just reporting here for other testers to know.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    I'm seeing the same issue as nebik: Neither the camera or torch are working. The torch reports "Camera in use". They both work in MIUI.

    My steps are:
    1. Flash gemini_global_images_V10.2.2.0.OAAMIXM_20190115.0000.00_8.0_global with MiFlash
    2. Unlock with miflash_unlock-en-5.5.224.24
    3. Fastboot flash twrp-3.5.2_9-0-gemini.img
    4. In TWRP, wipe all phone partitions
    5. In TWRP, flash lineage-18.1-20210606-nightly-gemini-signed.zip and MindTheGapps-11.0.0-arm64-20210412_124247.zip from USB-OTG
    6. In TWRP, wipe cache and Dalvik and reboot
    I've repeated the steps without flashing MindTheGapps, but get the same result with the torch (should I expect the torch to work without GApps?).

    Am I doing anything obviously wrong? If not, I'll repeat the process with some older Lineage builds to see if that changes anything.

    This was my first attempt at LineageOS on my Mi5, and by coincidence I had followed almost the same steps.
    (The only difference being flashing both OAAMIXM image and nightly via TWRP recovery)

    Migrating from MIUI 10, I first tried 18.1-20210627, and indeed I found the Camera app missing from home, and as rowan-jetboy said notification icon for torch was disabled with message saying "Camera in use". Switching to older 18.1-20210620, with or without MindTheGApps, nothing seemed to enable camera.

    Out of blue, I tried lineage-17.1-20210214-nightly-gemini-signed.zip from IA.

    Camera app was usable in this version. Seeing this, to double check that newer version had broken something with camera, I reinstalled 18.1-20210627 and guess what; Camera app is there and torch is not disabled! Even after re-formatting data I cannot recreate the issue I had seen earlier.

    Would it be possible that installing 17.1-20210214 added and left residue of some sort to firmware, which was missing when I first installed 18.1-20210627, and which turn out was essential in using camera?
  • 16
    New build is up. Since this is based on the new AOSP feature drop, it's now Lineage 18.1. Enjoy. :cool:
    13
    New build is up, with this month's Android security fixes already included.
    12
    2okPze5.png

    LineageOS is a free, community built, aftermarket firmware distribution of Android 11 (R), 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:
    yG18r6g.png

    Broken / not yet supported:
    • Nothing (?)

    Working:
    • Camera (and flashlight)
    • WiFi
    • NFC
    • Bluetooth
    • Telephony (Calls and Data), including VoLTE
    • Audio (Record and Playback)
    • Video Playback
    • Sensors
    • GPS
    • HW crypto (FDE)

    Compatibility:
    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 V10.2.2.0.OAAMIXM global stable package.​

    Downloads:

    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 5 - Direct link)
    • Format /system, /data and /cache
    • 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:
    • Current minimal * required * firmware version is MIUI V10.2.2.0.OAAMIXM global stable, otherwise installation will fail. Download the latest dev fastboot package directly from Xiaomi and flash it prior to installing LineageOS or, alternatively, download and install one of the latest custom packages containing firmware only (at your own risk).
    • 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:
    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.​
    Finally, all LineageOS team would like to thank everyone involved in helping with testing, coding, debugging & documenting! Enjoy!​


    Device wiki:
    10
    New build is up. It includes March's security patch.
    8
    Official nightlies should be out real soon. :)