[DISCONTINUED][ROM][PAYTON]LineageOS 18.1

Search This thread

skiwarz

Member
Jan 31, 2018
48
9
Heyyo @skiwarz, tbh I'm unsure if there's a way to essentially disable APN switching, other than modifying the APN configuration and deleting the one you don't want.

As for the color bug? That is a problem with how Motorola's screen calibration is setup... afaik all Motorola devices have that issue and why we eventually ended up dropping LiveDisplay color profile support because upon reboot it would make your phone look like the screen was damaged the colors were so messed up lol...
I think I found the appropriate apns-conf.xml settings to change... 3 days and no issue, I'll post when I'm sure it's fixed...

Is there anything I need to do to disable the livedisplay stuff? I'm on the April 5th build, and it's still there, able to adjust it and everything. I have all the settings under "LiveDisplay" turned off.
 
Last edited:

IronTechmonkey

Recognized Contributor
Feb 12, 2013
9,529
16,319
As for the color bug? That is a problem with how Motorola's screen calibration is setup... afaik all Motorola devices have that issue and why we eventually ended up dropping LiveDisplay color profile support because upon reboot it would make your phone look like the screen was damaged the colors were so messed up lol...

Indeed. Here is how it looked on a Moto G7 Power:

.

In that case, toggling color saturation back and forth between values fixed until next instance. IMO we are not missing much do to the fix in LOS, in fact I'm glad to have the option to be free of dependence on location fix for what is now called Night Light in stock. BTW, thanks for your continued work in development.
 
Last edited:
  • Like
Reactions: ThE_MarD

Althaea

New member
Oct 19, 2018
2
1
Hi all! I would like to finally (…) update my Moto X4 from LineageOS 16 to a current version.

Q1: Would I need to go back to the stock ROM to get updated firmware?

Q2: I _think_ I had updated from 15 to 16 before that, but did not update any firmware for that. How do I find out which firmware version I have, and whether it needs updating?

Q3: Also, the 'stock rom' link at the start of this thread gives a 404... so if I need it, I have no idea where to get it... Would the official Motorola resetting software work? (bootloader unlocked, LOS 16 installed)

Thank you!
 

IronTechmonkey

Recognized Contributor
Feb 12, 2013
9,529
16,319
Hi all! I would like to finally (…) update my Moto X4 from LineageOS 16 to a current version.

....

Q3: Also, the 'stock rom' link at the start of this thread gives a 404... so if I need it, I have no idea where to get it... Would the official Motorola resetting software work? (bootloader unlocked, LOS 16 installed)

Thank you!

Speaking only to the quoted portion above, I have used the Motorola RSA to reimage several devices including a Payton device on which some previous action caused it to register no version of baseband and which had issues with fastboot. On all devices including that problematic payton the reimaging was successful, and I was able to grab the boot file from the downloaded material in order to root with magisk. In case you need to or just one to start from latest stock, here is sd_shadow's thread for the Moto RSA. https://forum.xda-developers.com/t/...ant-lmsa-motorola-lenovo-only.3951714//unread
 

skiwarz

Member
Jan 31, 2018
48
9
@skiwarz unfortunately all you can really do after a reboot is to change those color profiles to get your color saturation to the appropriate levels again as the bug is with Motorola's proprietary blobs
For what it's worth, I spent all day trying to find the source of this, I got as far as determining that it only occurs with a full restart. Ie doing "adb shell am restart" does not cause the color/saturation issue...
 
My power button stopped working many months ago. I was able to boot up the device trough fastboot using "volume down button + charging cable" combination. Today even the volume down button stopped working and I forgot to charge the phone because I'm an idiot 😂. It died. I've only had bad experiences with repair shops. If no one else has any ideas, I would like to thank from the bottom of my heart everyone involved in this project, starting from Marc, Erfan and the Lineage Team for supporting this great phone that I loved till the end.
RIP
 
  • Wow
Reactions: ThE_MarD

ThE_MarD

Recognized Developer
Dec 10, 2014
3,457
3,929
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo @Francesco Libera , oh noes! Buttons tbh should be pretty cheap if you're willing to open up the device and fix it yourself tbh, that? Or open it up and short out the cables to the button that's broken in order to boot lol... If you're lucky?

The button might just need to be cleaned with isopropyl and a cotton swab if maybe there's crap stuck in it? Tbh I suspect that's why my volume down button on my Payton sucks and I have to massage it the right way in order to make it register, so it could be the case for you too? It seems Payton isn't a very good design for keeping crap from getting caked in the mics, speaker or buttons lol oof
 
  • Like
Reactions: Francesco Libera

simonfunk

Member
Apr 17, 2022
5
2
sifter.org
Hey all, did my first Lineage install (18.1) on my Moto X4 and everything seems to work fine except the GPS. This was a few days ago and I've triple checked all related settings and such and given it plenty of time to come up, but OsmAnd still says "position unknown" and camera images have blank GPS info in their EXIF.

Is this a known issue? Or, any suggestions for further diagnosing it? (I searched a bit and didn't find anything definitive, some hint it might be a new problem with 18.1 but unclear how broadly or if there's a solution.)
 

ThE_MarD

Recognized Developer
Dec 10, 2014
3,457
3,929
Grande Prairie
LeEco Le Max 2
Moto X4
@simonfunk , hmm, well if you submit logcat to this thread we can double-check, but usually something like GPS not working is device firmware or persist partition.

