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

Sjll

Recognized Developer
Jun 4, 2017
411
424
83
Chongqing


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

Last edited:

Sjll

Recognized Developer
Jun 4, 2017
411
424
83
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:
  • Like
Reactions: Beetle84

mbrewski

Member
Jul 21, 2010
8
0
21
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
1
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
1
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
21
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
411
424
83
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
1
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
411
424
83
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
80
8
28
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
1
0
11
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
Sep 9, 2016
1,185
559
128
Olympus Mons
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.