Important to note:
This tutorial is supported only with the Xiaomi Mi5 devices, codenamed with (gemini). Dont use this rom to another Xiaomi devices.
Make sure your Xiaomi Mi5 bootloader unlocked and have a TWRP Recovery installed. Read this guide to unlock bootloader xiaomi devices and this guide to install twrp recovery.
In order to install correctly this Nougat ROM you will need to wipe the data and/or factory reset your Xiaomi Mi5. This step is included in the tutorial and it means that you will have to backup all your files using cloud storage services (mi cloud is good but using google drive much easier to restore), a SD Card or a PC. Using Titanium Backup is not recomended.
Create a nandroid back-up is also needed to anticipate if something bad happened during intstalation, or after instalation. You can restore to the earlier rom you used with nandroid backup you'll created.
Make sure that your smartphone’s battery charge level is over 20% or more, at least 60% is good enough. This will prevent it from powering down while you’re updating your Mi5 (gemini) to Nougat 7.1.1 using Lineage OS ROM
If you done with all prequisites mentioned above, you can now forward to these steps by step guide.
Download ROM LineageOS 14.1 Xiaomi Mi5
This release is only one version availabe; experimentals build. This Official LOS 14.1 is on development stage, surely you can leave this page if you don't interested. Offcourse it will (probably have some issues after you install this build. If you insist after knowing this, download LOS 14.1 below, and don't blame us if something bad happened:
2. Download Nougat Lineage OS Gapps
Lineage OS 14.1 ROM is commonly based on Android 7.1.1 with 64 bit architecture, you can download these smallest compatibel GApps package with arm64 and sdk 7.1, provided by opengapps.org
Pico Gapps Nougat Lineage OS
Those is the smallest package and Aroma variant is the argest package with instalation wizard powered with Aroma Installer. If want more option go ahed choose suitable gapps nougat package according your data plan.
3. Installing Nougat 7.1.1 Lineage OS on Xiaomi Mi5
How to Install Nougat 7.1.1 Lineage OS on Xiaomi Mi5 (gemini) and adding GApps into Lineage OS:
Transfer both the Custom ROM and Nougat Lineage OS Gapps packages to the internal storage of your device.
Power off your device and boot into TWRP Recovery mode.
Once, you are into TWRP Recovery main menu, you need to make a hard reset. From the TWRP main menu tap on the wipe button and select Advanced Wipe. Then select all Dalvik cache, System, Data and Cache options.
Flash the custom ROM now. Choose the Install option from the recovery menu and choose the ROM zip from the file manager.
And while you waiting, i saw this guy waiting with you there.
Reboot into revovery after completed, don't reboot into system yet.
Now, flash the Nougat Lineage OS Gapps package that you’ve downloaded before in the same way as you did with the custom ROM
Reboot the device into system and complete the initial setup. Enjoy Android Nougat 7.1 with Lineage 14.1 for Xiaomi Redmi Mi5
Now you know where you can download Nougat 7.1.1 Lineage OS Official ROM for Mi5 (gemini) and how to install it on your smartphone.
You can also read how to enable native root access in Lineage OS. In those guide also explain to you how to replace native root with SuperSU without flashing zip.
Please leave your review in the comment section. Or if you have problem, don't hesitate to write a question in the comment section of LineageOS 14.1 for Xiaomi Mi4/Mi3 Android Nougat 7.1.1