You can try to just download the stock ROM and then flash the persist.img to your persist partition and see if that fixes the issue? The link for stock ROM is in the second post of this thread.

Just to check too, you were on stock ROM Android pie before coming to LOS?
 

simonfunk

Member
Apr 17, 2022
5
2
sifter.org
@simonfunk , hmm, well if you submit logcat to this thread we can double-check, but usually something like GPS not working is device firmware or persist partition.

Want me to grep any particular lines?

You can try to just download the stock ROM and then flash the persist.img to your persist partition and see if that fixes the issue? The link for stock ROM is in the second post of this thread.

If you mean this link, it's giving 404 atm: https://mirrors.lolinet.com/firmware/moto/payton/official/

Wouldn't overwriting persist.img permanently lose some relevant hardware data (calibration values and such)?

Just to check too, you were on stock ROM Android pie before coming to LOS?

It's possible it was (stock ROM) Oreo, now that you mention it (but unlikely anything before that, based on purchase date--Feb 2018). It was my wife's phone, and she doesn't recall what the last update was. Would that be enough to cause problems?
 

ThE_MarD

Recognized Developer
Dec 10, 2014
3,457
3,929
Grande Prairie
LeEco Le Max 2
Moto X4
@simonfunk you can search your logcat for anything related to GPS and persist too and see if there's any errors there

It looks like they relocated the old device firmware to another server, so I updated the link in the second post and here it also is:


Persist is a read-only partition and tbh I've reflashed persist on quite a few of my devices after breaking it when trying all kinds of changes over the years, so it is safe to overwrite. If you want? You can make a backup image of it before you flash a new image to be safe.

Here's the terminal command to make a backup of it:
Code:
dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persistbackup.img

Our device tree and vendor blobs are based on pie for most of the important payton blobs, so odds are yeah it may not work correctly with oreo blobs
 
  • Like
Reactions: simonfunk

simonfunk

Member
Apr 17, 2022
5
2
sifter.org
After re-installing stock Pie and then re-installing Lineage, I finally solved the problem by installing a different version of OsmAnd! :( And I was using Telegram to file-transfer (not image-transfer!) my camera images to my linux machine to read the exif gps data, and it turns out Telegram strips (only) the GPS data from exif, even when sending them as raw files, not images(!). So, a confluence of my own issues, not a Lineage problem. Sorry to bother y'all, thanks for the help, and maybe someone can learn from my mistake. :)
 
Last edited:

Dukenukemx

Senior Member
Jul 24, 2008
1,129
52
Jersey
Can anyone help I tried updating my Moto X4 to a newer version of LineageOS 18.1 and now it just boots into TWRP.
 

Dukenukemx

Senior Member
Jul 24, 2008
1,129
52
Jersey
I solved my problem by going back to TWRP 3.5.2. DO NOT upgrade beyond this otherwise it just always boots into TWRP. I ended up installing 19.1 instead of this rom.
 

ThE_MarD

Recognized Developer
Dec 10, 2014
3,457
3,929
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo, Glad to hear you got it solved @simonfunk! Enjoy! :)

@Dukenukemx it seems the prebuilt bootctrl HAL and libgptutils to try and maintain compatibility with stock ROM is meow causing issues. I have a test build of TWRP for payton based on TWRP-11 branch and source-built bootctrl HAL and libgptutils.

 
  • Like
Reactions: IronTechmonkey

Althaea

New member
Oct 19, 2018
2
1
Speaking only to the quoted portion above, I have used the Motorola RSA to reimage several devices including a Payton device on which some previous action caused it to register no version of baseband and which had issues with fastboot. On all devices including that problematic payton the reimaging was successful, and I was able to grab the boot file from the downloaded material in order to root with magisk. In case you need to or just one to start from latest stock, here is sd_shadow's thread for the Moto RSA. https://forum.xda-developers.com/t/...ant-lmsa-motorola-lenovo-only.3951714//unread
Hi! Thank you very much for your reply and the link! (and sorry for the long delay...)
 
  • Like
Reactions: IronTechmonkey

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    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 17.1 via Lineage Recovery

    Please follow the official instructions



    How to upgrade from 17.1 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


    XDA:DevDB Information

    Lineage OS 18.1, ROM for the Moto X4



    Contributors

    erfanoabdi, ThE_MarD, Lineage Team

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

    ROM Firmware Required: Official Pie
    7
    Heyyo, a new test build is up! lineage-18.1-20211022-UNOFFICIAL-payton contains tweaks to the brightness during always on display and also some blob updates from the latest Lake build released.

    Mainly need automatic brightness tested in all scenarios (AOD, in light areas, dark areas, while charging in dark areas, etc)


    As for LineageOS 19.0? I have it synced on my PC meow, I just need time to start building it for all my devices
    5
    I'm on a May version of the build and have been having this issue since the beginning. I use a headset because of this, or I have to talk loudly.
    @maelopam @ThE_MarD

    I finally found the solution to the Mic issue. It was dust inside the tiny Mic hole (along side the finger printer) in the front of the smartphone. Also cleaned the tiny hole in the back side of the phone. Used isopropyl alcohol on both hole and vouila! Problem fixed!

    Source: https://www.reddit.com/r/MotoX4/comments/83cwss/_/dvhjaf3
    5
    Heyyo @doug.passerini , I asked other Motorola maintainers and they said that the provided fingerprint kernel drivers are very bare, so it isn't something that would be simple to do as we would need to entirely recreate the driver from scratch and tbh it's well beyond my skill level... o_O
    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: