Skip to content

Back to the overview

Install LineageOS on Xiaomi Redmi S2 / Y2

Warning

The provided instructions are for LineageOS 21.0. These will only work if you follow every section and step precisely. Do not continue after something fails!

Note

Make sure you have read the Getting started page before proceeding with the installation.

Download the required assets

LineageOS

  • Go to the Download Portal and download the following assets:
    • lineage-21.0-xxxxxxxx-UNOFFICIAL-ysl.zip
    • recovery.img

Note

You can verify the authencity of these builds by following this page.

Warning

If you want to install Google Apps add-on package, you can download it from here (use the arm64 architecture). This add-on needs to be installed before booting into LineageOS for the first time!

Vendor firmware

  • Download the latest vendor firmware available for your device:
Firmware Link
V12.0.2.0.PEFMIXM here

Install Lineage Recovery using fastboot

  • Reboot your device into fastboot mode by holding down the appropriate key combination.
  • Open a ADB & Fastboot tools window on your PC and flash the Lineage Recovery assets you downloaded before:
$ fastboot flash recovery recovery.img
  • Reboot your device into recovery mode by holding the appropriate key combination.

Install vendor firmware from recovery

  • On the LineageOS Recovery home screen, tap Apply update, then Apply from ADB for starting the sideload service.
  • Open a ADB & Fastboot tools window on your PC and flash the vendor firmware install package you downloaded before:
$ adb sideload vendor_firmware.zip

Note

When presented with a screen that says Signature verification failed, click Yes. It is expected as vendor firmware packages aren’t signed with the same keys!

Install LineageOS from recovery

  • On the Lineage Recovery home screen, tap Factory reset, then Format data/factory reset and press Format data. This will delete all your device's data and remove encryption from an older ROM.
  • On the Lineage Recovery home screen, tap Apply update, then Apply from ADB for starting the sideload service.
  • Open a ADB & Fastboot tools window on your PC and flash the LineageOS install package you downloaded before:
$ adb sideload lineage-21.0-xxxxxxxx-UNOFFICIAL-ysl.zip

Tip

After the package is installed, recovery will may inform you that reboot to recovery is required to install add-ons. In case you want to do that, please select Yes, otherwise No.

Tip

Normally, adb will report Total xfer: 1.00x, but in some cases, even if the process succeeds the output will stop at 47% and report adb: failed to read command: Success. In some cases it will report adb: failed to read command: No error or adb: failed to read command: Undefined error: 0 which is also fine.

Install Add-Ons

Note

If you don’t want to install any add-on (such as Google Apps), you can skip this whole section!

  • On the Lineage Recovery home screen, tap Apply update, then Apply from ADB for starting the sideload service.
  • Open a ADB & Fastboot tools window on your PC and flash the LineageOS install package you downloaded before:
$ adb sideload add-on.zip

Note

When presented with a screen that says Signature verification failed, click Yes. It is expected as add-on packages aren’t signed with the same keys!

All set!

  • On the Lineage Recovery home screen, tap Reboot system now.
  • If everything went well, you will be greeted by the infamous LineageOS boot animation :D.