Download MIUI V184.108.40.206 Global Stable Fastboot ROM for Xiaomi Mi 6 from here. Download MIUI V220.127.116.11 Global Stable Recovery ROM for Xiaomi Mi 6 from here. Download MIUI V18.104.22.168 Global Stable OTA ROM for Xiaomi Mi 6 from here.
Archive name: lineage-17.1-20200404-nightly-sagit-signed.zip
Xiaomi Device name code: sagit
Archive size: 653 MB
Android version: 8.0.0
Build number: Xiaomi/sagit/sagit:8.0.0/OPR1.170623.027/V22.214.171.124.OCAMIEK:user/release-keys
Upgrade LineageOS on sagit
The updater app does not support upgrades from one version of LineageOS to another, and will block installation to any update for a different version. Upgrading manually requires similar steps to installing LineageOS for the first time.
1. Download the LineageOS install package that you’d like to install or build the package yourself. Optionally, download additional application packages such as Google Apps (use the arm64 architecture).
2. Make sure your computer has working adb. Setup instructions can be found here.
3. Run ‘adb reboot sideload’.
4. Run ‘adb sideload /path/to/zip’ (inserting the path to your LineageOS package).
5. Optionally: If you want to install any additional add-ons, adb sideload /path/to/zip those packages in sequence.
6. Once all installations are finished, run ‘adb reboot’.
– Please read through the instructions at least once completely before actually following them to avoid any problems because you missed something!
– These instructions only apply to version upgrades. If you wish to downgrade to an earlier version of LineageOS, follow your device’s instructions for installing LineageOS the first time.
– In some cases, a newer LineageOS version may not install due to an outdated recovery. Follow your device’s installation guide to see how you can update your recovery image.
If you previously had any Google Apps package installed on your device, you must install an updated package before the first boot of Android! If you did not have Google Apps installed, you must wipe the Data partition (or perform a factory reset) to install them.
Install LineageOS on sagit
1. Make sure your computer has adb and fastboot. Setup instructions can be found here.
2. Enable USB debugging on your device.
Unlocking the bootloader
1. Create a Mi account on Xiaomi’s website.
2. Add a phone number to your Mi account.
3. Insert a SIM into your phone.
4. Enable developer options in Settings > About Phone by repeatedly tapping MIUI Version.
5. Link the device to your Mi account in Settings > Additional settings > Developer options > Mi Unlock status.
6. Download the Mi Unlock app (Windows is required to run the app).
7. Run the Mi Unlock app and follow the instructions provided by the app.
8. After device and Mi account are successfully verified, the bootloader should be unlocked.
9. Since the device resets completely, you will need to re-enable USB debugging to continue.
Installing a custom recovery using fastboot
1. Download a custom recovery – you can download one here.
2. Connect your device to your PC via USB.
3. On the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) window, and type: adb reboot bootloader
You can also boot into fastboot mode via a key combination: With the device powered off, hold Volume Down + Power. Keep holding both buttons until the word “FASTBOOT” appears on the screen, then release.
4. Once the device is in fastboot mode, verify your PC finds it by typing: fastboot devices
5. Flash recovery onto your device: fastboot flash recovery <recovery_filename>.img
6. Now reboot into recovery to verify the installation: With the device powered off, hold Volume Up + Power. Keep holding both buttons until the “MI” logo appears on the screen, then release.
Alternatively, on some devices and recoveries you can use fastboot to boot directly into the freshly flashed or any other desired recovery: fastboot boot <recovery_filename>.img
Installing LineageOS from recovery
1. Download the LineageOS installation package that you would like to install or build the package yourself. Optionally, download additional application packages such as Google Apps (use the arm64 architecture).
2. If you are not in recovery, reboot into recovery: With the device powered off, hold Volume Up + Power. Keep holding both buttons until the “MI” logo appears on the screen, then release.
3. Now tap Wipe.
4. Now tap Format Data and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage.
5. Return to the previous menu and tap Advanced Wipe, then select the Cache and System partitions and then Swipe to Wipe.
6. Sideload the LineageOS .zip package: On the device, select “Advanced”, “ADB Sideload”, then swipe to begin sideload. On the host machine, sideload the package using: adb sideload filename.zip
7. (Optionally): If you want to install any additional add-ons, run adb reboot sideload, then adb sideload filename.zip those packages in sequence.
– Please read through the instructions at least once before actually following them, so as to avoid any problems due to any missed steps!
– These steps only need to be run once per device.
– Unlocking the bootloader will erase all data on your device! Before proceeding, ensure the data you would like to retain is backed up to your PC and/or your Google account, or equivalent.
– It is highly recommended to have the latest official MIUI dev package installed on the device, before proceeding with unlock.
– The following instructions require a machine running Windows 7 or newer.
– A Mi account is required to unlock the bootloader. Beware that one account is only allowed to unlock one unique device every 30 days.
– The app may tell you that you have to wait up to 30 days. If it does so, please wait the quoted amount of time before continuing to the next step.
– If you see no permissions fastboot while on Linux or macOS, try running fastboot as root.
– The file may not be named identically to what stands in this command, so adjust accordingly.
– If you want Google Apps on your device, you must follow this step before booting into LineageOS for the first time!
– Depending on which recovery you use, you may be prompted to install additional apps and services. We strongly advise you to opt out of installing these, as they may cause your device to bootloop, as well as attempt to access or corrupt your data.
Caution Please do not update firmware unless you know what you are doing, you really want it or it is absolutely necessary. Firmware updates may occasionally have bad results, like bricking your device, temporarily or permanently. The firmware update process is done entirely at your own risk. Before attempting to update the firmware, back up your data.