[ROM][UNOFFICIAL][10.0][ALI] LineageOS 17.1 [64 Bit][DISCONTINUED]

Search This thread

BetoxxDios

Member
Oct 10, 2017
7
2
Guanajuato
Moto G6
LineageOS-840x473.jpg
Code:
/*
 * 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.
 */

LineageOS is a free, community built, aftermarket firmware distribution of Android 10 (Q), which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.
What's not working:
  • Moto Fingerprint Gestures
  • You tell me
Instructions:
  • Download the ROM
  • Backup each and every partition from TWRP Recovery(optional)
  • Make a full wipe (system, vendor, data, cache, dalvik)
  • Flash LineageOS Package
  • Flash gapps
  • And at last Reboot!
  • [First boot will take few minutes]
  • Clean Flash is always recommended!
Downloads:
ROM
GAPPS

XDA:DevDB Information
LineageOS 17.1 for Ali, ROM for the Moto G6

Contributors
@BetoxxDios
@Electimon
@abhishek_d9
@jeangraff30
ROM OS version: Android 10
ROM Kernel: Linux 3.x
ROM Firmware Required: Unlocked bootloader, Custom recovery
Based On: AOSP

Version information
Status: Stable
Current Stable Version: LineageOS
Stable Release Date: 2020-10-06

Created 2020-10-06
Last Updated 2020-10-06
 

roypen

Senior Member
Mar 25, 2016
70
24
Hi,

Thanks, I was waiting for this. I will test it on the weekend. Can you please move the thread to "Moto G6 ROMs, Kernels, Recoveries, & Other Development" section? It will be easier to find it.
 

fwiep

Senior Member
Nov 17, 2016
217
307
www.fwiep.nl
Moto G6
Thank you

Thank you very much for building and posting this ROM. I would very much like to try it on my G6 (XT1925-5).

Following this thread, I got as far as unlocking the bootloader and booting TWRP from fastboot. But could not flash anything because of a locked boot.img. I have requested an edited boot.img and hope to get a reply.

Is there perhaps another way to get my G6 (XT1925-5) with firmware version PPSS29.55-37-7-10 to be able to run LineageOS?

Thanks in advance,
FWieP
 

nightmw

Senior Member
Dec 31, 2011
63
10
Thank you very much for building and posting this ROM. I would very much like to try it on my G6 (XT1925-5).

Following this thread, I got as far as unlocking the bootloader and booting TWRP from fastboot. But could not flash anything because of a locked boot.img. I have requested an edited boot.img and hope to get a reply.

Is there perhaps another way to get my G6 (XT1925-5) with firmware version PPSS29.55-37-7-10 to be able to run LineageOS?

Thanks in advance,
FWieP

Hi, which twrp did you try? You might want to use the twrp64 as this LOS17.1-build is a 64 Bit
 

fwiep

Senior Member
Nov 17, 2016
217
307
www.fwiep.nl
Moto G6

Once again: thank you all. I downloaded the mali.img and booted TWRP from it.
Then, I flashed the new LineageOS 17.1 and OpenGapps - without any problems, warnings or errors.

If there is no way to flash TWRP into the recovery partition permanently, I can live with that.
Most important thing is, I can flash the system partition when needed.

Hope to see more of your work!
Kind regards,
FWieP
 

fwiep

Senior Member
Nov 17, 2016
217
307
www.fwiep.nl
Moto G6
What's not working:
  • Moto Fingerprint Gestures
  • You tell me
Contributors
@BetoxxDios
@Electimon
@abhishek_d9
@jeangraff30

Having flashed this ROM a few days ago, I find it nearly perfect. Nearly :)
  • the October 2020 security patches are available from LineageOS; can they be included?
Would it be possible for you to share your kernel (link to source) and roomservice.xml?
I would like to try and build the ROM myself. Perhaps contribute, at least providing a mirror for the ROM files?

If not you (@BetoxxDios), perhaps the other contributors (@Electimon, @abhishek_d9, @jeangraff30) ?
Thanks!

Kind regards,
FWieP
 
Mar 12, 2018
16
1
failed to load kernel!

On my XT1925-5 I have flashed this rom serveral times, no errors, but it fails to boot.
When I restore the backup, I'm on stock again...
After installing twrp (mali.img) I did format data, reboot onto twrp, wipe, install etc.
Still it will boot only to fastboot: failed to load kernel!
Any suggestions?
 

fwiep

Senior Member
Nov 17, 2016
217
307
www.fwiep.nl
Moto G6
Close, but no cigar - yet

Would it be possible for you to share your kernel (link to source) and roomservice.xml?
I would like to try and build the ROM myself.
Thanks @BetoxxDios for providing the links to kernel, device and vendor trees in a private message.

After expanding the RAM of my machine to 16GB and some very educational experiments, the build finally succeeded.
TWRP flashed the ROM without any errors. Yeah!

