Skip to content

Instantly share code, notes, and snippets.

@anandology
Last active February 7, 2021 00:24
Show Gist options
  • Save anandology/c0592d12ee93eaa35d96ed794344d8a8 to your computer and use it in GitHub Desktop.
Save anandology/c0592d12ee93eaa35d96ed794344d8a8 to your computer and use it in GitHub Desktop.
Lineage OS installation

Trying to install Lineage OS on MI A2 (jasmine_sprout) follow the instructions from:

https://wiki.lineageos.org/devices/jasmine_sprout/install

Unlocking the bootloader

  1. Enable OEM unlock - done
  2. fastboot oem unlock - done

Temporarily booting a custom recovery using fastboot

  1. Download a custom recovery - done
  2. Temporarily flash a recovery on your device.

The provided command fastboot flash boot <recovery_filename>.img did not work. I had run:

fastboot flash boot__a lineage-17.-20210123-recovery-jasmine_sprout.img

Installing LineageOS from recovery

  • With the device powered off, hold Volume Up + Power to reboot into recovery
  • The phone does not go into recovery mode

The current state of the phone

  • phone gets powered off by pressing power button for 10 seconds or so.

  • Turning the phone on will start the phone and show:

    • android-one logo on screen for 2 seconds
    • battery charging icon on the screen for a second
    • screen goes blank
  • Powering it on with USB plugged into laptop

    • android one logo foe two seconds
    • Shows the following messgae:
    The boot loader is unlocked and software integraty can not be guarranteed....
    
    Visit this link on another device:
    g.co/ABH
    
    PRESS POWER KEY TO PAUSE BOOT  
    
  • Same as above when Volume Up + Power buttons are pressed

  • Goes into fastboot when Volume Down + Power buttons are pressed

Recovery using TWRP

Started twrp using fastboot boot twrp-3.5.0_9-0-jasmine_sprout.img.

Click on reboot - on the resulting page, switch the boot slot. If its A, change it to B. Reboot into system

These two steps started the Android OS that came with the phone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment