--- description: Reincarnation... tags: Android, dark --- {%hackmd @cimeesia/SJv5Zgj1yl %} # Flash LineageOS 20 to my Fairphone 4 [TOC] ## TL;DR A short and fast note. - Official Lineage Recovery - Official Lineage 20 - NikGapps - Magisk ## Preparation - Recovery - An recovery image made by LineageOS (Nightly) - LineageOS 20 (Nightly) - 2023 Oct 01 - ROM - LineageOS - LineageOS 20 (Nightly) - 2023 Oct 01 - Rooting - Magisk - Magisk v26.3 - 2023 Sep 04 ## Walkthrough Overall, it was a very simple flash experience. ### Unlock the bootloader Same as Sony's devices, Fairphone required us to applied a "unlock code" before we unlock the bootloader. https://support.fairphone.com/hc/en-us/articles/10492476238865 1. Find the IMEI 1. 2. Find the device's serial number. 3. Go to the [official Fairphone website](https://www.fairphone.com/en/bootloader-unlocking-code-for-fairphone-3/) 4. key-in the info you got. 5. Get the unlock code 6. tap "OEM unlocking" in "Developer options" 7. Key-in unlock code 8. reboot to fastboot mode 9. coonnect to PC via USB 10. key-in the commend `fastboot flashing unlock` from PC ### Flashing recovery Same as usual, after unlocked the bootloader, the next thing needs to do is flash a custom recovery, so that I may process to flash custom ROM. Boot into fastboot mode, use adb to sideload the LineageOS' recovery. Once it's finished, boot into LineageOS' recovery and progress to the next section. ### Flashing ROM In LineageOS' official recovery, change the selection by pressing the volumn buttom. Select "Install upgrade", then use adb to flash the LineageOS 20. ### Rooting Once we boot into the system, we install Magisk's apk first, and just let it root the ROM. After 1 or 2 times reboot, simply done. ### The end Not really a difficult experience like flashing custom ROM into Samsung device. That's all. -- 2023 Oct 8, finished flashing.