[ROM][UNOFFICIAL] LineageOS 18.1 for Moto G8/G Fast [RAV]

Search This thread

Sjll

Recognized Developer
Jun 4, 2017
527
682
Chongqing
2okPze5.png


Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
About LineageOS
LineageOS is a free, community built, aftermarket firmware distribution of Android 10.x (Q),
which is designed to increase performance and reliability over stock Android for your device.

All the source code for LineageOS is available in the LineageOS GitHub repo.
And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.

Official LineageOS website : http://lineageos.org
About LineageOS Legal : http://lineageos.org/legal/

Read Guidance carefully, Or you will fail at flashing.

The LineageOS 18.1 is based on stock Android 10 this time, Make sure you are running stock Android 10 before flashing this ROM !!!!!!


Important Information
1 You need to flash Stock Android 10 before flashing this ROM.
2. For VoLTE, you might need to boot into stock firmware and enable it before flashing this ROM!

Downloads Links
LineageOS 18.1:
Unofficial-build:
Link

Google Applications (optional):
OpenGapps:
http://opengapps.org/ (ARM64->Android 11.0->Pico, Nano or Micro)
Information: Flash the GApps before the first boot. If not, a clean flash is recommended.

Flashing and updating
How to flash

Make sure you upgraded to Official Android 10.0 from Moto
Unlock bootloader is necessary.
Download latest platform-tools from google

1. Install fastbootd drivers, guidance
2. Download Lineage Recovery: AFH
3. Put your device into fastboot mode
4. Type the following command to flash the recovery:
Code:
fastboot flash recovery recovery.img
5. Enter fastbootd:
Code:
fastboot reboot fastboot
6. Flash LineageOS:
Code:
fastboot set_active a
fastboot flash:raw boot boot.img
fastboot flash dtbo dtbo.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot erase metadata
fastboot flash system system.img
fastboot flash product product.img
7. If you are first time to flash LineageOS, Wipe the old userdata:
Code:
fastboot erase userdata

Gapps:
After flashed images in fastbootd, choose Enter recovery - Apply update - Apply from ADB, then sideload the gapps package on your PC with adb tool:
Code:
adb sideload <PATH OF GAPPS>

Root access:
Flash Magisk in recovery.

Issues and reports

Report issues only if you are using the ROM kernel
If an additional mod is installed, make sure it's unrelated, and mention it
Make sure the issue wasn't discussed earlier in the threads
Share a log of the error with CatLog for example

Also thanks to:
The LineageOS Team
The CyanogenMod Team

XDA:DevDB Information
Lineage-18.1 for Moto G8/G Fast, ROM for the Moto G8/G Fast

Contributors

Sjll
Source Code:

ROM OS Version: Android 11
ROM Kernel: Linux 4.14

Version Information
Status:
Stable

Created 2021-01-26
Last Updated 2021-01-27
 

Attachments

  • Screenshot_20210126-011802.png
    Screenshot_20210126-011802.png
    98.2 KB · Views: 1,110
Last edited:

Sjll

Recognized Developer
Jun 4, 2017
527
682
Chongqing
FEATURES AND ISSUES
Code:
- Boot: Ok
- Bluetooth: Ok
- WiFi: Ok
- WiFi Hotspot: Ok
- Wireless display: Ok
- RIL - Phone - Data: Ok
- VoLTE: Ok
- GPS: Ok
- Camera: Ok
- Camcorder: Ok
- Lights: Ok
- MicroSD: Ok
- Accelerometer: Ok
- Compass: Ok
- Gyroscope: Ok
- QTI sensors: Ok
- Touchscreen: Ok
- FM Radio: NA
- Fingerprint: Ok
- Vibrator: Ok
- Microphone: Ok
- Audio & music: Ok
- Bluetooth audio: Ok
- Kernel: Ok
- Graphics: Ok
- 3D Rendering: Ok
- Clock: Ok
- DRM: Widewine L3
- Offline Charging: Ok
- USB: Ok
- USB Tethering:  Ok
- USB OTG: Ok
- Encryption: Ok
- SEPolicies: Enforce
 
Last edited:

mbrewski

Member
Jul 21, 2010
8
0
Tried flashing this tonight but got stuck on:

fastboot flash system system.img

Getting this error " (bootloader) Invalid partition name system" Apparently the system partition doesn't exist on my phone (XT2045-3)

Similar error occurs with product partition.

The Super partition does and I tried to flash to that but the phone immediately booted into fastboot.

Anyone have an idea?
 

Csrtek

Member
Oct 25, 2020
5
0
I just finished flashing and everything is working good, i had lost my wifi connection on a custom rom about two moths ago, it only worked with stock rom. this fixed it, anyways, the screen might be broken? notifications show under notch, also when i was trying to flash gapps, it kept giving error for wrong android version, i booted up again, checked the device info and apparently im running on android 11, so had tho get gapps 11 from cynanogen. magisk installed correctly also gapps, im gonna test it tonight see how it goes.
 

Csrtek

Member
Oct 25, 2020
5
0
Tried flashing this tonight but got stuck on:

fastboot flash system system.img

Getting this error " (bootloader) Invalid partition name system" Apparently the system partition doesn't exist on my phone (XT2045-3)

Similar error occurs with product partition.

The Super partition does and I tried to flash to that but the phone immediately booted into fastboot.

Anyone have an idea?

so something like this happened to me, but it my error said: not enough space to resize partition... something like it, while trying to flash the system img, here is what i did, got the error, skipped system, flashed product, went back and flash system img. continued with the command list, and booted right up.
 

mbrewski

Member
Jul 21, 2010
8
0
Thanks for the tip! It worked like a charm.


so something like this happened to me, but it my error said: not enough space to resize partition... something like it, while trying to flash the system img, here is what i did, got the error, skipped system, flashed product, went back and flash system img. continued with the command list, and booted right up.
 

Sjll

Recognized Developer
Jun 4, 2017
527
682
Chongqing
also when i was trying to flash gapps, it kept giving error for wrong android version, i booted up again, checked the device info and apparently im running on android 11, so had tho get gapps 11 from cynanogen. magisk installed correctly also gapps, im gonna test it tonight see how it goes.

NikGapps-core-arm64-11-20210124-signed.zip

Is it not possible to use the FM radio on custom ROMs?
Do we have it on stock?

Tried flashing this tonight but got stuck on:

fastboot flash system system.img

Getting this error " (bootloader) Invalid partition name system" Apparently the system partition doesn't exist on my phone (XT2045-3)

Anyone have an idea?

Read OPs carefully, FastbootD mode.
 

Csrtek

Member
Oct 25, 2020
5
0
Is there a command to fix the screen overlay? Notifications and carrier label show under the notch/front camera, I tried the command listed on other threads but doesn't work. Its the only problem I've encountered so far.
 

Sjll

Recognized Developer
Jun 4, 2017
527
682
Chongqing
Is there a command to fix the screen overlay? Notifications and carrier label show under the notch/front camera, I tried the command listed on other threads but doesn't work. Its the only problem I've encountered so far.
Because I didn't build the overlay. I will consider about it.
Yeah I had it on stock eu version, but I haven't seen it on any custom ROMs
I will check it.
 

TheShanMan

Senior Member
Oct 29, 2013
137
25
Is there a command to fix the screen overlay? Notifications and carrier label show under the notch/front camera, I tried the command listed on other threads but doesn't work. Its the only problem I've encountered so far.

Look for the Display Cutout option in Developer Options. I have that on my G7, and my G6 which doesn't even have a cutout, so I assume it's in all models.

Will this work on the moto g stylus - us version.?
Some kernel modules of other Moto sm6125 devices are not included, so some hardware doesn't work.

Can you provide any more detail on what would be missing on the Stylus, and if support will be added for those things in this LOS rom, or if it'll take someone creating a Stylus based LOS rom for better support?
 
Feb 9, 2021
2
0
Okay, now I'm a little confused. I just flashed my stock moto g with the 20210127 build. Didn't run into any trouble except the resize error Csrtek described above, and solved it the same way (flash product partition first). Didn't try to load the gapps at the time (they were too big to download over LTE).

Now I'd like to install the gapps, but there is no Android 11 version on the opengapps.org site linked above, although the instructions say to use them. I tried the Android 10 version, but the installer chokes when I try to sideload them.

So, are version 11 gapps available yet? Or am I missing something? Do I need to downgrade back to stock version 10, then reflash Lineage, then sideload the version 10 gapps before booting? I would have tried it, but none of the stock images are available right now.

Thanks for doing this port, Sjll! And the overlay would be nice if you can do it! ;-)
 

Spaceminer

Senior Member
Okay, now I'm a little confused. I just flashed my stock moto g with the 20210127 build. Didn't run into any trouble except the resize error Csrtek described above, and solved it the same way (flash product partition first). Didn't try to load the gapps at the time (they were too big to download over LTE).

Now I'd like to install the gapps, but there is no Android 11 version on the opengapps.org site linked above, although the instructions say to use them. I tried the Android 10 version, but the installer chokes when I try to sideload them.

So, are version 11 gapps available yet? Or am I missing something? Do I need to downgrade back to stock version 10, then reflash Lineage, then sideload the version 10 gapps before booting? I would have tried it, but none of the stock images are available right now.

