[Official] [5th April 2021] TWRP 3.5.2_9-0 Moto G5 [Cedric] [32/64bit Roms]

Search This thread

TheFixItMan

Senior Member
Jul 8, 2012
7,844
4,052
London
Official TWRP For Moto G5 Cedric


Post 1 - Instructions
Post 2 - FAQs



For full details and notes see
Official TWRP for Cedric Site

For TWRP news change logs etc see
TWRP Official Site


Instructions

For non rooted and rooted phones
Requirements
Unlocked bootloader
Fastboot drivers installed on PC

Download Official TWRP Image
Rename the downloaded img file recovery.img
Put phone into fastboot mode (hold vol down + power button)
Connect phone to PC
Open a command prompt where you have fastboot and the TWRP image file located
Type the following in command prompt (recovery.img is the name of your twrp img you downloaded & renamed)

To permanently flash twrp replacing stock recovery
Code:
fastboot flash recovery recovery.img

To only boot to twrp temporarily keeping stock recovery
Code:
fastboot boot recovery.img

Select recovery using the volume keys and power button to select
Now read important notes section For Stock Rom Users at the end of this post and the FAQs in the 2nd post

Note for Windows 10 users who use the powershell and not cmd
The command will become
Code:
./ fastboot flash recovery recovery.img

Or

Code:
./ fastboot boot recovery recovery.img

For rooted phones only
If you are already rooted you can upgrade your TWRP version using the official TWRP app
Download TWRP App
Select Cedric as your device
Download the TWRP image
Select the TWRP to flash
Now read the FAQs in the 2nd post


Important Notes For Stock Rom Users
When you first start TWRP it will ask you to swipe to allow modifications - If you do this your stock rom will no longer boot unless you disable dm-verity.
This can be done either by flashing a disable dm-verity zip or by flashing Magisk zip which will disable it for you

Source Code
TWRP 32bit For Cedric Github Source
TWRP 64bit For Cedric Github Source

XDA:DevDB Information
[Official] TWRP 3.5.2_9-0 Moto G5 Cedric [32/64bit Roms], Tool/Utility for the Moto G5

Contributors
TheFixItMan, JarlPenguin
Source Code: https://github.com/TeamWin/android_device_motorola_cedric


Version Information
Status:
Stable
Current Stable Version: TWRP 3.5.2_9-0
Stable Release Date: 2021-04-05

Created 2017-11-03
Last Updated 2021-04-05
 
Last edited:

TheFixItMan

Senior Member
Jul 8, 2012
7,844
4,052
London
FAQs


Q - Does the official twrp version support 64bit roms?
A - Yes - as of version 3.4.0-1

Q - I get error 255 when trying to flash a rom
A - You are using a 32bit twrp version. Please update to the latest 64bit version

Q - Can I use the 64bit version on 32bit roms?
A - Yes the 64bit version supports both 64bit & 32bit roms

Q - Does the official twrp version support treble rom?
A - Yes - as of version 3.4.0-1

Q - Does this recovery support decryption of data
A - Yes on all current 32/64bit roms - If you swap roms you will need to format data first to remove encryption before flashing the new rom then you can encrypt again

Q - My phone keeps booting to recovery on restart and can only be started normally through the bootloader
A - First try removing your SD card and see if your phone boots - If that doesn't work see This Post

Q - Where is the disable dm-verity zip?
A - You can download it Here
or old version can be found Here

Q - Where is the Magisk zip
A - See Magisk Thread
You may need to manually install the magisk manager app apk depending on which rom you are using

Q - It says "image not signed or corrupt" when I flashed image
A - This is normal as the image is not signed by Motorola

Q - When restoring backup I get an error starting Extracttarfork
A - Sometimes you need to format data before restoring backup - In fastboot mode enter the command
fastboot erase userdata
This will format all data on internal storage (pictures music documents downloads etc) so backup first!
 
Last edited:

aashaydesh

Senior Member
Feb 3, 2017
62
17
I have a cedric device. I unlocked my bootloader. Then through fastboot i tried to install twrp-3.1.1-0-cedric.img.
But it says "image not signed or corrupt".
As on the other threads, they said that to directly go into recovery mode ignoring other things. But that did not work. It said "no command".
Please help with flashing twrp.

Edit- It worked after 5-6 attempts.
 
Last edited:

TheFixItMan

Senior Member
Jul 8, 2012
7,844
4,052
London
I have a cedric device. I unlocked my bootloader. Then through fastboot i tried to install twrp-3.1.1-0-cedric.img.
But it says "image not signed or corrupt".
As on the other threads, they said that to directly go into recovery mode ignoring other things. But that did not work. It said "no command".
Please help with flashing twrp.

It will always say that because the image is not signed by Motorola

As long as it says write OK at the end

The easiest way is to type

fastboot flash recovery then drag the recovery image into the terminal window - this will automatically complete the rest of the command

I'll also write a note for Windows 10 users who use the power shell
You need to put ./ first
 

TheFixItMan

Senior Member
Jul 8, 2012
7,844
4,052
London
Just to let everyone know about encryption on oreo roms

If you have previously encrypted your phone you must remove encryption before flashing an oreo rom by doing format data from the wipe menu (different from wipe data) & booting the phone fully to check encryption has been removed

You can then flash the oreo rom

After flashing this rom you can encrypt the phone again if you want
Encryption is fully supported
My TWRP (official) can decrypt data of lineageos 15 rom (32bit) as Iv just tested it
 
Last edited:

No-New-Phone

Senior Member
Jan 15, 2011
198
53
Xiaomi Poco F1
bootloop to recovery and SD-ext

I went through all this procedure of unlocking and installing twrp yesterday. As I nearly experienced a heart attack, I would like to kindly ask you to expand your Q/A-section for the mental safety of my fellow G5 users.

If you follow each step, you still can run into the bootloop-to-recovery trouble. My system was formatted with an SD-card as extended internal memory, and I formatted everything exept SD-ext, which I might have done. Clearing the misc partition had no success until I removed the SD-card, and rebooted TWRP.

So basically my recommendation is: remove your SD-card before the procedure.

Happy flashing and thank you for your guide.

FAQs

Q - My phone keeps booting to recovery on restart and can only be started normally through the bootloader
A - See This Post
 
  • Like
Reactions: jobinrjohnson

TheFixItMan

Senior Member
Jul 8, 2012
7,844
4,052
London
I went through all this procedure of unlocking and installing twrp yesterday. As I nearly experienced a heart attack, I would like to kindly ask you to expand your Q/A-section for the mental safety of my fellow G5 users.

If you follow each step, you still can run into the bootloop-to-recovery trouble. My system was formatted with an SD-card as extended internal memory, and I formatted everything exept SD-ext, which I might have done. Clearing the misc partition had no success until I removed the SD-card, and rebooted TWRP.

So basically my recommendation is: remove your SD-card before the procedure.

Happy flashing and thank you for your guide.

Added to Faq and guide
 
Last edited:
  • Like
Reactions: No-New-Phone
May 16, 2017
17
2
Hi, sorry if this is a silly question, but just thought I'd ask to be on the safe side... Is it safe to flash TWRP 3.2.0 that is now available for cedric through the TWRP app or would it be better to give it a miss for now?
 

TheFixItMan

Senior Member
Jul 8, 2012
7,844
4,052
London
New twrp version available

What's new in 3.2.0-0:

Allow restoring adb backups in the TWRP GUI (bigbiff)
Fix gzip backup error in adb backups (bigbiff)
Fix a bug in TWRP's backup routines that occasionally corrupted backup files (nkk71)
Better support for installing Android 8.0 based zips due to legacy props (nkk71)
Support vold decrypt with keymaster 3.0 in 8.0 firmwares (nkk71)
Decrypt of synthetic passwords for Pixel 2 (Dees_Troy)
Support newer ext4 FBE policies for backup and restore in libtar (Dees_Troy)
v2 fstab support (Dees_Troy)
Bring TWRP forward to android 8.0 AOSP base (Dees_Troy)
Various other minor bugfixes and tweaks
 

cango123

Senior Member
Sep 16, 2012
368
214
Karlsruhe
What's new in 3.2.1-0:

* minui fixes (cryptomilk)
* Better android-8.0 compatibility in ROM trees (Dees_Troy)
* Fix missing library in android-8.0 (nkk71)
* Fix inconsistent SDCard naming (DevUt)
* Default to TWRP restore instead of adb backup restore to fix restore on fresh TWRP boot (jlask)

Thanks a lot for maintaining cedric, you are king man
 

ProGamer02224

Senior Member
I unlocked the bootloader and flashed the twrp on my friends Moto g5 and after that if I restart it boots up to recovery only. I did all that's said in the xda forums and still the problem exists.i then wiped away all partitions and installed lineage 14.1. even now the problem exists. After lots of trying I found that going to bootloader and pressing start boots the phone normally. But it's tough to to it always he has to power on the phone. Can someone help me solve this problem

Sent from my Motorola Moto G 2014 using XDA Labs
 

TheFixItMan

Senior Member
Jul 8, 2012
7,844
4,052
London
I unlocked the bootloader and flashed the twrp on my friends Moto g5 and after that if I restart it boots up to recovery only. I did all that's said in the xda forums and still the problem exists.i then wiped away all partitions and installed lineage 14.1. even now the problem exists. After lots of trying I found that going to bootloader and pressing start boots the phone normally. But it's tough to to it always he has to power on the phone. Can someone help me solve this problem

Sent from my Motorola Moto G 2014 using XDA Labs

