LineageOS 16 for Moto G5s plus: Step by Step Installation Guide

LineageOS 16 for moto g5s plus

Moto G5s Plus is a budget device from Motorola with a good specification. In a nutshell, Moto G5s plus is a solid smartphone but with one major problem, the Android updates. No doubt that Budget devices are far behind in getting them officially but you can have it by Flashing Custom ROM.

In this Post, we have given a step by step Installation Guide to flash LineageOS 16 on Moto G5s plus. Not to mention that LineageOS is the most used custom ROM for Android devices because of its stability and performance. Based on AOSP, LineageOS contains no bloat and is updated frequently thanks to the developers. Read more about LineageOS later in this Post.

[jnews_post_related match=”category” number=”2″]

Table of Contents

Download and Install LineageOS 16 for Moto G5s Plus

About the ROM

ROM OS Version: Android 9.x Pie

ROM Kernel: Linux 3.x

Based On: LineageOS

Maintained by: MasterAwesome


  1. Bootloader should be unlocked
  2. Custom recovery should be flashed (TWRP recommended)
  3. The device should be charged to at least 50%

Download Section

ROM: XDA Thread Androidfilehost

GApps: OpenGApps

ADB and Fastboot

Moto Drivers

How to Flash LineageOS in Moto G5s Plus

Flashing a custom ROM is fairly easy, Just Download the ROM and GApps and flash them in Custom Recovery, here is the step by step explanation

Note: Take a full backup before flashing the ROM

Step 1: Unlock the Bootloader

  • Enable USB Debugging and Allow OEM unlock by going into Developer options. Go to settings > About phone and then tap on “Build number” multiple times until you see “You are now a developer” popup
  • Open the Motorola Bootloader unlock website and click on “Next”. On the next screen, Sign in with your Google or Motorola account
  • Reboot to fastboot by turning off your phone and then pressing Volume Down and Power Key together
  • Connect the phone to your PC and open command window. Type this in cmd
fastboot oem get_unlock_data
unlock bootloader
  • It will give a code which you need to copy and paste it into the Data Scrub tool
Data scrub tool
  • Data scrub tool will give a new code, copy it and paste it in Motorola Unlock page which you just signed on to.
  • Click on “I agree” and then click on “Get unlock code”
  • You will receive an Unlock key
  • Now type the following code in the command window twice
fastboot oem unlock UNIQUE_KEY

UNIQUE_KEY is the key you got on Motorola unlock page. Paste the code twice to unlock the device.

Step 2: Flash the TWRP (Custom Recovery)

  • Download the TWRP, rename it to twrp.img and place it in adb folder
  • Goto the adb folder and Open Command window
  • Connect your Moto G5s Plus to PC in fastboot mode
  • Type this

fastboot flash recovery TWRP.img 

  • After successful flashing, type this to bypass encryption

fastboot format userdata

Step 3: Flash the ROM and GApps

  • Download the ROM and GApps and place them in your Moto G5s Plus
  • Reboot to recovery and Perform a Full Wipe (Data, system, cache, Dalvik)

TWRP wipe

  • Goto to Install and select ROM zip file to flash it, Do the same with GApps

Install ROM in TWRP

  • Flash Magisk if you want to root

That’s it, You have flashed LineageOS 16 for Moto G5s Plus

LineageOS and its features

LineageOS is the most used and most trusted Custom ROM out there. It was started as CyanogenMod and known to be the first custom ROM or firmware which was able to make its way to some smartphone as pre-installed default firmware.

LineageOS is based on AOSP code and you will hardly feel a difference from stock Android. Furthermore, There are some third-party apps like Trebuchet, AudioFX, Clock, Dialer, Eleven Music Player, Recorder and Snap Camera. More importantly, all the apps are useful and there are no Ads in them. However, LineageOS comes without Google app or GApps, you have to install them after flashing the ROM.

Due to its stability and performance, many other custom ROMs use LineageOS code as their base, some of them are Resurrection Remix and crDroid.

If you want a daily driver with good battery life and performance, then LineageOS is one the best option for you.


  • Audio/Media
  • Buttons/Navigation Bar
  • Calls
  • Display
  • Gestures
  • Performance
  • Lock Screen/Security
  • Quick Settings
  • Status Bar
  • SystemUI
  • Miscellaneous

Apart from these features, you get all perks of Android Pie which includes features like Digital Wellbeing, Machine learning, Adaptive Battery, which pushes back the app which you dont use often. Moreover, Other new features are Adaptive Brightness, App actions, New navigation style, Rotate Screen Quickly and other features which tune up the phone according to your use.

2 thoughts on “LineageOS 16 for Moto G5s plus: Step by Step Installation Guide”

  1. Step 2 of the procedure failed as shown:
    fast boot format userdata
    Formatting is not supported for file system with type ‘raw’

    After flashing the ROM and GApps on first system boot I received the following:
    To start Android, enter your password
    Entering any password of 4 or more chars are accepted – But returns the following:

    The password you entered is correct, but unfortunately your data is corrupt. Then it says to perform a factory reset and just repeats the loop.

    Any thoughts on how to resolve?

    1. Hi Tom, I will look into the Installation procedure, thanks for pointing it out.

      About your second problem, make sure that your Bootloader is Unlocked and you are on the latest firmware. Try to Format Data in TWRP-> Wipe.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top