[DISCONTINUED][ROM][PAYTON]LineageOS 19.1 (Android 12.1)

Search This thread

ThE_MarD

Recognized Developer
Dec 10, 2014
3,359
3,836
Grande Prairie
LeEco Le Max 2
Moto X4
2okPze5.png



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, 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.



Introduction

This is the official Lineage OS thread for the Motorola Moto X4, codename payton.



We support all the T-Mobile, International, and Project Fi variants, as their bootloaders are unlockable, while we can't support the Verizon and AT&T variants, as their bootloaders are permanently locked.



How to install via Lineage Recovery

Please follow the official instructions



HOW TO UPDATE LINEAGEOS WITH LINEAGE RECOVERY

Please follow the official LineageOS Wiki instructions for our device




How to install via TWRP

  1. Boot the newest TWRP .img from the Official TWRP Project Site.
  2. IF YOU ARE COMING FROM STOCK AND WANT TO INSTALL CUSTOM ROMS FOR FIRST TIME, INSTALL "Copy Partitions Zip" FROM POST #2
  3. In TWRP, click "Wipe", "Format Data", then type "yes" as prompted.
  4. ADB sideload the newest weekly
  5. (Optionally) You can flash the newest TWRP Installer also found at the Official TWRP Project Site if you wish to maintain TWRP, though the pre-installed Lineage Recovery instance will do everything you need it to in most cases. We don't recommend or support the use of the TWRP installer, as it is overwritten on every update (will need to be re-installed every update), and has no addon.d-v2 persistence.
  6. Click "Reboot", then choose "Recovery", this will boot you to either Lineage Recovery or TWRP depending on your choice to install TWRP or not. It is necessary to reboot between ROM flash and GApps/Addon flash due to verity/slot-swap logic.
  7. (Optionally) Flash GApps
  8. Reboot


How to upgrade from the previous version via Lineage Recovery

Please follow the official instructions



How to upgrade from the previous version via TWRP

  1. Boot the newest TWRP .img from the Official TWRP Project Site.
  2. IF YOU ARE COMING FROM STOCK AND WANT TO INSTALL CUSTOM ROMS FOR FIRST TIME, INSTALL "Copy Partitions Zip" FROM POST #2
  3. In TWRP, click "Wipe", then select "advanced" and select "cache" and wipe.
  4. ADB sideload the newest weekly build or copy it to your device and install the zip
  5. (Optionally) You can flash the newest TWRP Installer also found at the Official TWRP Project Site if you wish to maintain TWRP, though the pre-installed Lineage Recovery instance will do everything you need it to in most cases. We don't recommend or support the use of the TWRP installer, as it is overwritten on every update (will need to be re-installed every update), and has no addon.d-v2 persistence.
  6. Click "Reboot", then choose "Recovery", this will boot you to either Lineage Recovery or TWRP depending on your choice to install TWRP or not. It is necessary to reboot between ROM flash and GApps/Addon flash due to verity/slot-swap logic.
  7. (Optionally) Flash GApps
  8. Reboot


Notes

Official Lineage OS builds will not pass CTS/SafetyNet -- due to the AVB flag's "red" status. (Magisk works fine, though is not supported.)
Official Lineage OS builds ship with full treble compatibility, with VNDK runtime enforcement! This means that unlike most "ported treble" you'll see, ours is just as it would be from the OEM, and can run any GSI (yes, even Pie!) without need for hacks or additional flashable zips. We relabeled /oem as /vendor (as /oem isn't used in custom ROM's anyway). To use a GSI, flash official Lineage, then flash your GSI, it's that simple! Flashing a factory image will likely write over /oem and remove the mock vendor image. Please don't report GSI bugs here, report them instead to the GSI's maker.


Download


Official:

Unofficial test builds:



Google Apps (GApps)

MindTheGapps:


GCam Mods



Contributors

erfanoabdi, SevenRock, ThE_MarD, Moto sdm660 devs, the Lineage Team

Source Code: https://github.com/LineageOS

