yashsingh1/xdaforums huggingface dataset:
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
New update is out with improved GPS stability. Changelog and download are in the OP as always (or you can update via OTA).
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Dan93.:
Thank you very much, so far it works very well, it is stable. Update by OTA without problems, I only remove Magisk but nothing else. Reference XT1791
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] brajesh.sharma87:
I was on pie pixel experience by you and clean flashed this. Everything working as intended. I only find the wifi signal very low. Do I have to manually flash stock firmware or something? Last I updated moto stock rom around 6-7 months back.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
Yes, make sure to flash at least OPPS28.65-37-7-11.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] DHDDS:
Google Camera working fine with v 1.5 rom. First install the .apk, then flash Enable_hal3.zip
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] brajesh.sharma87:
Is there any flashable zip for firmware only? Or I have to flash the entire moto stock rom and restart the flashing process of lineage?

Also, the pie pixel experience by you was really good, any chance of that on Q?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Rush:
1.

There is a flashable stock ROM, but just reinstalling the latest version would be better when done manually

2.

He could only maintain unofficially, as official needs the maintainer to own the device (which he currently doesn't)
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] zeworks:
GPS in v1.5

Just to report back that my XT1794 device has been running fine under 17.1 v1.5 (20200917), it has been very stable, the only noticeable issue was indeed with GPS.

So I've just updated to 17.1 v1.6 via auto-update and will keep an eye on GPS (only been playing with v1.6 for a an hour, but still getting a lot of "position unknown" errors, could be due to my not having google Apps at all ?).

Anyhow many thanks for the continued efforts to keep the moto G5S up to date, very much appreciated !
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Rush:
The GPS Errors are probably due to Google apps, as most services use Google Maps
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] zeworks:
Lost lamp & camera in v1.6

Sure the apps using gmaps are no go, but I'm using alternatives such as OSMand, which take a real long time to obtain a GPS position, but I've finally got a location this evening.

However I've lost the "lamp" feature, as well as the camera.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] jaribhai:
Please tell me if the battery life is enhanced in this rom than LineageOS 16?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
There is no difference. If you really want best battery life please use stock.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Juno1337:
I have a few questions. It may be obvious but I can't figure it out. When I installed the rom it would indicate each time an app was using the camera or mic. After a day or two those icons stopped appearing. I'm wondering if I accidentally changed a setting or something (I've combed through settings but can't find it). The second one is a bit more complex and I don't know if this is even the right place to ask. I'm using advanced charging controller, and I'm wondering if there's a way to reduce the frequency at which the system rewrites the control files. It does it too often which results in the app and system clashing and rewriting the control files every second or so, which causes the charging current to constantly go up and down. Is there any way to change that or is it baked into android (I'm afraid it's the latter).
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Rush:
Uhh that isn't supposed to happen

Please try clean flashing again to make sure this isn't a ROM issue
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
1. I have no idea, I've never heard of such settings existing. You could try checking Privacy or Security settings.

2. Use of external mods is not supported, I'm sorry.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
New update is available! Changelog and download are available in the OP as always, or you can flash the update via OTA. Happy flashing!
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Dan Mornill:
I hope it solves the battery leak problem from v 1.6

I lost 50 % in one night with an idle phone !
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] zeworks:
Just reinstalled v1.7 via adb sideload, and the torchlight and camera are now working again !

Many thanks !
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] peterpetrus:
Runs very smoothly for me. Even first boot took only couple of seconds after clean flash.

Couple of things I noticed:

- Video recording is very dark

- Icon grid on home screen cannot be modified

- I cannot find the option to adjust home button swipe gestures. Luckily 'Home', 'back' and 'recents' were configured by default but I would like to add actions for double tap and holding.

- Also I dont find the Android 10 gestures for home, back and recents
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
That's been fixed, enjoy :good:

You may have locked your home screen in settings. Also, fingerprint gestures aren't configurable (sadly). Android 10 gestures should be available when you enable the navigation bar under Settings > System > Gestures > Navigation bar
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] zeworks:
Just realised that in v1.7 when the phone rings, the screen doesn't start, offering no way to accept the call. If I press on the poser button whilst ringing, it refuses the call.

I didn't configure anything regarding calls, has something changed, or is there an option I have missed ?

Cheers,
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Dan Mornill:
Battery seems okay again with 1.7

But the screenshot bug (1970 date tag) which was gone with 1.6, is back with 1.7
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
Are you sure your proximity sensor isn't covered by a screen protector?

There was basically nothing related to screenshots changed, I'm not sure what's causing it, since it doesn't happen for other users.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] rocky57:
I have an issue with WiFi, it keeps disconnecting randomly and cannot re-connect. I am on the latest version.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
Are you on the latest stock firmware (dsp, fsg, modem, bootloader, gpt)?

Please also take a look at the "Reporting Issues" section in the OP.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] zeworks:
That's a good point, I hadn't thought this could be the cause because I've not got a screen protector, and the silicon case hasn't changed since I've had the phone, and I didn't experience this screen block before. But I'll take the case off to double check.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] drgonzo1881:
I've got an issue with phone call sound, there is no sound from earspeaker and the mic is not working. Maybe it is only my device that got some audio routing problem. I've tested the latest version 1.7, with LOS 17 from [MENTION=6879971]AsD Monio[/MENTION] it ist working well. Exept the Loudspeaker output while phonecalls but this issue was even present on LOS 16 with my device. Sorry i've made no log...

Is there any mmi code or someway to adjust the earspeaker and the microphone loudess and routing?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
Please make sure you're on stock O dsp. AsD had the same issue, updating to O dsp fixed it.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] drgonzo1881:
You are THE MAN!!!

Thank you so much that solved my issue too, perfect!

I had updated the modem but obviously not dsp with fastboot, thank you so much!

As far as i checked everything works fine, but are there some other peaces from stock wich have to be updated and what exacly does "adspso" do, couldn find something with ecosia...

Maybe this hint would be useful for others too and could be mentioned on the first site...

BTW dirty flashing from ASDs Version to this ends up in an bootloop!
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
adspso is firmware for audio, you could say. Also I did put Oreo firmware required in the OP, which includes everything from stock Oreo (bootloader, gpt, dsp, modem, fsg)
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Bikioganel:
When the screen navagation bar is disabled to use fingerprint gestures, a Black bar is displayed under the keyboard.

---------- Post added at 06:07 AM ---------- Previous post was at 05:33 AM ----------
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] GivFNZ:
Check if this happens with AOSP keyboard
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Bikioganel:
H

Happens too.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Rush:
Thats just a weird lineage OS Issue

And JarlPenguin isnt going to fork lineage for that

Sorry
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] mattdpollard:
Everything working well here. One of my banking apps doesn't launch, I guess due to the unlocked bootloader, but I knew there was a risk of that and it's worth the trade off.

the only thing I am unsure about, whether it should work or not, is the "lift to wake" function. Does this work for anyone?

Thanks JarlPenguin, so much, for keeping the G5S going!!!
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Rush:
Yea, lift to wake should be in settings > system > gestures
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] croccodillo:
Hello all,

First of all, thank you for your great work on the G5S device.

I have few questions for you:

1. I'm running Lineage OS 16.0, 20200502 build. Can I dirty flash this 17.1 ROM over it (of course I will backup it with TWRP, before to proceed)?

2. I'm probably dumb, but I can't find in anywhere the needed Oreo firmware; could you provide me a link?

How can I check the installed version?

And some kind of instruction on how to install it (ADB, I suppose)?

Thank you in advance!
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] mattdpollard:
Thanks:

To clarify my original question, I know where the setting is (I called it lift to wake but it's actually "lift to check") and have it on, but the screen doesn't actually wake when I lift up the phone so it isn't working. Does anyone have this function working?

(The setting is also at Display > Lock screen display)

The screen does turn itself on automatically when a notification is received and shown on the lockscreen.

Otherwise, I have to press the power button to turn on the screen and see the lockscreen. Or else with the fingerprint but that also unlocks the phone.

I have Nova Launcher which has an option in the admin apps permissions section to allow it to control the lockscreen, but the "lift to check" function doesn't work whether or not the admin app permsission is given to Nova Launcher.

Have also tried with "prevent accidental wake-up" on and off under "display", makes no difference.

Thanks!

So just wondering if this function, with the setting on, is actually working for anyone.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Rush:
Disable do not disturb or anything else which might prevent it from turning on (related to notifications)
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] mattdpollard:
I found a setting Display (advanced) > Ambient Display Gestures > Pick-up "pulse notifications on pick-up" and with that turned on, the screen does wake if I pick up the phone. However, it is a different lock screen that comes up from the normal one, and only shows a tiny icon of any apps that have notifications, not the content of the notifications themselves (also it has just a black background, not the wallpaper from the normal lock screen), even though the sensitive info setting is on and the content does appear on the normal lock screen. I still have to press the power button and then the normal lock screen appears. Or can swipe down from the icons and the notifcations appear as well as the expanded status bar. Not sure if all of this is by design or not. Will try it like this for a few days anyways.

Thanks for your help!
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
1. Nope, you're 100% better off clean flashing.

2. Download the latest zip from https://mirrors.lolinet.com/firmware/moto/montana/official/RETAIL, unzip, and

fastboot flash bootloader bootloader.img

fastboot flash gpt gpt.bin

fastboot flash dsp adspdo.bin (not sure about this one)

fastboot flash fsg fsg.img (not sure about this one either)

fastboot flash modem NON-HLOS.bin

There should be similar named files for dsp and fsg, replace the names in the commands I provided if the names are wrong.

Also please don't forget to make a backup of Persist and Modem Cache in TWRP.

This option only triggers the Ambient Display, which is different from the lock screen (it is that black screen with minimal icons and a clock which you mentioned.)
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
Also a new update is out with some improvements and the October security patch.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] FreedNor:
Hi, just installed the october update through the lineageos menu, but now it shuts down when its booting up, what should i do? Edit: Just had to wipe and reflash your version, works great, never gonna update through lineage os lol
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] mattdpollard:
thanks - understood!
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Dan Mornill:
It seems like the battery drain problem is back again.

I lost 20 % in idle mode today.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Rush:
This is absolutely normal

That's the Ambient display which is supposed to be triggered in that exact scenario
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
Strange, none of my testers experienced this, could you try wiping cache and ART cache?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Dan Mornill:
I just did a full charge, I'll keep you posted.

Google Play services went crazy with more than 20% battery use yesterday
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] rodrigooomc:
Speaker volume is not working

First of all thank you very much for your work in keeping our Montana up to date.

I wanted to inform you that when using the phone in speaker mode when trying to decrease the volume it does not work.

This in the model XT1792
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
Do you mean using the speaker while calling? This is a known issue
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] rodrigooomc:
Yes for himself, ok thank you for the support.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Dan Mornill:
Confirmation that the Google Play Services went berseck just after the flash.

Everything is ok since reboot and a full charge
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Dan Mornill:
Has anyone experienced some odd vibrator activation with latest build ?

It is deactivated in parameters, but works with Sony Album and when activating flashlight with Moto gestures.

Edit : it's targeted by battery saver, if on I don't get the vibrator.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] YoShake:
Using your LOS17.1 rom v 1.7 for over 2 week, and so far so good.

But I've found that there's something wrong with taking pictures. Using snap - default LOS camera app - taken photos are too dark. After Searching a bit I found out that this is a common problem with custom roms on moto G5's. Most of users pointed to use "open camera" app and I'm glad that it works flawlessly. I was going to propose to add this app instead of snap to the rom build, but since nobody(?) mentioned that "bug" here I just wanted to mention about this along with a working app.

btw. when it goes to snap I wondered if it does have a builtin' QR scanner. It turned out that in earlier version it had such feature. Maybe there's a way to unlock it considering it wasn't ripped from its source code?

I see that you released v1.8 and it's possible to update 1.7 through settings -> system -> advanced -> updater.

My question: is the update going to wipe everything and I should make a backup of apps and apps' data before updating? Or I'm safe in this matter, and there's nothing more to do than just downloading the update on the phone?
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] jaribhai:
Well I've been using this ROM since three days and found battery life extra ordinary vs stock ROM and the previous LOS 16.

Battery life is quite extra ordinary in this ROM.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] SvenHee:
First of all, thanks for keeping this phone alive!

Also to other devs ;)

I made a fresh install on my wives phone over the last 24 hours. Had a lot of trouble and finally got the thing to boot again after flashing stock rom.

I then tried te newest version of this rom but it kept rebooting to twrp. After I realized that always happened after disconnecting from the PC and thinking of some remarks about rebooting with low battery, I flashed the previous version. (It rebooted at 27% on the last occasion)

The lineage-17.1-20200923-UNOFFICIAL-montana version is now finally running and being set up my girl.

If it starts rebooting at low battery I'll report ;)
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] SvenHee:
So far, only the phone is not usable. At first it could initiate the call or receive it, but there would be no sound.

I found that the modem might need to be (re)flashed, from the other lineage rom thread: "flash just the modem in fastboot (the filename is NON-HLOS.bin). You can do that even after flashing this ROM."

I started out with stock oreo but if I recall there was one fastboot command that did not seem to have the good result.

So I flashed the modem again, but still no luck.

Went back to bootloader, flashed the modem again and now also did fastboot erase modemst1 and -2.

Now the phone says "Disable airplane mode to make call" when it is not actually in airplane mode.

Any thoughts?

It is possible to make calls in Signal.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
After erasing modemst you should first boot stock and then reflash the ROM. For sound please make sure to update dsp to Oreo. Full Oreo firmware = O dsp, O fsg, O bootloader, O gpt, O modem
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
I haven't heard any reports of photos being darker, only video recordings. Are you sure that the back flash is triggering at the right time (which if it isn't might be a potential bug, since I have other users who reported this on LineageOS).

Open Camera unfortunately won't be bundled, the only camera app I can bundle with the ROM is Moto Camera, but that has its own share of problems. The built-in QR scanner is an older feature, but yes it can be enabled by disabling the newer features.

Yes, it is possible to directly upgrade from 1.7 to 1.8 using the Updater app, but that's only if you don't have secure startup enabled.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] iChronox:
Thanks for the great work on this ROM.

Everything fine except for:

- Dark video when filming (nothing too bothersome lol).

- Whatsapp calls lose sound/hang when using speaker mode (without enabling speaker mode they work fine).
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] YoShake:
I'm glad you mentioned about the flash latency as I have completely forgot to write about that. Yes, the back flash triggered after the photo has already been taken, thus taking photos in low light condition was useless. The more, as I haven't found any post about this, the screen upon taking the picture was very dark. When using open camera app both problems didn't 't exist.

The same about recording videos. They were also very dark in low light conditions no matter if the flash has been enabled or disabled.

Weird that it doesn't happen on all g5s devices using this rom. Although it isn't only a "bug" on g5s'. This thread answered my question why the camera app doesn't work as supposed.

https://xdaforums.com/redmi-note-4/help/dark-camera-video-mode-aosp-lineage-t3634104

Pity that enabling QR feature in snap leads to disabling other options. Anyway, could this be done manually without getting the .apk through adb, decompiling it and changing some entries in .xml config files? Pretty much hassle starting with java installation :\

Could you shred more light on this or point me to an article or forum thread about this?

I've set up an unlock pattern, and after realising that using fingerprint scanner is a bit faster I've also enabled this option. Should this be disabled before such direct update?

Should I do anything else?

btw. great job with this rom!

I've seen you already started with LOS18 :good:
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] SvenHee:
It is not working for me, reinstalled stock I think 5 or 6 times tonight, all booting in to it first before trying anything else.

Phone not working, asks to be taken out of airplane mode and shows no signal strength.

Im using XT1794_MONTANA_RETEU_DS_8.1.0_OPPS28.65-37-7-11_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

with this list of commands:

fastboot oem fb_mode_set

fastboot flash partition gpt.bin

fastboot flash bootloader bootloader.img

fastboot flash logo logo.bin

fastboot flash boot boot.img

fastboot flash recovery recovery.img

fastboot flash dsp adspso.bin

fastboot flash system system.img_sparsechunk.0

fastboot flash system system.img_sparsechunk.1

fastboot flash system system.img_sparsechunk.2

fastboot flash system system.img_sparsechunk.3

fastboot flash system system.img_sparsechunk.4

fastboot flash system system.img_sparsechunk.5

fastboot flash system system.img_sparsechunk.6

fastboot flash system system.img_sparsechunk.7

fastboot flash system system.img_sparsechunk.8

fastboot flash system system.img_sparsechunk.9

fastboot flash modem NON-HLOS.bin

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg fsg.mbn

fastboot erase cache

fastboot erase userdata

fastboot erase customize

fastboot oem fb_mode_clear

fastboot reboot

I get one error:

erasing 'customize'...

(bootloader) Permission denied

FAILED (remote failure)

Could it be that there is a problem with coming from android 9/Pie?

I did read somewhere that I should not flash gpt and bootloader when downgrading....

I'm now cross eyed and my head hurts ;)
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] Havcaaren22:
Hi! First of all thanks for this ROM . It works like charm...i mean it worked. Sorry for noob question. Today I tried video call by Skype and Duo. Video is good quality but there is issue with sound. The person to whom I call can't hear me at all and I hear only strange sounds and parts of the words. The same in Duo. I gave all permissions to apps and reinstall them - no effect. And one more word - when I use phone as webcam in Windows 10 using for example droidcam it can transfer voice and video without problem.
[Moto G5S  ROMs, Kernels, Recoveries, & Other Devel] JarlPenguin:
I've disabled HAL3 mode for Snap, video recording being dark and the flash delay has been fixed that way.

Secure startup is enabled when you enable the pattern/PIN/password screen lock and then accept the prompt which asks if you want to enable secure startup. Every time you reboot your phone it will come to a minimal Android OS where you enter your screen lock and then fully boot into the OS.

Hi - it seems you've done everything correctly as long as RIL works fine in stock. Did you follow the steps in the OP to flashing this ROM after? Do you mind telling me exactly how you flashed the ROM with which recovery? Also do you have a backup of the /persist partition?

Do you mean that speakers crackle some what in VoIP calls with loudspeaker mode enabled? That is a known issue that is fixed in the latest test builds.