• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[ROM][OFFICIAL][cedric][11] LineageOS 18.1

Search This thread

Nemgathos

Member
Dec 10, 2018
21
1
I'm asking if you have been on latest stock oreo firmware for Moto G5 prior to flashing LOS
No. Ok, then this might be the reason why it does not work. Where can I get the proper Oreo stock firmware for the Moto G5? There are several threads here that offer it and some contain dead download links.
 

Nemgathos

Member
Dec 10, 2018
21
1
Well, there are a lot of different options to choose from. I opened the AMXBR folder and downloaded the XT1672_CEDRIC_AMXBR_8.1.0_OPP28.85-19-4-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip file.

Trying to install it with twrp-3.5.2_9-0-cedrig.img yielded the following result:

Updating partition details...
...done
Full SELinux support is present.
MTP Enabled
Installing zip file '/external_sd/XT1672_CEDRIC_AMXBR_8.1.0_OPP28.85-19-4-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip'
Unmounting System...

Invalid zip file format!
Error installing zip file '/external_sd/XT1672_CEDRIC_AMXBR_8.1.0_OPP28.85-19-4-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip'

Updating partition details...
...done
 

k3lcior

Senior Member
Feb 23, 2011
4,609
2,206
Kraków
Moto G5
Xiaomi Poco X3 Pro
@Nemgathos I was never flashing stock firmware but im pretty sure you have to unpack it and flash the images with fastboot (ignore relocking bootloader part)

 

Nemgathos

Member
Dec 10, 2018
21
1
@Nemgathos I was never flashing stock firmware but im pretty sure you have to unpack it and flash the images with fastboot (ignore relocking bootloader part)

The unzipped XT1672_CEDRIC_AMXBR_8.1.0_OPP28.85-19-4-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip file contains the following:

File Name
File Size
adspso.bin
16,777,216 B
boot.img
16,777,216 B
bootloader.img
5,303,808 B
CEDRIC_OPP28.85-19-4-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.info.txt
906 B
flashfile.xml
3,067 B
fsg.mbn
3,026,944 B
gpt.bin
46,592 B
logo.bin
2,295,961 B
NON-HLOS.bin
67,950,852 B
oem.img
152,474,368 B
recovery.img
16,879,616 B
regulatory_info_default.png
0 B
servicefile.xml
2,759 B
slcf_rev_d_default_v1.0.nvm
0 B
system.img_sparsechunk.0
264,544,968 B
system.img_sparsechunk.1
262,727,728 B
system.img_sparsechunk.2
252,426,816 B
system.img_sparsechunk.3
268,432,432 B
system.img_sparsechunk.4
267,593,804 B
system.img_sparsechunk.5
268,432,572 B
system.img_sparsechunk.6
268,435,012 B
system.img_sparsechunk.7
262,980,660 B
system.img_sparsechunk.8
243,619,048 B

There are four img files to choose from. In what particular order do I have to flash them?
 

k3lcior

Senior Member
Feb 23, 2011
4,609
2,206
Kraków
Moto G5
Xiaomi Poco X3 Pro
It's explained in Guide i linked


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 oem oem.img
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 modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
 
  • Like
Reactions: Nemgathos

nift4

Senior Member
May 22, 2019
586
200
nift4.github.io
Moto G5
F(x)tec Pro1
  • Like
Reactions: Nemgathos

nift4

Senior Member
May 22, 2019
586
200
nift4.github.io
Moto G5
F(x)tec Pro1
The unzipped XT1672_CEDRIC_AMXBR_8.1.0_OPP28.85-19-4-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip file contains the following:

File Name
File Size
adspso.bin
16,777,216 B
boot.img
16,777,216 B
bootloader.img
5,303,808 B
CEDRIC_OPP28.85-19-4-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.info.txt
906 B
flashfile.xml
3,067 B
fsg.mbn
3,026,944 B
gpt.bin
46,592 B
logo.bin
2,295,961 B
NON-HLOS.bin
67,950,852 B
oem.img
152,474,368 B
recovery.img
16,879,616 B
regulatory_info_default.png
0 B
servicefile.xml
2,759 B
slcf_rev_d_default_v1.0.nvm
0 B
system.img_sparsechunk.0
264,544,968 B
system.img_sparsechunk.1
262,727,728 B
system.img_sparsechunk.2
252,426,816 B
system.img_sparsechunk.3
268,432,432 B
system.img_sparsechunk.4
267,593,804 B
system.img_sparsechunk.5
268,432,572 B
system.img_sparsechunk.6
268,435,012 B
system.img_sparsechunk.7
262,980,660 B
system.img_sparsechunk.8
243,619,048 B

There are four img files to choose from. In what particular order do I have to flash them?
You could also just flash this TWRP zip: https://androidfilehost.com/?fid=6006931924117887270
 
  • Like
Reactions: Nemgathos

Nemgathos

Member
Dec 10, 2018
21
1
The Stock Android 8 Firmware. If your Firmware is from Android 7 this ROM doesn't boot.
I don’t know if the Stock Android Firmware of my phone is Android 8 or Android 7.
Do you mean that I could just flash this 1.5 GB TWRP zip file and NOT follow this guide that @k3lcior linked? The guide sounds pretty serious when it is talking about the dangers of hardbricking your device. Isn’t hardbricking one’s device also possible when flashing cedric-twrp-OPPS28.85-19-4-2.zip?

What do I have to do in order to not hardbrick my phone? Just flash cedric-twrp-OPPS28.85-19-4-2.zip with twrp-3.5.2_9-0-cedric.img and then the latest LineageOS 18.1 version after that?
 

TheFixItMan

Senior Member
Jul 8, 2012
7,833
4,027
London
Well, there are a lot of different options to choose from. I opened the AMXBR folder and downloaded the XT1672_CEDRIC_AMXBR_8.1.0_OPP28.85-19-4-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip file.

Trying to install it with twrp-3.5.2_9-0-cedrig.img yielded the following result:

Updating partition details...
...done
Full SELinux support is present.
MTP Enabled
Installing zip file '/external_sd/XT1672_CEDRIC_AMXBR_8.1.0_OPP28.85-19-4-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip'
Unmounting System...

Invalid zip file format!
Error installing zip file '/external_sd/XT1672_CEDRIC_AMXBR_8.1.0_OPP28.85-19-4-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip'

Updating partition details...
...done
Follow the below

Download the latest retail firmware from


Flash in fastboot by doing the following

Code:
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 oem oem.img
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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot oem fb_mode_clear
fastboot reboot

Once phone has booted and confirmed working Flash the latest twrp by following the instructions on the thread




How to flash rom
Boot to twrp
Go to wipe and format data (Not advanced wipe!) Option on the right of advanced wipe where you have to type yes to confirm
Reboot to recovery
Wipe - advanced wipe - system data cache
Install
Select the following
rom zip
Gapps (optional)
Magisk (optional)
Reboot


Note to get ota (over the air) updates for this rom you need to flash the lineageos recovery instead of twrp
 
Last edited:

JarlPenguin

Recognized Developer
Oct 16, 2018
1,003
895
Earth
github.com
Moto G5S
Moto G7
  • Like
Reactions: Nemgathos

Nemgathos

Member
Dec 10, 2018
21
1
Follow the below

Download the latest retail firmware from


Flash in fastboot by doing the following

Code:
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 oem oem.img
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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot oem fb_mode_clear
fastboot reboot

Once phone has booted and confirmed working Flash the latest twrp by following the instructions on the thread




How to flash rom
Boot to twrp
Go to wipe and format data (Not advanced wipe!) Option on the right of advanced wipe where you have to type yes to confirm
Reboot to recovery
Wipe - advanced wipe - system data cache
Install
Select the following
rom zip
Gapps (optional)
Magisk (optional)
Reboot


Note to get ota (over the air) updates for this rom you need to flash the lineageos recovery instead of twrp
This has worked perfectly well! Thank you so much!
 

m32

Senior Member
Jul 10, 2007
258
8
Szczecin
Well, there are a lot of different options to choose from. I opened the AMXBR folder and downloaded the XT1672_CEDRIC_AMXBR_8.1.0_OPP28.85-19-4-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip file.

Trying to install it with twrp-3.5.2_9-0-cedrig.img yielded the following result:

Updating partition details...
...done
Full SELinux support is present.
MTP Enabled
Installing zip file '/external_sd/XT1672_CEDRIC_AMXBR_8.1.0_OPP28.85-19-4-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip'
Unmounting System...

Invalid zip file format!
Error installing zip file '/external_sd/XT1672_CEDRIC_AMXBR_8.1.0_OPP28.85-19-4-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip'

Updating partition details...
...done
try this https://www.mediafire.com/file/u377wkktmlf6f9c/Firmware_OPP28.85-19-4-2_RETAIL_Mini.zip/file
I uploaded to my G5 via fastboot and it works fine
 

m32

Senior Member
Jul 10, 2007
258
8
Szczecin
I miss a few files in the source compilation process, they are also missing in the images uploaded to the G5:

system/lib/libqti-perfd-client_system.so
system/lib/libqti-util_system.so
system/lib/libqti_performance.so
system/lib64/libqti-perfd-client_system.so
system/lib64/libqti-util_system.so
system/lib64/libqti_performance.so

Where can I download them?
 

JarlPenguin

Recognized Developer
Oct 16, 2018
1,003
895
Earth
github.com
Moto G5S
Moto G7
I miss a few files in the source compilation process, they are also missing in the images uploaded to the G5:

system/lib/libqti-perfd-client_system.so
system/lib/libqti-util_system.so
system/lib/libqti_performance.so
system/lib64/libqti-perfd-client_system.so
system/lib64/libqti-util_system.so
system/lib64/libqti_performance.so

Where can I download them?
How did you extract the proprietary files?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Hi, I am trying to follow this, but the link to is broken.
    It's been deleted as they only keep images for 5 years

    They are now here
    1
    Hi, i've been using this rom for several months without issues, but with the last updates the camcorder with front camera is crashing. This only happens when trying to use video recording with frontal camera. In photo mode it works just fine. Back camera works fine on both modes. My model is xt1670
    1
    Hi, i've been using this rom for several months without issues, but with the last updates the camcorder with front camera is crashing. This only happens when trying to use video recording with frontal camera. In photo mode it works just fine. Back camera works fine on both modes. My model is xt1670
    Is this still happening on the latest build?
  • 10
    2okPze5.png

    Code:
    #include <std_disclaimer.h>
    
    /*
    * Your warranty is now void.
    *
    * We are 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 us for messing up your device, we will laugh at you.
    *
    */

    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.

    Base source code is available in the LineageOS Github repo. And if you would like to contribute to the project, please visit our Gerrit Code Review.

    Instructions:
    • Download the latest build, recovery image and GApps (if you need them)
    • Flash the downloaded recovery image via fastboot
    • Boot to recovery
    • Format system and perform a factory reset
    • Reboot to recovery
    • Flash the latest build
    • Flash GApps and any other necessary add-ons

    What's working:
    • WiFi
    • Camera and Camcorder
    • Bluetooth
    • NFC
    • Fingerprint - Oreo firmware required
    • GPS
    • OTG
    • Video Playback
    • Audio
    • RIL
    • VoLTE/VoWiFi
    • USB tethering/audio
    • SELinux: Enforcing

    Known issues:
    • You tell me

    Downloads:

    Reporting Bugs
    • All bugs should be reported here: Issue Tracker
    • DO NOT Report bugs if you're running a custom kernel or you installed Xposed
    • Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
    • If it is a random reboot, grab /proc/last_kmsg. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
    • If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log
    Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.

    Code:
    What is your--
    LineageOS version:
    LineageOS Download url:
    Gapps version:
    
    Did you--
    wipe:
    restore with titanium backup:
    reboot after having the issue:
    
    Are you using--
    a task killer:
    a non-stock kernel:
    other modifications:
    
    Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:

    Thanks to:
    @GivFNZ for testing my builds
    @wiktorek140, @karthick mostwanted, @wh0dat, @KalilDev, @AsD Monio, @GoldeneyeS2, @Steve Mathew Joy and @rajatgupta1998 for their hard work on our device sources
    LineageOS team

    Changelogs:

    Code:
    2021-04-08:
    Initial build.


    Source code:
    3
    Okaaay ... this seems to be more compliacted than expected. How did you guys upgrade to Oreo FW? Where did you get it from?

    Thanks
    update firmware from pc in fastboot mode volume down (-) connect to pc

    Firmware LATAM XT1670 (amxla) Mini
    Firmware RETAIL XT167x (retail) Mini
    2
    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 :)
    It should be fixed in the next build - you'll still have to sideload that one, but future builds should update OTA fine
    2

    Click the spoiler for commands to flash in fastboot
    Code:
    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 oem oem.img
    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 modem NON-HLOS.bin
    fastboot erase modemst1
    fastboot erase modemst2
    fastboot flash fsg fsg.mbn
    fastboot erase cache
    fastboot erase userdata
    fastboot oem fb_mode_clear
    fastboot reboot
    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
    2
    Okaaay ... this seems to be more compliacted than expected. How did you guys upgrade to Oreo FW? Where did you get it from?

    Thanks

    Click the spoiler for commands to flash in fastboot
    Code:
    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 oem oem.img
    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 modem NON-HLOS.bin
    fastboot erase modemst1 
    fastboot erase modemst2 
    fastboot flash fsg fsg.mbn
    fastboot erase cache 
    fastboot erase userdata 
    fastboot oem fb_mode_clear
    fastboot reboot