Then the first reboot. I know that this usually takes a long time - say, 5 minutes. I've left it booting for more than 4 hours, but it doesn't get past the bootanimation. :(

Can anyone help me in solving this piece of the puzzle? Are there any logs I can get at while the phone is not yet adb-ready? What does LineageOS do while booting for the first time?

Thanks and kind regards,
FWieP

P.S. For the moment, I've flashed @BetoxxDios' original ROM. It's better (and safer) than Motorola's stock firmware.
 

Baronstragen

Member
May 25, 2020
35
11
.
Then the first reboot. I know that this usually takes a long time - say, 5 minutes. I've left it booting for more than 4 hours, but it doesn't get past the bootanimation. :(

Can anyone help me in solving this piece of the puzzle? Are there any logs I can get at while the phone is not yet adb-ready? What does LineageOS do while booting for the first time?

Thanks and kind regards,
FWieP

A frozen boot screen like that has happened to me many times. Usually 1 of 2 issues. 1. Gapps problem 2. Magisk problem.

Cheers.
 

fwiep

Senior Member
Nov 17, 2016
217
307
www.fwiep.nl
Moto G6
A frozen boot screen like that has happened to me many times. Usually 1 of 2 issues. 1. Gapps problem 2. Magisk problem.
Thanks for the tip.
I'm afraid this is another issue - I haven't flashed any Gapps with my ROM (yet), and have never even used Magisk before.
@BetoxxDios has shown me a way to get logfiles during boot: build an -eng variant instead of -user or -userdebug.
Now, we're investigating what's going wrong. To be continued!

Kind regards,
FWieP
 

fwiep

Senior Member
Nov 17, 2016
217
307
www.fwiep.nl
Moto G6
Yes, you can flash it permanently :
Fastboot flash recovery xxx.img ; xxx.img being the name of the recovery file.
Up until today, I thought this wouldn't work. When doing so, fastboot would say:
Code:
writing 'recovery'...
(bootloader) Image not signed or corrupt
And thus, I thought it had not flashed at all.

Today, I read elsewhere on this forum, to simply ignore this message and check whether it flashed. It actually has!
So, thank you, once again :)

Kind regards,
FWieP

---------- Post added at 17:22 ---------- Previous post was at 17:08 ----------

Now, we're investigating what's going wrong. To be continued!
And continue it does.

Right from the start, while building this ROM, I got an error about an undefined shared library: libqsap_sdk in /device/motorola/ali/libshims/Android.mk.
I saw it was in a section marked "optional", so I commented it out. And the build succeeded. Yes! After flashing, I got the looping boot-animation. D'oh!

But then, while trying to build another ROM (Resurrection Remix OS 8.6.3 by @abhishek_d9), I got the same error.
I again commented the section out, built the ROM successfully, but got the same looping boot-animation after flashing.

So, XDA to the rescue: I found this post which explains to include '/system/qcom' from LineageOS to get that libqsap_sdk included. I've added it to my roomservice.xml and have started another build. It looks very promising.

Maybe case solved? I'll let you know.

Update
Close, but no cigar. The looping boot-animation still persists. I'll investigate further...

Kind regards,
FWieP
 
Last edited:
Mar 12, 2018
16
1
On my XT1925-5 I have flashed this rom serveral times, no errors, but it fails to boot.
When I restore the backup, I'm on stock again...
After installing twrp (mali.img) I did format data, reboot onto twrp, wipe, install etc.
Still it will boot only to fastboot: failed to load kernel!
Any suggestions?

I bought a new phone, also XT1925-5 and unlocked. But also here, I get the same error:
failed to load kernel!
Stock Android was 8.0 and this rom is 10. could that be a problem?
 
Mar 12, 2018
16
1
Solved 'kernel not found'

I bought a new phone, also XT1925-5 and unlocked. But also here, I get the same error:
failed to load kernel!
Stock Android was 8.0 and this rom is 10. could that be a problem?

I used Motorola Rescue and Smart Assistant Tool
First of all I restored the phone by using the rescue_and_smart_assistant and installed Android 9
Then I used: fastboot boot mali.img
In TWRP, I removed encryption by installing: Force_Encryption_Disabler_For_ALI_Oreo_v2.zip

Wipe, the standard wipe (factory reset) + Format data
Then reboot to bootloader, and again load TWRP: fastboot boot mali.img
Wipe again and install the system (lineage-17.1-20201001-UNOFFICIAL-ali.zip)
install Magisk
Wipe cache and Dalvik
reboot into system
 
  • Like
Reactions: kozmo2k4

ccic2491

Senior Member
Jun 3, 2012
256
41
Charlotte
OnePlus 6
OnePlus 10 Pro
Solved 'kernel not found'



I used Motorola Rescue and Smart Assistant Tool
First of all I restored the phone by using the rescue_and_smart_assistant and installed Android 9
Then I used: fastboot boot mali.img
In TWRP, I removed encryption by installing: Force_Encryption_Disabler_For_ALI_Oreo_v2.zip

Wipe, the standard wipe (factory reset) + Format data
Then reboot to bootloader, and again load TWRP: fastboot boot mali.img
Wipe again and install the system (lineage-17.1-20201001-UNOFFICIAL-ali.zip)
install Magisk
Wipe cache and Dalvik
reboot into system
I tried all of that and keep getting "updater process ended with ERROR: 255 Error installing zip file...." Any way to fix this issue? I'm on XT1925-6 32gb.

Never mind, I had the wrong TWRP installed like a dope.
 
Last edited:

masterbi

New member
Jun 12, 2017
4
2
I installed the ROM following your instructions and other sources:
- unlocked the bootloader
- flashed the unofficial TWRP recovery for the moto g6 ali (https://forum.xda-developers.com/t/twrp-unofficial-twrp-64-bit-for-ali.4093879/)
- wiped system, data, cache and dalvik, my device has no vendor partition though
- flashed your Lineage Rom
- flashed the most recent GAPPS, for Android 10, arm 64, stock
Then rebooting the phone will just end up in an infinite boot animation.

Doing it all over without the gapps and the phone boots just fine. So it seems that the gapps installation is somehow causing the trouble. I tried many different gapps packages, but all without any success.

Could you provide a link to a gapp package that is known to work with your ROM?

Thanks in advance!
 

masterbi

New member
Jun 12, 2017
4
2
I installed the ROM following your instructions and other sources:
- unlocked the bootloader
- flashed the unofficial TWRP recovery for the moto g6 ali (https://forum.xda-developers.com/t/twrp-unofficial-twrp-64-bit-for-ali.4093879/)
- wiped system, data, cache and dalvik, my device has no vendor partition though
- flashed your Lineage Rom
- flashed the most recent GAPPS, for Android 10, arm 64, stock
Then rebooting the phone will just end up in an infinite boot animation.

Doing it all over without the gapps and the phone boots just fine. So it seems that the gapps installation is somehow causing the trouble. I tried many different gapps packages, but all without any success.

Could you provide a link to a gapp package that is known to work with your ROM?

Thanks in advance!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Solved 'kernel not found'

    I bought a new phone, also XT1925-5 and unlocked. But also here, I get the same error:
    failed to load kernel!
    Stock Android was 8.0 and this rom is 10. could that be a problem?

    I used Motorola Rescue and Smart Assistant Tool
    First of all I restored the phone by using the rescue_and_smart_assistant and installed Android 9
    Then I used: fastboot boot mali.img
    In TWRP, I removed encryption by installing: Force_Encryption_Disabler_For_ALI_Oreo_v2.zip

    Wipe, the standard wipe (factory reset) + Format data
    Then reboot to bootloader, and again load TWRP: fastboot boot mali.img
    Wipe again and install the system (lineage-17.1-20201001-UNOFFICIAL-ali.zip)
    install Magisk
    Wipe cache and Dalvik
    reboot into system
    1
    D
    Deleted member 5232707
    Any issues with using microG or magisk?
    I don't know about this ROM explicitly, but LineageOS does not
    support any of those. This is why it is important to me that my devices get official support in LineageOS, because automatically I get Lineage OS for MicroG builds. Being said this, in my experience, you can modify the OS with Nanolx and Magisk installers or even only using Magisk + a microG systemless extension.

    As you say you can experiment a bit I would assume the most recent Magisk release is compatible with Lineage OS 17.1. Once you flash it, install the most up-to-date microG extension and... you will probably be fine. IF the MicroG extension NEEDS Signature Spoofing support in the system, just go to Nanolx website, download their Signature Spoofing Patcher zip (it is called NanoDroid-patcher), flash it using TWRP and you are good to go.
    1
    Rescuing to Android 9 was definitely the missing link. I've got LOS booting. Next up: microG and magisk. Glad this thread exists and those who have gone before me have shared their experiences which enabled me to get through this! :)
    1
    Flashed magisk, NanoDroid-patcher (definitely required on the G6), NanoDroid-microG, and NanoDroid-fdroid. Then I found that a bunch of the microG self checks were failing. I had to grant spoofing through Apps and Notifications -> Permission Manager -> Additional Permissions -> Signature Spoofing and "show system". Added Signature Spoofing Support, microG Services Core, and FakeStore. Once each of those were added, all the microG self checks passed. Hope this helps someone who comes after me! And thanks again to all the good info here.

    EDIT: I'm noticing some basic differences between 17.1 on my G7 and 17.1 on my G6. Most notably, on my G7 I can individually hide notifications from the lock screen, but on my G6 the option isn't there (and I really wish it was). Since that's certainly more of an android feature than a phone model feature, why would there be differences like that?