What is LineageOS?
Installing LineageOS on Xiaomi Mi A1
Requirements
Materials used in this scenario:
- Xiaomi Mi A1
- LineageOS16 official (nightly=development)
- LineageOS17 Unofficial
- TWRP Recovery
Downloads
Download and install the Android development files (SDK platform) adb and fastboot (in my case: minimal_adb_fastboot_v1.4.3).
Enable OEM Unlocking
Enable OEM unlocking and USB debugging in the phone settings.
Bootloader Unlock
Use the following commands to unlock the bootloader. Run them from the adb and fastboot folder:
| |
Verify that it has been unlocked successfully with:
| |
Recovery Mode Installation
After enabling USB debugging mode and unlocking the OEM, install recovery mode using the .img file in the same folder as adb and fastboot:
| |
The following error occurs:
| |
The solution is:
| |
The following result is obtained:
| |
Image Installation
Reboot into recovery mode with power button + volume up and follow these steps:
- Wipe -> Format Data
- Advanced Wipe -> Dalvik, system and data
- Install -> lineage-1-…-tissot.zip
- Wipe Dalvik and reboot system.
Once completed, LineageOS is installed. By default, Google Play is not included. If you encounter any errors, you can install the minimal version of GApps, for example open_gapps-arm-9.0-pico-20200408.zip.