yashsingh1/xdaforums huggingface dataset:
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Korin67:
Thank you for your reply. I do not have that backup, but baseband, IMEI is okay now, I can see two IMEI's. No, I did not format(erase) modemst1 and modemst2. Since I have correct IMEI's I do not think that process is needed. What the problem is my phone only receives 3G, it does not receive 4G at all. In this situation I should format modemst1 and modemst2?

Edit: I attached a logcat file. Scenario is first set the preferred network to LTE/WCDMA, receiving 3G signals, next switch to LTE only, no signal received, then back to LTE/WCDMA, 3G signal resumes. I hope this help to solve the problem.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] KostasVaf:
Hey thanks for replying!

So, with LTE on and outside, very few buildings around, it took about 5 mins to get "3D Fix". About 5 mins later I retested with LTE off, it got a fix pretty fast, but I was at the same location (not sure if it counts).
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
Hmm, if it does get 3D fix it should technically work fine... I assume this issue didn't happen on stock?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] KostasVaf:
I don't know if somehow just downloading the app changed something in the settings. I'll test it in a car, to track me, as soon as I can. No on stock it was fine and on LOS 17.1 was fine (I had flashed that the first time but after a while I went back to stock, had signal issues as mentioned above so I chose to flash 18.1)
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
That is strange, considering the fact that the GPS configuration hasn't changed at all from 17.1 to 18.1.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] KostasVaf:
I've seen another thread about gps problems on los 18.1 for other devices too. Some said a factory reset fixed it, didn't work for me. Some said to clear AGPS and then it will work. I didn't know at that time what this meant, but I know now with the GPS Test app you said. I'll test whatever I have and I will inform you about the outcome
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] KostasVaf:
So, I tested it in the car twice with lte on and once with lte off. It seems to work fine. It tracks the car ok, just a little before the actual position but I think that's normal. Not any delays or lags. GPS Test needs about 20mins to lock inside the house but outside it locks pretty quickly. Gps speed matches with the car's speedo.

The fix is either the GPS Test app that reseted the gps or something like this I don't know, or the official motorola drivers that I installed (I did not test it after the drivers only).
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Korin67:
You seem recover IMEI. Situation is the same to me. Difference is that my model is reapac. My problem is my phone (LOS18.1) does not receive 4G signals. It only receive 3G. You have VoLTE problem now, how about LTE signal itself. Does your phone receive LTE signals? I want to know this issue is only for my model or not.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Hausemaster:
I do receive LTE signals on my device (los 18.1) I only have an issue with VoLTE...
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Korin67:
Okay, thank you for your reply. Then, my issue is more serious. For mine, 3G phone, data are perfect, but not LTE signal. When I switch to preferred network as LTE only, the antenna mark shows x in it. Seems to refuse signal reception.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Hausemaster:
Is there no signal at all when you switch to 4G? (what happens for me is that 4G data works, but calls go through 3G)
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Korin67:
Yes, when I switch to 4G, the phone does not receive anything. I checked with data SIM that support 3G and 4G. If I switch LTE/WCDAM, the data connection established with 3G only. Then, switch to LTE only, the phone stop receiving. Since we are using same LOS18.1, you receive LTE signal, but not mine. It might depend on the model (or baseband?). Mine is XT1797.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Hausemaster:
Mine is XT1795
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Korin67:
Dear @JarlPenguin, please include my issue in your to do list.

If you need whatever logcat, I am willing to provide it to solve the issue.

Thank you.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
Hi, I personally can't reproduce your issue. Same thing I said to Hausemaster applies here.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] GabrielN11:
Hi,

I've been suffering from random reboots since I upgraded from 17.1 to 18.1, it happens every day and seems to be totally random. After today's crash, I tried to get the 'last_kmsg' log, but it doesn't exist in the 'proc' directory, there is a 'kmsg' though.

How should I proceed? Thank you and sorry for any english mistakes.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Korin67:
Thank you for your consideration. If I were you, I would respond in the same way. Sorry asking an impossible request.

BTW, someone out there have experience install different type of stock? I mean, what happens if I install reteu stock, for example, to my XT-1797 (retapac). This might break my phone into brick state?

I want to ask before I might damage my montana.

Waiting for your experience.

Edit: Just say it is a stupid idea is okay. LoL.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Korin67:
deleted
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
You should install either retapac or retail stock.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Korin67:
Thank you for the information. I will try.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] buddhist_monkey:
Hey guys!

Facing some problems and need your help quite urgently...

Since the last ota update trebuchet crashed several times, but started running right away. Last night the phone shut down completely. When I restarted it in the morning, there was only some strange notification that offered to reset to factory settings. This didn't work, too.

All attempts to restore backups failed. The following error was shown: "Error opening: '/data/system/packages.list' (no such file or directory)"

I've checked via TWRP, the file is there...

My last attempts produced "extractTarFork() process ended with ERROR: 225"

Any ideas?

Thanks in advance!
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] xproot:
The ROM is not working on my device model XT1791

First time boot I tried to do it without wiping the default factory update to see what would happen. After some time it showed an encrypting screen that lasted for like 10-20 minutes, then it went back to the boot animation and didn't do anything else

Second time I wiped the data like I'm supposed to and tried booting, it did nothing for like an hour, just on the boot animation
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
Why are you using TWRP in the first place? The only supported recovery is LineageOS recovery - TWRP can cause problems in Android 10 and above

Did you perform a factory reset in LineageOS recovery?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] buddhist_monkey:
Thanks. Wasn't aware of this.

No OS is found and I wasn't able to connect to PC in bootloader.

Still, any suggestions?

By the way, I wasn't able to use an old backup of stock 8.1.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
You have no choice but to factory reset. Make sure you have a backup of EFS and Persist as well, just in case you lose IMEI. Also, the wiki contains clear instructions on how to install the ROM, so make sure you follow them.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] xproot:
Was not aware of this either, so I ignored the recovery. is it as good as TWRP?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
No, it's not as capable as TWRP.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] xproot:
I got it to boot but how do I turn off the LED light when its charging?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] xproot:
Works, but I didn't know about having to backup my IMEI or else it would get erased and is there any way to recover it? (I'm guessing not :( )
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
Did you lose your IMEI? If not then there isn't a problem, you can back it up now.

If you did try going back to stock - remember to wipe modemst1 and modemst2
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] xproot:
I thought I did but it was some weird bug
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Korin67:
Hello montana owners,

I have a "half-broken" montana (XT1797, RETAPAC). I know I was silly because I did not backup /persist and EFS. Before totally give up about my montana, I want to know what happened to my phone.

The situation is as follows:

When go back to the latest stock ROM, I can see the baseband (ends with the letter 'u'). But IMEI=0, ofc no communication with SIM is possible. Then, came back to custom ROM, LOS18.1. Under this custom ROM I can see the baseband (the same as that in stock ROM but the last letter changed to 'R'). Surprisingly, I can see IMEIs. Yes, I can use SIM, but only with 3G. It does not try to receive LTE signals. So I call my montana "half-broken". I checked /persist folder. It exists but EMPTY; No file there.

I tried erase modemst1/2 approach without success. First of all why custom ROM can get correct IMEIs with empty /persist?

I do not expect recover my montana. I want to know what is the real reason why my montana is not fully functional. Any suggestion to analyze my montana is appreciated.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
On LineageOS you should check /mnt/vendor/persist.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Korin67:
Thank you for your quick help. Yes, I can see files there.

Back up this folder is a good idea? Should I copy these files to the empty /persist? One more suggestion please.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
Would you mind trying to flash stock 7.1 (with exception of bootloader and gpt) and erasing modemst, and then applying the OTA updates?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Korin67:
If possible I will. However, I only find 8.1.0 Stock ROM for RETAPAC. Yes, I could find stock 7.1 for RETAIL. But when I tried, I found that baseband is unknown at that time.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] MrNice:
Hi

The issue mattdpollard had is exactly what I have right now.

I own a Samsung Galaxy S6 with LOS 17.1 for only 3 months. I did one weekly update fine but few weeks later the same process failed as explained above. I had to recover from a nandroid backup.

I try to solve that now but I didn't know this is a outlined issue. As JarlPenguin said this issue is now fixed, could you let me in what LOS version 17.1 or 18.1 and a link to it.

I don't think LOS 18.1 is reliable for Samsung S6. Could you confirm?

So, I stop my test here and will recover with my nandroid backup again.

I hope you have all these answers. Advice are welcome as I am not very skilled in this field.

Thanks
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
This is a forum for the Moto G5S, not the Samsung Galaxy S6.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] MrNice:
I understand that but as far I understand this bug is common at least for the 2 devices and if I can know what is the version where it has been fix I could try the same version for my device. At least I could get the date of the fix or some other clue to find it myself. Am I not right?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
Often these bugs are device-specific. Especially considering the fact that the S6 is a completely different device.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Korin67:
Hello, again. I am still struggling with my montana. You said you can recover your montana up to receive LTE signal (except for VoLTE issue). You recover by going back to stock ROM then apply OTA, right? In your case you went back to Oleo or Nougat? I was advised to go back to Nougat. I cannot find Nougat stock ROM. If you tried Nougat, may I know where you find it?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
RETAIL version works for all variants (as expected), except XT1799-2
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Korin67:
I tried RETAIL version of Nougat. The baseband shows unknown. Is this common? How can I apply OTA from here. Sorry asking basic operation.

Edit: Okay I am now with 7.1.1. Baseband is unknown. System update said the system is up to date, no update happened.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
On Nougat try the persist fix I mentioned above.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Korin67:
Sorry my understanding is so slow. Now I am Nougat 7.1.1. The baseband shows unknown. Then, I did

fastboot erase modemst1

fastboot erase modemst2

Then reboot. System update says the system is up to date.

So, I have to use Rescue and Smart Assistant Tool to update to 8.1.0. Is this what you mean?

Edit: Solved. Thank you for the advice.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Korin67:
With the advice of OP and my own research, I can finally recover IMEI for my montana. I write the steps I took. Since OP knows everything about montana and related phones, his explanation is kind of difficult for newbies like me. So I offer description that could be understood by anyone. The essence for this operation is to do 'persist fix', that is not clear for newbies. For detailed explanation about persist fix, refer to the article in other thread that is targeted to 'potter'. For short, you should change ownership for the folders (and their contents) of /persist/rfs and /persist/hlos_rfs. Please keep in mind that this ownership change operation only be done under Nougat stock ROM. So, our 1st step is to install Nougat to your phone.

(1) Download Nougat stock ROM.

Whatever software channel is for your phone, find Nougat stock is not easy. Try find the Nougat stock for RETAIL.

(2) Install Nougat to your phone

Install with fastboot is quite straitforward. I was advised by OP to avoid flash bootloader and gpt. I do not know the reason, but I did it accordingly. You might be disappointed when you boot RETAIL Nougat stock. The baseband shows 'unknown'. Of course, you cannot see IMEI. But relax, these are not essential at this stage.

(3) Install TWRP

No need to explain here I guess.

(4) Install Magisk

Under TWRP you can install Magisk to your Nougat stock ROM.

(5) Reboot to your Nougat ROM

You should see Magisk logo in your Nougat. Then enable developer options and enable ADB debugging.

(6) Connect your phone to PC

You connect your phone to PC via adb. adb devices should show your phone is connected as device. Then type su. With the aid of Magisk you can get root privilege. Then do

ls -l /persist

you should show various files. If not, check the steps. Still you do not see anything, no help could be possible, sorry.

After this follow 'persist fix' operation (change the ownership).

(7) Reboot to bootloader

You can do:

fastboot erase modemst1

fastboot erase modemst2

I do not know if these operations are really needed or not. Just do it to keep everything for sure. Then, reboot to the system. You might be disappointed again because you cannot see IMEI. This is because baseband is unknown, do not worry, go ahead.

(8) Install the latest Oleo ROM

Go into your latest Stock ROM. Now you should see correct baseband, and IMEI! Yes it is back.

I hope this description works for you. Thank you for your reading.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
You shouldn't flash bootloader and gpt because it'll try to downgrade the bootloader and partition table which will result in a hard brick that can only be fixed with a working blankflash.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Korin67:
Okay, very important point. I will add it into my knowledge.

Thank you.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Hausemaster:
Just curious, does the stock rom get signal after following your fix, and also, does VoLTE work on stock and custom ROMS?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Korin67:
Yes, it is very strange. Now, I can get signal with Oleo stock because I could recover IMEI. Surprisingly, it only gets 3G, no LTE. Situation is exactly the same as in LOS18.1. You said you lose VoLTE. Can you use VoLTE with the Stock? In my case I lost LTE for both Stock and Custom ROMs.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Hausemaster:
I need more info because I never got signal with the stock ROM, i sent you a private message please respond to that...
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] eduardo_claro99:
Hello

I test Lineage OS for montana

and I noticed a bug

when using the fingerprint as a navigation button the device heats up a lot, it gets slow and locks up forcing me to press the power until it turns off, other than that it's very stable, good job
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Yoge2515:
Need a solution for Incoming and outgoing calls for Jio sim. Although internet works.

As I have deleted Pixel Experience. Didn't took any back up. So lost the Pie ROM. Jio Sim Was working fine with pie.

ThankYou.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] sd_shadow:
You may need to add an APN for jio
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Yoge2515:
Tried APN settings through YouTube but not working.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Hausemaster:
Use the jio call app from play store, just be sure to keep data and location on all the time, it works for me...
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Yoge2515:
Okay I'll try this.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Yoge2515:
thank you it works.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Hausemaster:
Set the location to allow all the time otherwise you will have issues with incoming and also, keep your mobile data and location always enabled to make and receive calls...
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Hausemaster:
An important notice for jio users,

If the rom you use doesn't currently support VoLTE, then download this app to make and receive calls

JioCall – Apps on Google Play

HD Voice, Video calls, RCS and Jio FixedLine number on your smartphone!

play.google.com

And set it up, then you will be able to make calls without native VoLTE support, but a few things are to be kept in mind to use this app without issues,

1. Your mobile data must babe enabled all the time, because the app services only work with jio mobile data for now, so, connecting to a wifi network might prevent you from getting any calls

2. You have to keep location enabled at all times, I don't know why but calls won't work without location being on, and also, if you use android 10 or Android 11 you have to manually change the app location access from 'Only while using the app' to 'Allow all the time' otherwise incoming won't work unless the app itself is open

3. Don't worry if you run out of mobile data, this app can work normally even if your data has been exhausted, as long as your mobile data is on regardless of the remaining data

4. Calling from this app won't use your data, so, don't worry about it, this app needs data only to maintain a connection with the jio servers, that's all, and that's the reason calls will still work, because the 5-10kbps speed after exhaustion of your data is good enough for the app to be connected to the jio servers...

Edit: You must never enable battery saver otherwise calls won't come in...
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Yoge2515:
Bug report.

Sometimes chrome get closed while opening. Home page is shown and closed. No error report pop-up.

I have installed open gapps.

Have updated os of 27-09-2021
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Yoge2515:
Got any permanent solution...?? Coz when connected to wifi it goes offline. And I don't want to go back to stock.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Hausemaster:
Nope, no other solution, and I did mention beforehand that calls won't work when connected to a WiFi network, if you really want to use calls while connected to WiFi, then you must be connected to a JioFi network, so, yeah, stick to data for now
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] mattdpollard:
Hi, normally I post here only when there is a problem. This time I wanted to post just to say everything has been working very smoothly for weeks and I really appreciate all the work that goes into making that happen!
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
This is a build with Linux kernel 4.9 (4.9.227 to be specific) ported for our device. Everything should be working (and you should be able to upgrade from unofficial 3.18 builds). If there are any major bugs found reports would be appreciated.

https://github.com/JarlPenguin/releases/releases/download/202110191940-lineage-18.1-20211019-UNOFFICIAL-montana/lineage-18.1-20211019-UNOFFICIAL-montana.zip
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Heinz_P:
Hi

I install the rom yesterday and found a bug, or I miss a setting.

I cant lock the phone via fingerprint, only unlock is possible.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] thick designer:
i hope @jarpeguin you are doing okay and please take your time to develop a stable version of it trust me it will be worth it patiently waiting for it!!
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Heinz_P:
It iis stable as I can tell.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
That is intentional. There is no way to support both locking and unlocking via long pressing on the fingerprint sensor, because while the screen is on long press is already tied to launching the Google Assistant.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Heinz_P:
That is bad.

In stock rom it was possible and I dont need Google Assitant.

A long press on the fingerprint do nothing here.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Heinz_P:
2.Bug:

When I open the camera the navigationbar gone away, so I cant close the app.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
Unfortunately it's not possible to implement on customs. If you turn off the navigation bar you can customize the actions for long press.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
You should be able it to swipe up from the bottom to reveal it.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Heinz_P:
Delete because double.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Heinz_P:
Thanks for t.he tipp, I dont know that
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Paradoxxx:
Just got that phone gifted and could be a nice temporary device. Tried to sideload the latest nightly, respectively "lineage-18.1-20211115-nightly-montana-signed", then sideload "MindTheGapps-11.0.0-arm-20210920_083829" and could not get it to boot. I also tried with sideloading "MindTheGapps-11.0.0-arm64-20210920_084011" instead (no idea if that device is arm or arm64) but still did not boot. Just stays on the bootanimation.

Seems like just flashing the ROM itself does not boot either, pretty confused.

Device is Montana XT1793, is there some pre-requisite for some bootloader partition version or something ?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
Did you follow the instructions on the LineageOS wiki?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Paradoxxx:
If you mean this : https://wiki.lineageos.org/devices/montana/install and what was written in the OP, yes. I decided to install the latest firmware I could find, and then redid the steps, and now it worked.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
Good to know then. LineageOS won't boot on a device running < 8.1 firmware.