ROM Firmware Required: Official Pie
 
Last edited:

ThE_MarD

Recognized Developer
Dec 10, 2014
3,359
3,836
Grande Prairie
LeEco Le Max 2
Moto X4
Last edited:

ThE_MarD

Recognized Developer
Dec 10, 2014
3,359
3,836
Grande Prairie
LeEco Le Max 2
Moto X4

jtnc

Member
Dec 4, 2012
46
18
I decided to take the plunge tonight, waste a few hours and try out the 20220416 test build. So far so good, though I'll grant you I've only had it running for a couple hours. The install going from 18.1 to 19.1 went smooth. I'm not sure if audio will end up a little weak when calling someone. When I did a Voice call from my google number to my phone number, and then played back the message, my voice sounded a bit weak vs the voice mail prompts. I need to try it with a real phone call and see if others think I sound weak.

Apps seem to be running fine so far, though I'm a fairly light user. The only issue I've seen is TWRP 3.5 seems to get stuck in a boot loop when rebooting to recovery from lineageOS 19.1 but didn't when rebooting from TWRP. My new laptop doesn't seem to like fastboot, so I need to try lineage recovery install from another computer and see if that fixes it. I know TWRP isn't officially supporting Android 12 yet, and suspect this isn't an issue with your build. This did prevent me from trying Magisk, so that will need to wait too.

Can't say I'm a fan of the new "Material You" theme. The new quick tiles are annoyingly large. I need to figure out how to get a sound toggle tile to work right. But again, those are general OS issues and nothing to do with the build you did!

I'll see how it fairs over the next couple days and let you know, but so far seems good. Thanks for the build!
 

jeremywh7

Senior Member
Sep 16, 2013
259
125
Indy
Motorola Atrix 4G
Moto X
I installed the 16 Apr build Sun night using NikGapps 13 Apr stock (excluding Pixel Launcher since I'd had issues with it on the prev build) and the Fi add-on. Other than having to clear storage/cache for Conn Services and Fi, everything has been working really well. Setup was much smoother this time, MotoCam2 is really nice, and also no random reboots like on the 22 Mar build.

When upgrading from the 22 Mar to 16 Apr build though, I got a boot loop and had to clean install. I'd had the same issue in the past back when I used the unofficial 18.1. Is this a known issue? Official 18.1 builds never had this problem. I guess next time I'll first try disabling security unlock.

Btw, is this really 12.1 and not 12.0? The phone settings only indicate '12'. :) I used the 'S' gapps and not 'SL', fwiw. Thanks!
 

jtnc

Member
Dec 4, 2012
46
18
The 4/16 build has been running fine for me the last few days. I may need to decrypt to get a working recovery it seems. Other than that the couple things that look like they're missing from settings are:
  • I don't see anywhere to adjust the color palette. It's purely based on wallpaper derived colors. Sounds like stock 12 supports modifying, does lineageOS not? I really don't like having my colors dictated by the wallpaper.
  • Accesibility/Vibration & Haptic strength -- this menu has no haptic strength control despite the name. It'd be nice if it did. I know this has existed in at least some of the past ROMs, though can't recall if that was Havoc or LineageOS.
Otherwise bluetooth, wifi, calling, messaging all seem good as does interaction.

I also ended up using NikGapps 13 simply because that was what I had good luck with on 18.1.

I'm not sure about the bootloop jeremywh7 saw as I went directly from 18.1 to the 0416 19.1 build with a clean install. If there's another test build and once I get a recovery working, I can try doing a dirty flash for an upgrade. I know on 18.1 I was able to dirty flash w/o a problem.
 

ThE_MarD

Recognized Developer
Dec 10, 2014
3,359
3,836
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo @jeremywh7, LineageOS 19.1 is Android 12.1 so you must use Android 12.1 (12L) GApps which might be your bootloop issue.

The color palette is indeed picked by the wallpaper which is annoying... It thinks my background of my family should mean my color is a skin-colored pink... oof lol
 

jtnc

Member
Dec 4, 2012
46
18
The color palette is indeed picked by the wallpaper which is annoying... It thinks my background of my family should mean my color is a skin-colored pink... oof lol

Yeah, I'd agree that's not a great choice on it's part! So I take it that for LineageOS 19.1 at least it's expected to have no control of this? I was under the impression that with stock Android 12 you could disable the automated picker and manually choose a color which I don't see in 19.1. If true that sounds like going with a 3rd party tool do do so
 

wkn000

Senior Member
Jan 19, 2017
124
60
@ThE_MarD

Congrats!!! First official Lineage OS 19.1 payton build from the roaster :)

My question: Is it safe to dirty flash 19.1 as upgrade from an (last) official build of 18.1 (No GApps installed)? Wait for TWRP 3.6.1_11 or latest 3.6.1_9 is working for that?
 
  • Like
Reactions: ThE_MarD

WackyDoo

Member
Mar 29, 2012
11
6
Ottawa
I did a factory reset and have flashed the first official build of LOS 19.1. I then immediately sideloaded NikGapps-core-arm64-12.1 before the first boot but I only got the LOS startup dialog, and there doesn't seem to be any Gapps.

I also tried the same proceedure but using MindTheGapps-12.1.0 (20220416), but no still no Gapps.

Are there any tricks for loading Gapps using adb and lineage recovery, or does this only work with TWRP.
 

WackyDoo

Member
Mar 29, 2012
11
6
Ottawa
Immediately, w/o a reboot? You have to reboot into recovery after flashing an A/B ROM (to switch to the newly flashed ROM - #6 in the install steps) before flashing Gapps/etc. ;-)
I was following the upgrade instructions ( https://wiki.lineageos.org/devices/payton/upgrade ) since I was coming from the previous version of LineageOS?? The upgrade instructions specifically mention that we should not reboot before flashing extra addons like gapps.

I will try the install instructions linked in the OP later, skipping the unlocking and, I guess, not running the copy_partitions script since I already ran than with the previous ROM.
 
Last edited:

Whoops!

Member
Feb 2, 2012
31
11
Lancashire
I followed the same instructions and got the same result coming from the previous lineage version. I went back into the lineage recovery, reflashed the GAPPS and rebooted. Had a little trouble signing into my Google account as the 2 step authentication notification struggled to come through on the phone. I got around this by setting myself up as another user rather than the "owner". Everything seems to be working OK except the bluetooth connection to my car. The phone is connected and contacts appear on the car dashboard along with the battery and signal strength indicators- but calls don't come through the car - only to the phone's own speaker and microphone.
 

skiwarz

Member
Jan 31, 2018
33
5
I followed the instructions and it updated to 19.1 without issue. Now, though, about every 5 minutes or so I get a "popup" or whatever it's called that says "Intent Filter Verification Service keeps stopping". Somewhat annoying. If I "force stop" the Intent Filter Verification Service app, it stops doing it, obviously. But upon reboot it starts right back up again. I don't have any of the gapps installed, but I do have microg, unsure if that's related. Overall though, it works pretty well.
 
Last edited:
  • Love
Reactions: kaidelorenzo

Finway

Member
Mar 17, 2022
9
0
To avoid boot loops,
Keep in mind to reboot to recovery between each sideload

Sideload lineage 19
Reboot to recovery
Sideload gapps
Reboot to recovery
Sideload Magisk
Power Off
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    [...]

    My plan for putting the Moto X4 back on LineageOS is as follows:

    * Now that stock seems to be healthy, go through the LineageOS instructions again, including doing the a/b partition copy/sync.

    * See if any of the misbehaviors with the latest image or the wifi stall with gapps are still happening.

    * If it all works, try to get Llama running or maybe get Macrodroid to simulate it. Advice always welcome if anyone's got ideas, it looks like starting in Android 11 Google made it nearly impossible for an app to toggle wifi, no matter which API level it's targeted for...
    I finally got around to dusting off this phone and trying out the above plan. This time everything worked like a charm, the latest Lineageos is up and running with MindTheGapps. So if anyone else hits this problem, the answer seems to be "install stock and try again."
  • 8
    2okPze5.png



    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, 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.



    Introduction

    This is the official Lineage OS thread for the Motorola Moto X4, codename payton.



    We support all the T-Mobile, International, and Project Fi variants, as their bootloaders are unlockable, while we can't support the Verizon and AT&T variants, as their bootloaders are permanently locked.



    How to install via Lineage Recovery

    Please follow the official instructions



    HOW TO UPDATE LINEAGEOS WITH LINEAGE RECOVERY

    Please follow the official LineageOS Wiki instructions for our device




    How to install via TWRP

    1. Boot the newest TWRP .img from the Official TWRP Project Site.
    2. IF YOU ARE COMING FROM STOCK AND WANT TO INSTALL CUSTOM ROMS FOR FIRST TIME, INSTALL "Copy Partitions Zip" FROM POST #2
    3. In TWRP, click "Wipe", "Format Data", then type "yes" as prompted.
    4. ADB sideload the newest weekly
    5. (Optionally) You can flash the newest TWRP Installer also found at the Official TWRP Project Site if you wish to maintain TWRP, though the pre-installed Lineage Recovery instance will do everything you need it to in most cases. We don't recommend or support the use of the TWRP installer, as it is overwritten on every update (will need to be re-installed every update), and has no addon.d-v2 persistence.
    6. Click "Reboot", then choose "Recovery", this will boot you to either Lineage Recovery or TWRP depending on your choice to install TWRP or not. It is necessary to reboot between ROM flash and GApps/Addon flash due to verity/slot-swap logic.
    7. (Optionally) Flash GApps
    8. Reboot


    How to upgrade from the previous version via Lineage Recovery

    Please follow the official instructions



    How to upgrade from the previous version via TWRP

    1. Boot the newest TWRP .img from the Official TWRP Project Site.
    2. IF YOU ARE COMING FROM STOCK AND WANT TO INSTALL CUSTOM ROMS FOR FIRST TIME, INSTALL "Copy Partitions Zip" FROM POST #2
    3. In TWRP, click "Wipe", then select "advanced" and select "cache" and wipe.
    4. ADB sideload the newest weekly build or copy it to your device and install the zip
    5. (Optionally) You can flash the newest TWRP Installer also found at the Official TWRP Project Site if you wish to maintain TWRP, though the pre-installed Lineage Recovery instance will do everything you need it to in most cases. We don't recommend or support the use of the TWRP installer, as it is overwritten on every update (will need to be re-installed every update), and has no addon.d-v2 persistence.
    6. Click "Reboot", then choose "Recovery", this will boot you to either Lineage Recovery or TWRP depending on your choice to install TWRP or not. It is necessary to reboot between ROM flash and GApps/Addon flash due to verity/slot-swap logic.
    7. (Optionally) Flash GApps
    8. Reboot


    Notes

    Official Lineage OS builds will not pass CTS/SafetyNet -- due to the AVB flag's "red" status. (Magisk works fine, though is not supported.)
    Official Lineage OS builds ship with full treble compatibility, with VNDK runtime enforcement! This means that unlike most "ported treble" you'll see, ours is just as it would be from the OEM, and can run any GSI (yes, even Pie!) without need for hacks or additional flashable zips. We relabeled /oem as /vendor (as /oem isn't used in custom ROM's anyway). To use a GSI, flash official Lineage, then flash your GSI, it's that simple! Flashing a factory image will likely write over /oem and remove the mock vendor image. Please don't report GSI bugs here, report them instead to the GSI's maker.


    Download


    Official:

    Unofficial test builds:



    Google Apps (GApps)

    MindTheGapps:


    GCam Mods



    Contributors

    erfanoabdi, SevenRock, ThE_MarD, Moto sdm660 devs, the Lineage Team

    Source Code: https://github.com/LineageOS

    ROM Firmware Required: Official Pie
    4
    Important extra links

    Payton Stock firmware:

    Copy partitions link for download can be found on the LineageOS Wiki install instructions for Payton page here:
    4
    Heyyo, a new test build is going up! lineage-19.1-20220416-UNOFFICIAL-payton contains Moto Camera 2 app and fixes for offline charging as well


    VERY special thanks to SevenRock for doing the majority of the LOS 19.1 trees for Moto sdm660 and payton (y)
    3
    @rseiler @skiwarz

    I tested flashing NON-HLOS.bin and it did not work. And I was wrong, there is no VZW variant of this phone.

    However I did fix my issue. There was something wrong with the system_b or oem partition, I'm guessing it was outdated. Or there is something wrong with the copy-partitions zip that is linked in official lineageos guide. Because it's a possibility I didn't even use it because the stock firmware occupied system_b and oem.

    These are the steps I took to restore LTE to the device on LOS 19.1
    1) Download "PAYTON_RETAIL_9.0_PPW29.69-40-4_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip"
    note - this is the latest release for any version of the phone and is interchangeable with other versions like fi/android one. so flash this file specifically because no other version has this latest version of the firmware
    https://mirrors-obs-2.lolinet.com/firmware/motorola/2017/payton/official/RETAIL/
    2) Boot the phone to bootloader/fastboot and flash this firmware
    note - if you still insist on using a different firmware you will need to check the flashfile.xml for what commands to run, filenames and partitions may be different than below.
    Code:
    fastboot.exe getvar max-sparse-size
    fastboot.exe oem fb_mode_set
    fastboot.exe flash partition gpt.bin
    fastboot.exe flash bootloader bootloader.img
    fastboot.exe flash modem NON-HLOS.bin
    fastboot.exe flash fsg fsg.mbn
    fastboot.exe flash bluetooth BTFM.bin
    fastboot.exe flash dsp dspso.bin
    fastboot.exe flash logo logo.bin
    fastboot.exe flash boot boot.img
    fastboot.exe flash system system.img_sparsechunk.0
    fastboot.exe flash system system.img_sparsechunk.1
    fastboot.exe flash system system.img_sparsechunk.2
    fastboot.exe flash system system.img_sparsechunk.3
    fastboot.exe flash system system.img_sparsechunk.4
    fastboot.exe flash system system.img_sparsechunk.5
    fastboot.exe flash system system.img_sparsechunk.6
    fastboot.exe flash system_b system_other.img
    fastboot.exe flash oem oem.img
    fastboot.exe erase carrier
    fastboot.exe erase userdata
    fastboot.exe erase ddr
    fastboot.exe oem fb_mode_clear
    fastboot.exe reboot bootloader
    3) Boot the phone and get past initial setup. Signing into Google is not required.
    note - This may not be required. I tested without booting it and went straight to flash LOS and it worked but I didn't test mobile connectivity/didnt use sim car
    4) Turn off phone and boot into bootloader/fastboot
    5) Flash the lineage recovery
    Code:
    fastboot flash boot lineage-19.1-20220517-recovery-payton.img
    6) Reboot directly into recovery either by the bootloader menu menu or fasboot
    note - i havent test doing it by fasboot, but should work
    Code:
    fastboot reboot recovery
    7) Perform Factory Reset
    8) Apply Update, From ADB, and flash the lineageos system image
    note - DO NOT flash the copy-partitions zip from the documentation. This file can cause a lot of issues with modem drivers or mobile network connectivity
    Code:
    adb sideload lineage-19.1-20220517-nightly-payton-signed.zip
    [OPTIONAL] Reboot phone to recovery to flash gapps and magisk BEFORE booting lineage for the first time. You need a reboot before flashing anything else so that recovery can initialize/load the new LOS data.

    Now the phone will be able to connect to the VZW LTE networks. After initial setup, lineage disables mobile data automatically. You need to go into settings and re-enable mobile data.
    3
    I only boot to TWRP temporary for "some" operations. Usually, Lineage recovery is installed permanent and has no issues at all with OTA updates done with System Updater. Reboot after update and everything is fine, no thinking about slots and so on.