LineageOS Installation Guide for Xiaomi Pocophone F1

Note that this guide is for educational purposes only. Unless you know exactly what you're doing, you should instead follow the official installation and update instructions in the LineageOS Wiki.

This unofficial guide explains how to install or update LineageOS on the Xiaomi Pocophone F1 (also called the Poco F1).


Install or Update LineageOS:

  1. Download the latest LineageOS updates.
  2. Copy the file boot.img to the phone.
  3. Reboot the phone in Fastboot mode.
    1. Flash the Recovery image:
      $ fastboot flash recovery /path/to/recovery.img
    2. Flash the vbmeta image:
      $ fastboot flash vbmeta --disable-verity --disable-verification /path/to/vbmeta.img
  4. Reboot into Recovery. (Do not boot into the main OS yet, as it will restore the old Recovery!)
    1. On the phone, select Apply update, then Apply from ADB. On the PC, run:
      $ adb -d sideload /path/to/lineageOS-image.zip
    2. For new LineageOS installations, optionally download and install the latest Google Apps:
      $ adb -d sideload /path/to/GApps.zip
      Note 1: Google Apps can only be installed after a factory reset. Likewise, a factory reset is required to remove Google Apps.
      Note 2: The signature verification failed warning is expected for 3rd-party (non-LineageOS) apps.
      Note 3: Wipe the cache partition before rebooting.
  5. Reboot the phone into the main OS.

Enable Root Access

  1. For new LineageOS installations, install the Magisk app. Enable the Systemless Hosts module.
  2. Open the Magisk app, and press the Install button. Choose Select and Patch a File, and browse to the latest boot.img file. This will generate a patched boot image named magisk_patched_[random_strings].img.
  3. Copy the patched boot image from the phone to the PC.
  4. Reboot the phone into Fastboot mode.
  5. Flash the patched boot image:
    $ fastboot flash boot /path/to/magisk_patched.img
  6. Reboot the phone into the main OS.

Enable Ad-blocking

  1. For new LineageOS installations, install AdAway.
    Open Magisk and ensure that AdAway has Superuser privileges enabled.

Troubleshooting

If Google Apps crashes repeatedly, reinstall LineageOS and immediately (before rebooting) reinstall Google Apps. Then clear the cache, and reboot. (Essentially, reinstall LineageOS as if it was a first time installation, including all the steps shown above.)