Read the faq!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 41
    Official TWRP For Moto G5 Cedric


    Post 1 - Instructions
    Post 2 - FAQs



    For full details and notes see
    Official TWRP for Cedric Site

    For TWRP news change logs etc see
    TWRP Official Site


    Instructions

    For non rooted and rooted phones
    Requirements
    Unlocked bootloader
    Fastboot drivers installed on PC

    Download Official TWRP Image
    Rename the downloaded img file recovery.img
    Put phone into fastboot mode (hold vol down + power button)
    Connect phone to PC
    Open a command prompt where you have fastboot and the TWRP image file located
    Type the following in command prompt (recovery.img is the name of your twrp img you downloaded & renamed)

    To permanently flash twrp replacing stock recovery
    Code:
    fastboot flash recovery recovery.img

    To only boot to twrp temporarily keeping stock recovery
    Code:
    fastboot boot recovery.img

    Select recovery using the volume keys and power button to select
    Now read important notes section For Stock Rom Users at the end of this post and the FAQs in the 2nd post

    Note for Windows 10 users who use the powershell and not cmd
    The command will become
    Code:
    ./ fastboot flash recovery recovery.img

    Or

    Code:
    ./ fastboot boot recovery recovery.img

    For rooted phones only
    If you are already rooted you can upgrade your TWRP version using the official TWRP app
    Download TWRP App
    Select Cedric as your device
    Download the TWRP image
    Select the TWRP to flash
    Now read the FAQs in the 2nd post


    Important Notes For Stock Rom Users
    When you first start TWRP it will ask you to swipe to allow modifications - If you do this your stock rom will no longer boot unless you disable dm-verity.
    This can be done either by flashing a disable dm-verity zip or by flashing Magisk zip which will disable it for you

    Source Code
    TWRP 32bit For Cedric Github Source
    TWRP 64bit For Cedric Github Source

    XDA:DevDB Information
    [Official] TWRP 3.5.2_9-0 Moto G5 Cedric [32/64bit Roms], Tool/Utility for the Moto G5

    Contributors
    TheFixItMan, JarlPenguin
    Source Code: https://github.com/TeamWin/android_device_motorola_cedric


    Version Information
    Status:
    Stable
    Current Stable Version: TWRP 3.5.2_9-0
    Stable Release Date: 2021-04-05

    Created 2017-11-03
    Last Updated 2021-04-05
    12
    FAQs


    Q - Does the official twrp version support 64bit roms?
    A - Yes - as of version 3.4.0-1

    Q - I get error 255 when trying to flash a rom
    A - You are using a 32bit twrp version. Please update to the latest 64bit version

    Q - Can I use the 64bit version on 32bit roms?
    A - Yes the 64bit version supports both 64bit & 32bit roms

    Q - Does the official twrp version support treble rom?
    A - Yes - as of version 3.4.0-1

    Q - Does this recovery support decryption of data
    A - Yes on all current 32/64bit roms - If you swap roms you will need to format data first to remove encryption before flashing the new rom then you can encrypt again

    Q - My phone keeps booting to recovery on restart and can only be started normally through the bootloader
    A - First try removing your SD card and see if your phone boots - If that doesn't work see This Post

    Q - Where is the disable dm-verity zip?
    A - You can download it Here
    or old version can be found Here

    Q - Where is the Magisk zip
    A - See Magisk Thread
    You may need to manually install the magisk manager app apk depending on which rom you are using

    Q - It says "image not signed or corrupt" when I flashed image
    A - This is normal as the image is not signed by Motorola

    Q - When restoring backup I get an error starting Extracttarfork
    A - Sometimes you need to format data before restoring backup - In fastboot mode enter the command
    fastboot erase userdata
    This will format all data on internal storage (pictures music documents downloads etc) so backup first!
    8
    What's new in 3.2.2-0:

    * adb backup fixes
    * OTA style update zips will now install automatically without prompting for decrypt
    * minor tweaks to handling date/time on Qualcomm devices
    * updates to some language translations


    Note the official version is 32bit
    Feel free to make an unofficial 64bit version from my sources
    8
    What's new in 3.2.1-0:

    * minui fixes (cryptomilk)
    * Better android-8.0 compatibility in ROM trees (Dees_Troy)
    * Fix missing library in android-8.0 (nkk71)
    * Fix inconsistent SDCard naming (DevUt)
    * Default to TWRP restore instead of adb backup restore to fix restore on fresh TWRP boot (jlask)
    7
    New twrp version available

    What's new in 3.2.0-0:

    Allow restoring adb backups in the TWRP GUI (bigbiff)
    Fix gzip backup error in adb backups (bigbiff)
    Fix a bug in TWRP's backup routines that occasionally corrupted backup files (nkk71)
    Better support for installing Android 8.0 based zips due to legacy props (nkk71)
    Support vold decrypt with keymaster 3.0 in 8.0 firmwares (nkk71)
    Decrypt of synthetic passwords for Pixel 2 (Dees_Troy)
    Support newer ext4 FBE policies for backup and restore in libtar (Dees_Troy)
    v2 fstab support (Dees_Troy)
    Bring TWRP forward to android 8.0 AOSP base (Dees_Troy)
    Various other minor bugfixes and tweaks