DEV Community

loading...

Update Essential Phone ph-1 to LineageOS 18.1

Your 🍟 Classmate
Former OIer
・2 min read

Time: 2021-04-03 23:44

Author: vonhyou

In this article, we will install LineageOS 18.1 (Android 11) on Essential Phone ph-1(mata)

Preparation

  1. Download Android SDK Platform Tools for your system.

  2. Unlock the bootloader

$ adb reboot bootloader
$ fastboot devices
$ fastboot flashing unlock
Enter fullscreen mode Exit fullscreen mode
  1. Download recovery, system

Official Website: download.lineageos.org/mata

  1. Download Gapps and Magisk(Optional)

Mind the Gapps: Official website

Magisk: Official website Github

Flash Recovery

$ adb devices
$ adb reboot bootloader
$ fastboot devices
$ fastboot getvar current-slot
# Remember the current slot for next step
$ fastboot flash boot_SLOT <filename>.img
# If the current slot is _a, you should use boot_a
Enter fullscreen mode Exit fullscreen mode

Error: fastboot: error: Couldn't parse partition size '0x'

If this error occurred, you should use command below

$ fastboot flash:raw boot_SLOT <filename>.img
Enter fullscreen mode Exit fullscreen mode

and then next:

$ fastboot set_active other
Enter fullscreen mode Exit fullscreen mode

Reboot to recovery.

Sideload LineageOS

  1. Tap Factory Reset, then Format data / factory reset and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage, as well as format your cache partition.

  2. Select β€œApply Update”, then β€œApply from ADB” to begin sideload.

  3. Sideload

$ adb sideload <filename>.zip
Enter fullscreen mode Exit fullscreen mode

If the process succeeds the output will stop at 47% and report adb: failed to read command: Success

Sideload Other packs

  1. Reboot to make sure your system is installed correctly
  2. Reboot to recovery mode
  3. Sideload packs like before
$ adb sideload <mindthegapps>.zip
$ adb sideload <magisk>.zip
Enter fullscreen mode Exit fullscreen mode

Error: Zip Signature Verification failed

Just ignore it.

References

  1. Install LineageOS on mata. wiki.lineageos.org
  2. Mata readthedocs. mata.readthedocs.io
  3. XDA Guide. How to Install TWRP & Root Essential PH-1(Method 2)

Discussion (0)

Forem Open with the Forem app