Thanks for doing this port, Sjll! And the overlay would be nice if you can do it! ;-)
I think you want Nik Gapps.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    2okPze5.png


    Code:
    #include <std_disclaimer.h>
    /*
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    */
    About LineageOS
    LineageOS is a free, community built, aftermarket firmware distribution of Android 10.x (Q),
    which is designed to increase performance and reliability over stock Android for your device.

    All the source code for LineageOS is available in the LineageOS GitHub repo.
    And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.

    Official LineageOS website : http://lineageos.org
    About LineageOS Legal : http://lineageos.org/legal/

    Read Guidance carefully, Or you will fail at flashing.

    The LineageOS 18.1 is based on stock Android 10 this time, Make sure you are running stock Android 10 before flashing this ROM !!!!!!


    Important Information
    1 You need to flash Stock Android 10 before flashing this ROM.
    2. For VoLTE, you might need to boot into stock firmware and enable it before flashing this ROM!

    Downloads Links
    LineageOS 18.1:
    Unofficial-build:
    Link

    Google Applications (optional):
    OpenGapps:
    http://opengapps.org/ (ARM64->Android 11.0->Pico, Nano or Micro)
    Information: Flash the GApps before the first boot. If not, a clean flash is recommended.

    Flashing and updating
    How to flash

    Make sure you upgraded to Official Android 10.0 from Moto
    Unlock bootloader is necessary.
    Download latest platform-tools from google

    1. Install fastbootd drivers, guidance
    2. Download Lineage Recovery: AFH
    3. Put your device into fastboot mode
    4. Type the following command to flash the recovery:
    Code:
    fastboot flash recovery recovery.img
    5. Enter fastbootd:
    Code:
    fastboot reboot fastboot
    6. Flash LineageOS:
    Code:
    fastboot set_active a
    fastboot flash:raw boot boot.img
    fastboot flash dtbo dtbo.img
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
    fastboot erase metadata
    fastboot flash system system.img
    fastboot flash product product.img
    7. If you are first time to flash LineageOS, Wipe the old userdata:
    Code:
    fastboot erase userdata

    Gapps:
    After flashed images in fastbootd, choose Enter recovery - Apply update - Apply from ADB, then sideload the gapps package on your PC with adb tool:
    Code:
    adb sideload <PATH OF GAPPS>

    Root access:
    Flash Magisk in recovery.

    Issues and reports

    Report issues only if you are using the ROM kernel
    If an additional mod is installed, make sure it's unrelated, and mention it
    Make sure the issue wasn't discussed earlier in the threads
    Share a log of the error with CatLog for example

    Also thanks to:
    The LineageOS Team
    The CyanogenMod Team

    XDA:DevDB Information
    Lineage-18.1 for Moto G8/G Fast, ROM for the Moto G8/G Fast

    Contributors

    Sjll
    Source Code:

    ROM OS Version: Android 11
    ROM Kernel: Linux 4.14

    Version Information
    Status:
    Stable

    Created 2021-01-26
    Last Updated 2021-01-27
    2
    FEATURES AND ISSUES
    Code:
    - Boot: Ok
    - Bluetooth: Ok
    - WiFi: Ok
    - WiFi Hotspot: Ok
    - Wireless display: Ok
    - RIL - Phone - Data: Ok
    - VoLTE: Ok
    - GPS: Ok
    - Camera: Ok
    - Camcorder: Ok
    - Lights: Ok
    - MicroSD: Ok
    - Accelerometer: Ok
    - Compass: Ok
    - Gyroscope: Ok
    - QTI sensors: Ok
    - Touchscreen: Ok
    - FM Radio: NA
    - Fingerprint: Ok
    - Vibrator: Ok
    - Microphone: Ok
    - Audio & music: Ok
    - Bluetooth audio: Ok
    - Kernel: Ok
    - Graphics: Ok
    - 3D Rendering: Ok
    - Clock: Ok
    - DRM: Widewine L3
    - Offline Charging: Ok
    - USB: Ok
    - USB Tethering:  Ok
    - USB OTG: Ok
    - Encryption: Ok
    - SEPolicies: Enforce
    2
    Hi!
    Here's a little help for y'all having problem trying to flash the rom
    This phone is a little different to flashing stuff to it, which i found out the bad way lol so here's a quick guide so you have a higher chance to flash the rom without any issue! (I dont guarantee it'll work, its something i tested and worked all the times i flashed roms to my poor phone lol)

    I'd strongly recommend you do a clean install (Factory reset from stock Android 10) and backup your important stuff before you do lol
    Do the first steps
    A mistake i made in the begining is that after i flashed the recovery i decided to boot the phone back to the stock rom which caused a brick, so after you flash the recovery.img there's no turning back (Use the recovery tool that motorola gives so you can restore your device to stock if the phone fails to boot or flashing returns with an error, but make sure its on fastboot, not fastbootd when you plug your phone to the computer to restore it)
    Continue the steps and
    when you get to flashing the images
    Simply flash the product.img before the system.img
    Like this
    fastboot set_active a
    fastboot flash:raw boot boot.img
    fastboot flash dtbo dtbo.img
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
    fastboot erase metadata
    fastboot flash product product.img
    fastboot flash system system.img

    I suppose that the product.img has the data that the phone needs so it knows where the system.img files belong to or how to divide them to the right spots so it doesn't return with the "Not enough space" error (Dunno im kinda a noob at that)

    And boom!
    Also you can do this with every rom you try for this phone
    always flash product.img before system.img
    I had the most luck out of it with it lol, Enjoy!
    1
    Will this work on the moto g stylus - us version.?
    What about Moto g8 Power?

    Some kernel modules of other Moto sm6125 devices are not included, so some hardware doesn't work.
    1
    I ended up on a screen that says "No valid opereting sytstem found" in red text

    to anyone that somehow ended with a bricked phone like me, connect your phone in fastboot mode, download motorola's Rescue & Smart Assistant program (on PC) then download the firmware for the phone, once it downloads the firmware don't click on Rescue yet, instead flash gpt.bin (in fastboot) from the firmware you just downloaded. You should be able to flash stuff now, and you could restore the phone back to stock with the program