DEV Community

Regular 🍟
Regular 🍟

Posted on

4 3

Update Essential Phone ph-1 to LineageOS 18.1

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)

Sentry mobile image

App store rankings love fast apps - mobile vitals can help you get there

Slow startup times, UI hangs, and frozen frames frustrate users—but they’re also fixable. Mobile Vitals help you measure and understand these performance issues so you can optimize your app’s speed and responsiveness. Learn how to use them to reduce friction and improve user experience.

Read full post →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

đź‘‹ Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay