yashsingh1/xdaforums huggingface dataset:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Apprehensive:
TL;DR Decryption Unsuccessful after Nov 12th Cedric update

I used System->Advanced->Updater from the settings menu to upgrade to lineage-18.1-20231112-nightly-cedric-signed.zip from 12th Nov 23. I've performed this task before fairly frequently without incident. However, this time, my Moto G5 (XT1676), after LineageOS starts, displays the message "Decryption Unsuccessful" and suggests data is corrupted and gives me the option to wipe it: "The password that you entered is correct, but unfortunately your data is corrupt. To resume using your phone, you need to perform a factory reset". I never used a PIN or password.

Has anyone else encountered this?

I have twrp-3.5.2_9-0-cedric installed as recovery, so I have tried reinstalling the September release of cedric and replacing TWRP with the lineageos recovery.img. to no avail. I have also tried backing up /data which is about 6Gb from within TWRP but it fails after creating a file about 3GB in size. I've also tried adb backup, but that fails about half-way through, too. The curious thing is that I can see files in /data and open them from a terminal shell and I have enough free space for the backups.

Update

I've had some minor success by umount'ing /dev/block/dm-0 which was mounted on /data and manually running fsck.f2fs on it, which fixed a few anomalies. I did this from within a TWRP terminal. I can't fathom why the OS doesn't do this automatically---it still says "Decryption Unsuccessful" though when I start LineageOS, but TWRP reports "Data successfully decrypted" and has allowed me to take a back-up.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Barbarolucente:
Hi, I have a problem in both 20240112 and 20231212 with date and time resetting after every reboot.

I've tried to set date and time to auto, set to manual, nothing seems to fix it.

To reproduce it, just turn off data connection and reboot or set date and time to manual and reboot.

I would like to test older builds, is there a safe place where to download them? Thanks
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Apprehensive:
The Moto G5 and others in the family are plain odd when it comes to time and date. They don't have a hardware RTC, so attempts to set it from a root terminal using hwclock --systohc has no effect. https://linux.die.net/man/8/hwclock. Please try it.

A clock offset is stored in (RAM?) memory which appears to be updated from the mobile network or internet time servers. Manual time is derived from the offset + cpu counted uptime. If you lose access to the mobile network, your time can go funny. I've failed to wake up because the phone has lost signal and time and date reverted to something else so the alarm never triggered --- I now move to manual setting of time and date when using the alarm. When I boot my phone up, the hardware provided date is always 1980, then, if there is no signal, the displayed date is from a month or two back, so there is an offset being read from some NV location, but I can't seem to set it or alter it via manual setting, and it is always wrong. Infuriating, really. Here's an example: I've just switched off "Use network provided time". The displayed time and date was correct (11 Feb). I then rebooted, and the displayed date and time was 12th Jan at 02:00 which seems to be the date I installed the ROM and/or date it was compiled.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Barbarolucente:
Thanks for your reply and your experience in trying to resolve this issue.

I reported this issue via Lineage issue tracker and noticed that this issue had already been resolved in the past.

I don't know anything about modding, I just follow the guides, but I think it's a "simple" problem for an expert to solve.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] shutdown-h_now:
Thanks! That's exactly my observation with Moto G5 several months ago. It always seems to be the date of compilation of the ROM in the case you depicted.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] shutdown-h_now:
I don't think that this issue is solved ... Moto G5 obviously misses the hardware requirements (RTC) as @Apprehensive stated before. But I didn't really check it in the Lineage issue tracker, I admit ...
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Barbarolucente:
Totally noob here, why does date/time work in stock roms then?

Don't they need / use RTC aswell?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] shutdown-h_now:
Obviously some missing hardware. Obviously additionally some not anymore updated hardware drivers, too. Maybe furthermore the really old kernel. Ask Motorola / Lenovo. Lineage maintainers couldn't help if they get no updates for the drivers.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Apprehensive:
What are folks going to do now there will be no more updates to LineageOS 18.1 for cedric, as per the sunsetting announcement on 5th March?

Sunsetting LineageOS 18.1

So long, and thanks for all the fish

lineageos.org
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Apprehensive:
This might be a bit parochial, but 3G was switched off by my network operator yesterday. Unfortunately, my Moto G5 has stopped making and receiving calls. I think the "4G calling" option under Settings->Network and Internet->Mobile Network->4G calling (only available on SIM1) might not be working, and I never knew until now. Can anyone confirm this? Does anyone know whether the original Motorola image had working 4G calling or VoLTE? I might be able to reinstall the OEM OS if I can find an original image ( I think I saved one somewhere) --- without it, my phone is now useless as a phone.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ninety481:
Hi the official builds for the motorola ceric have been removed from the official lineage site. anyone know where i can get one please. If you can send it to me it will be highly appreciated.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] odoll:
https://lineage-archive.timschumi.net/build/18230
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Flash the rom you were using before - if that doesn't work you must format data

Note when changing roms (this includes the same rom but signed with a different key and especially if you are changing android versions) you must clean flash which means formatting data first
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] nift4:
You probably can't... Backup your stuff
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] iansterguy:
Seems MindTheGapp from the linage OS installation instructions may not work on lineage-18.1-20210624 I had to wipe data first to make WiFi turn on, and even then I could not get the play store to connect. So I reverted.

I have not personally tired BiTGApps but it seem to be a higher profile project. That's good because it may be the only option to upgrade past 18.1-20210617 with google services.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] pijey07:
Hi !

Thanks for your work, I was quite pleased to see an official 18.1 LineageOs Build for my phone !

I'm having annoying issues though :

- Can't get a GPS fix and can't calibrate the compass (I moved my phone as GMaps requested for quite some time...), cleared and updated the A-GPS stuff without any luck

- Camera is sometimes disappearing. I have to force stop, clear data, reboot and if I'm lucky it comes back. If I'm not, it stays for days like this until it randomly comes back.

- The automatic brightness mode is often setting the brightness very low whereas I'm not in the dark at all..

- It's minor but sometimes when booting up the phone, the time is incorrect and is fixed a few seconds later

I'm running 18.1-20210603-NIGHTLY

Any ideas how these issues can be fixed ?

Thanks !
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] bobbbel:
+ @xattus:3 ... same issue here. what did you do to resolve it?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Strange - I tested speaker on my build of Sakura rom which uses the same device trees as this rom & i had no issues

Are you using the latest official version of lineageos 18.1?

Did you format data before flashing? (option on the right where you have to type yes to confirm)

What gapps did you flash & did it replace aosp dialer? (I would flash arm64 android 11 bitgapps)

Are you on the latest stock oero firmware?

Latest official is available from here

LineageOS Downloads

download.lineageos.org
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] bobbbel:
All yes, except for latest Oreo stock firmware.

Will try this now.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] bobbbel:
Okaaay ... this seems to be more compliacted than expected. How did you guys upgrade to Oreo FW? Where did you get it from?

Thanks
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rtd4:
update firmware from pc in fastboot mode volume down (-) connect to pc

Firmware LATAM XT1670 (amxla) Mini

Firmware RETAIL XT167x (retail) Mini
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
lolinet mirrors - firmware, software, iso etc.

lolinet mirrors - powered by h5ai

mirrors.lolinet.com

Click the spoiler for commands to flash in fastboot

Spoiler content hidden.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rtd4:
It is not necessary to flash the OS partition (system.img), much less OEM (oem.img) it is for that reason that I left the firmware trimmed to skip that step tell me why you are going to flash the full firmware if when installing a custom rom it will format system & oem I have done it like this and zero errors
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rtd4:
obviously going to have to install twrp and clear system, data, cache to avoid brick
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
I give complete instructions for flashing a stock firmware

If you want to omit something that is your choice
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rtd4:
bobbbel is not going to downgrade the device he is going to update directly and then install lineage os
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
I'm not going to get into an argument with you as

1- it doesn't concern you

2- it's off topic

He wanted to know how to flash stock firmware - instructions were given

This end the conversion
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] bobbbel:
@rtd4 & @TheFixItMan

Thanks for your help. Much appreciated.

Trying the "mini" way mobile network did not work.

Using the full fledged approach i had to boot stock ROM, connect to the network. Only then would mobile network in LOS work.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rtd4:
Sorry for the inconvenience, it worked great for me, maybe it's because it's my non-retail carrier's firmware I'll update the link with the retail firmware
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hehamih125:
Hey all,

First, thanks to whoever worked on this port (and older ones), nice to see an official build at least!

In previous versions (LineageOS 16 or 17, or both, I don't remember precisely), the task switcher was accessible by pressing the (hardware) "home" button (the fingerprint reader) once.

I don't know if it was a default setting or if I had configured it, but it was sure possible.

Now with this new version (18.1-20210708-NIGHLTY-cedric), I have to tap this button twice to display the task switcher, as tapping the button once returns to the home screen.

I searched the settings but it seems we can't configure the single tap behavior, only the double and long tap.

Is there any way to configure the single tap on the fingerprint reader to display task switcher ?

Best regards,

H.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Swipe right on the fingerprint reader to bring up task manager

Swipe left to go back
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hehamih125:
Oh wow, didn't test that! Thanks a lot. (y)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] zweif:
I'm not on montana, but have the same problem on cedric - so I'll post this here.

OTA-update worked for me one time. Since then everytime I try I get the Error mentioned in montana-thread and need to update using ADB.

I might have installed the ROM on June 3rd if this helps.

Edit: seems like I can't attatch the file, so:

dmesg - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

pastebin.com
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] JarlPenguin:
Hi, does formatting the cache partition help?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] zweif:
No, that didn't help. I tried that already. Tried again now, flashed newest recovery image and tried again - didn't work. Updated to latest version with adb sideload.

Thanks for your efforts by the way :)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] JarlPenguin:
It should be fixed in the next build - you'll still have to sideload that one, but future builds should update OTA fine
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] k3lcior:
To flash this do i need this TWRP or the Recovery image linked at https://download.lineageos.org/cedric ? Also which Gapps is considered the most stable?

If im already on latest Android 8 official firmware i dont need to flash stock firmware anymore - just unlock bootloader, flash recovery, format data and flash ROM?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] JarlPenguin:
You should follow the instructions on the LineageOS wiki: https://wiki.lineageos.org
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] k3lcior:
Ok and 1 more question, why is first post pointing to unofficial builds instead of https://download.lineageos.org/cedric , what's the difference between them? @JarlPenguin
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] JarlPenguin:
I haven't edited the original post yet. You should install the official builds
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rtd4:
speak a build to 32 bits in the future the rom is good but arm64 degrades performance a lot
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] k3lcior:
Flashed and all good so far, though first boot was taking unusually long (not sure if bootlooped) i had to force power off / restart and then it booted up properly.

Can anyone cofirm if OTA updates will work with TWRP or i need Lineage recovery for that?

Good job @JarlPenguin (y)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] JarlPenguin:
First boot taking 7-8 minutes is normal.

OTA updates will work with TWRP but keep in mind any issues that arise won't be taken into consideration unless you use LineageOS recovery.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] JarlPenguin:
OP has been updated with latest information, sorry about the delays!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] k3lcior:
05.08 build is up
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hellwhynot:
Updated today and noticed that OTA now worked for me with TWRP (v. 3.5.2_9-0), so I did not have to install manually from recovery. (Not a big issue, of course.) I used to get this error: Error installing zip file '@/cache/recovery/block.map'.

BTW, got that error also using the LOS recovery.

@Jarl-Penguin, Thnx for your great work!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Nyakov:
I have memory management problems with this rom.

For example when I try to watch youtube in background(newpipe) and use browser(Fennec) it will often kill newpipe floating window.

But also sometimes it kills browser.

I noticed that system by itself eat most of the available ram, can it be somehow fixed?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] JarlPenguin:
Are you on the 2GB or 3GB model?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rtd4:
Android 11 is not worth it in cedric it does not make any sense compared to android 7/8 and it is in arm64 that only slows down the system the sd430 I understand that it ended its support in android 10 with kernel 3.18.124 I don't think qualcomm will keep this soc on android 11
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rtd4:
3gb ram model is rare

95% 2gb

5% 3gb
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] nift4:
Try setting the LowMemoryKiller configuration to

4710,9420,14130,18840,23550,28260

using a kernel manager of your choice.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] nift4:
Runs perfectly fine here (Using my own ROM but that's OT)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Nyakov:
I pretty sure that 2Gb

Model XT1676 (PA610107UA)

I will try, thank you.

I already set ro.config.low_ram=true in build.prop, cannot tell yet if it have any effect.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rtd4:
configure low_ram in the /vendor or / system/product it feels a little more fluid but never like the real android go

the only way to know is by deleting the data from the play store enter and search for lite apps for example Gmail Go
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rtd4:
an android 10/11 go arm64 aosp from google sources would be useful with lmk and zram values at 2gb of course the motorola face unlock
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] k3lcior:
I'm on 3GB variant and don't really have any issues with memory management or haven't noticed it.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hellwhynot:
Same here, that extra GB helps, I guess. @Nyakov: If you want to be sure about the amount of memory, see Settings -> Developer Options (if you have it enabled yet) -> top of page.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] bostro:
Hi all, i just flashed Lineage 18 and it's a very good rom, but i can't get GPS working neither compass.

I tried walking around and moving the phone but nothing to do.

I flashed 26/08/2021 Lineage with the Lineage Recovery.

LineageOS version: 18.1 - 20210826

Recovery: Lineage 18.1 - 20210826

LineageOS Download url: https://download.lineageos.org/cedric

Gapps version: OpenGapps Nano Arm64 Android 11.0

Did you--

wipe: Yes

restore with titanium backup: No

reboot after having the issue: Yes

Are you using--

a task killer: No

a non-stock kernel: No

other modifications: No

Type of install: clean install.

Apps I tried:

GPS Status and Toolbox from Play Store

Google Maps App

Google Maps website with Chrome
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] nift4:
GPS usually takes 20min for the first fix and you need to be outside. Only US models have a compass, do you have one?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] hellwhynot:
I'm on lineage-18.1-20210826 too and GPS still works for me in Maps (although it took about 5 minutes when I tried just now).

You mentioned flashing OpenGapps. Maybe there' s an issue with that? It could be related. In that case you could try using MindTheGapps.

Good luck!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] bostro:
@nift4 no mine hasn't compass but if a walk a little around the compass in gps status doesn't move because hasn't gps signal. I tried for lot of hours but nithing to do.

@hellwhynot i will try another factory reset then i'll try that gapps, thanks.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
I just tested on RevengeOS (the rom I built) - upon downloading Google maps and opening, it just displayed the map of the world.

I had to press the GPS target icon (the one on the right above the other icon of a white arrow in a blue circle)

Upon pressing this the app asked for location permission which I granted and for Google location accuracy to be enabled

Upon doing this I had a GPS lock instantly (and I'm indoors)

I'm using OpenGapps android 11 arm64 nano

I've not tested on this rom
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] JarlPenguin:
What is your SKU?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] bostro:
I have solved after a factory reset.

Don't know why because it was the second reset i tried, but now evberything works, it seems.

Thanks all!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Tiki Thorsen:
Regarding the camera, it has been an issue since Android 9 onwards sadly, it is a hit-and-miss depending on the ROM, lately is somewhat stable, but something is does what you mentioned.

The Automatic brightness mode has been bugged in all the Android 11 builds I have tried, no “training” fixed it.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Nyakov:
I experiencing issues with rooting (Magisk). Did someone succeed on this?

I patched boot.img and all was fine and then I lost root and nothing can bring it back.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ppq-:
Hello,

thank you devs for enabling us to keep using this old phone!!! you are doing so much more for environment and sustainability than most governments.

My moto g5 previously had LOS 14.1 installed, more precisely the last official build from Nov 2017. At first, I tried clean-flashing LOS18.1 official build using the steps in the first post, but the phone was stuck in first boot for 30minutes, then I hard reset it.

Next, I tried to install "Mini" firmware from this post , so without system.img and oem.img, and it kind of worked - I could install LOS18.1. Most things worked but radio was not working. (no calls, SMS, data)

Then I tried installing the full stock OS linked in this post (CEDRIC_RETAIL_8.1.0_OPP28.85-19-4-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip) with all the fastboot commands from the post. Then I booted it, and the radio worked in stock OS. Then I tried again to install LOS18.1, and first boot took very long (10min), but now everything works.!!

:)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] ppq-:
I downloaded the Magisk apk from github, renamed it to .zip and flashed it in the LineageOS recovery (with adb sideload). Worked flawlessly
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rtd4:
Screenshots

​
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] fantomasBR:
guys, i'm trying the "lineage-18.1-20210930-nightly-cedric-signed.zip" version

but my TWRP is in a loop and the first message that appears is this:

"TWRP has detected an unmodified partition. TWRP can leave your partition unmodified to make it easier for you to take official updates. TWRP will be unable to prevent the stock ROM from replacing from replacing TWRP and will not offer to root your device. installing zips or performing adb operations may still modify the system partition.

Never show this screen during boot again."
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] fantomasBR:
flashing directly the version 20210930 doesn't works for me, but version 0210923 yes
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
That message will appear every time you start twrp for the first time or after formatting/wiping data. You swipe right to enable writing to the system partition as it states.

Also the instructions for this rom are to use lineage recovery as stated on the 1st post

You also need to be on oero stock firmware (preferably the latest retail)

Make sure you have formatted data (different from wipe data), rebooted to recovery and wipe system data cache before you flash the rom
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] fantomasBR:
in that case do I have to install the stock ROM first and then the Lineage OS?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Flash stock firmware via fastboot then format data to remove encryption, reboot to recovery, wipe system data cache, flash custom rom
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] oldfone:
I have TWRP and Mint installed and am looking to move to LOS 18.1 or StellarOS. It seem like I should need to revert to stock. If this is indeed the case, should this be mentioned in the instructions at the top of the thread?