[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,845
4,046
London
hello guys, or unlocked the bootloader of the moto G5, or tried to put the twrp, nothing to do or tried everything or noticed that if I go to recovery I find the robot with the writing no command, the phone works fine, but at this problem here ... suggestions thank you and good evening.
Download the image

Rename the image recovery.img

Flash image by doing

fastboot flash recovery recovery.img

Once done use the volume keys to navigate to recovery on the bootloader menu and press the power button

Don't not restart the phone before you enter recovery mode

Unless you failed to flash the recovery correctly it will enter twrp

You would need to post a screenshot of your terminal window after you have attempted to flash twrp if you require further support
 
  • Like
Reactions: rtd4

roby19

Member
Jan 16, 2016
25
7
qwe.PNG
 

roby19

Member
Jan 16, 2016
25
7
I was able to install the twrp with the fastboot boot command and dragging images directly, or done the whole procedure and or restarted, but if I want to go to twrp nothing makes me go .... if I go into fastboot mode, and I go into recovery this once the robot comes out, with the volume up and power buttons I can go to recovery, the normal one not the twrp.
 

SirRGB

Senior Member
Jun 29, 2019
549
209
Google Nexus 5
Samsung Galaxy S5 Mini
I was able to install the twrp with the fastboot boot command and dragging images directly, or done the whole procedure and or restarted, but if I want to go to twrp nothing makes me go .... if I go into fastboot mode, and I go into recovery this once the robot comes out, with the volume up and power buttons I can go to recovery, the normal one not the twrp.
fastboot boot is not installing, it just temporarely boots twrp once. For each time using twrp you would have to go to the computer.
Have you tried to "fastboot flash recovery" and then drag and drop the file? works for me...
 
  • Like
Reactions: roby19

roby19

Member
Jan 16, 2016
25
7
nothing does not want to know, what do you mean Have you tried to "fastboot flash recovery" and then drag and drop the file? works for me ...
 

roby19

Member
Jan 16, 2016
25
7
in summary, I managed to install the twrp, with the command fastboot flash recovery, and inserting the image directly, then or re-flashing the twrp image on the same in order not to risk losing it anymore, the root did it directly with the classic traditional apk application Magisk Manager because from twrp the flash went but the phone was not rooted,
o made a backup to check if the twrp is working properly, it's gone, but o like the feeling that not everything went well.
 

TheFixItMan

Senior Member
Jul 8, 2012
7,845
4,046
London
Remove the spaces from your directory name

Make sure the file recovery.img is in the same directory you are running fastboot from

Eg
If your terminal window is running fastboot from the folder motog5adb make sure recovery.img is also in that directory

Make sure you have downloaded the image correctly


This is the image you need to download and then rename recovery.image

Or don't rename it but change the command to

fastboot flash recovery twrp-3.5.2_9-0-cedric.img
 

TheFixItMan

Senior Member
Jul 8, 2012
7,845
4,046
London
in summary, I managed to install the twrp, with the command fastboot flash recovery, and inserting the image directly, then or re-flashing the twrp image on the same in order not to risk losing it anymore, the root did it directly with the classic traditional apk application Magisk Manager because from twrp the flash went but the phone was not rooted,
o made a backup to check if the twrp is working properly, it's gone, but o like the feeling that not everything went well.
To flash magisk either

Rename the magisk.apk to magisk.zip and flash in twrp

Or install the magisk apk as you normally would when the phone is booted
Open your custom rom zip and extract boot.img and copy to phone
Run the magisk app and go to install and then select your boot.img
It will patch the boot.img and output the magisk_boot.img (filename will be different) to your download folder
Enter twrp
Install and change install option from zip to image
Select the magisk_boot.img and flash to boot
 
  • Like
Reactions: roby19

roby19

Member
Jan 16, 2016
25
7
thanks for the suggestions to all, it was a while since I did modding especially on these of the latest generation, it seems that everything works including magisk, now I leave it so let's see how it goes.
 

dreamode

New member
Sep 10, 2021
1
0
Hi, I have a problem with the TWRP installation. After loading twrp image and selecting recovery mode (without restarting the bootloader) I get the following error:
Start Up Failed:
your device didn't start up succesfully [...]

AP Fastboot Flash Mode [secure]
cmd: getvar: has-slot: recovery
cmd: getvar: max-download-size
cmd: getvar: is-logical: recovery
cmd: download: 00e43800
cmd: flash: recovery
Error: failed to load Kernel!
Boot up failed


If I flash an TWRP version 3.1.1-0 all work fine.
What I'm doing wrong?

Thanks in advance
 

b.zill

Member
Oct 30, 2016
44
13
There are two builds / versions of twrp-3.5.2_9-0-cedric.img. The early one is too large (17.13 MB) to flash. The later, smaller one (15.45 MB) with SHA-256 “a47fb...23300” should work.

Did you try updating from within 3.1.1 to 3.5.2? First download the new image to local storage, boot to recovery, mount local storage, select image file and flash to recovery area. If successfully completed, reboot to recovery.
 

NewenCarp96

Member
Mar 28, 2013
7
0
Supposedly I have unlocked the bootloader but for some reason I can't install twrp and I can't downgrade to version 7
PS C:\Users\Nehuen\Desktop\Nueva carpeta (7)> fastboot devices
ZY32223KTQ fastboot
PS C:\Users\Nehuen\Desktop\Nueva carpeta (7)> fastboot flash recovery recovery.img
target reported max download size of 535822336 bytes
sending 'recovery' (15822 KB)...
OKAY [ 0.519s]
writing 'recovery'...
(bootloader) Image recovery failed validation
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.541s
PS C:\Users\Nehuen\Desktop\Nueva carpeta (7)> fastboot boot recovery.img
downloading 'boot.img'...
OKAY [ 0.515s]
booting...
(bootloader) permission denied!
FAILED (remote failure)
finished. total time: 0.534s
 

TheFixItMan

Senior Member
Jul 8, 2012
7,845
4,046
London
Supposedly I have unlocked the bootloader but for some reason I can't install twrp and I can't downgrade to version 7
You can't downgrade a bootloader - never try this. You will hard brick your device.
There are some twrp flashable stock android 7 zips if required.

And you can't have an unlocked bootloader if you are attempting to flash twrp and are getting validation errors assuming you are flashing on a moto g5 cedric

Do
fastboot getvar all

And look under secure state to see if it is still oem locked
Also check the build fingerprint is cedric
 
  • Like
Reactions: NewenCarp96

NewenCarp96

Member
Mar 28, 2013
7
0
You can't downgrade a bootloader - never try this. You will hard brick your device.
There are some twrp flashable stock android 7 zips if required.

And you can't have an unlocked bootloader if you are attempting to flash twrp and are getting validation errors assuming you are flashing on a moto g5 cedric

Do
fastboot getvar all

And look under secure state to see if it is still oem locked
Also check the build fingerprint is cedric

It says oem_locked and I have cedric in fingerprint. I have errors both when trying to install twrp and when trying to put another firmware (operating system) on it.

I had bricked the cell phone, but I recovered it with the mmcblk0 file on the micro sd. When I put the 7.0 version, the cell phone was constantly restarting so I put 8.1 and now I can't do anything else, it always throws me an error.

I want to change the operating system or put twrp on it to try to solve the problem of not having a 3g or 4g signal. The imei did not erase and I have dual sim.

PS C:\Users\Nehuen\Desktop\Nueva carpeta (3)\mfastboot> .\mfastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: moto-msm8937-B8.25
(bootloader) product: cedric
(bootloader) board: cedric
(bootloader) secure: yes
(bootloader) hwrev: P5
(bootloader) radio: 2
(bootloader) storage-type: emmc
(bootloader) emmc: 32GB SAMSUNG QX13MB RV=08 PV=07 FV=0000000000000007
(bootloader) ram: 2GB SAMSUNG LP3 DIE=8Gb M5=01 M6=05 M7=00 M8=1F
(bootloader) cpu: MSM8937
(bootloader) serialno: ZY32223KTQ

(bootloader) cid: 0x0032

(bootloader) channelid: 0x1b
(bootloader) uid: D362F92200000000000000000000
(bootloader) securestate: oem_locked
(bootloader) verity-state: enforcing
(bootloader) iswarrantyvoid: no
(bootloader) max-download-size: 536870912
(bootloader) reason: Volume down key pressed
(bootloader) imei: 3518*******3472
(bootloader) meid:
(bootloader) date: 02-24-2017

(bootloader) sku: XT1671

(bootloader) battid:
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time: "Thu Jan 1 1: 5:32 UTC 1970"

(bootloader) ro.build.fingerprint[0]: motorola/cedric/cedric:8.1.0/OPPS2
(bootloader) ro.build.fingerprint[1]: 8.85-13-6/04442:user/release-keys

(bootloader) poweroffalarm: 1
(bootloader) ro.build.version.full[0]: Blur_Version.28.271.7.cedric.reta
(bootloader) ro.build.version.full[1]: il.en.US
(bootloader) ro.build.version.qcom: LA.UM.6.6.r1-08600-89xx.0
(bootloader) version-baseband: M8937_22.29.02.56R CEDRIC_LATAMDSDS_CUST
(bootloader) kernel.version[0]: Linux version 3.18.71-perf-g6fc7aba (hud
(bootloader) kernel.version[1]: [email protected]) (gcc version 4.8 (GCC)
(bootloader) kernel.version[2]: ) #1 SMP PREEMPT Thu Feb 7 01:47:04 CST
(bootloader) kernel.version[3]: 2019
(bootloader) sbl1.git: git=MBM-NG-VB8.25-0-g0cc8007
(bootloader) rpm.git: git=MBM-NG-VB8.23-0-g3f612e6-dirty
(bootloader) tz.git: git=MBM-NG-VB8.23-0-g6c4172f-dirty
(bootloader) devcfg.git: git=MBM-NG-VB8.23-0-g6c4172f-dirty
(bootloader) keymaster.git: git=MBM-NG-VB8.23-0-g6c4172f-dirty
(bootloader) cmnlib.git: git=MBM-NG-VB8.23-0-g6c4172f-dirty
(bootloader) cmnlib64.git: git=MBM-NG-VB8.23-0-g6c4172f-dirty
(bootloader) prov.git: git=MBM-NG-VB8.23-0-g6c4172f-dirty
(bootloader) aboot.git: git=MBM-NG-VB8.25-0-gb74f6bf
(bootloader) qe: qe 0/0
(bootloader) frp-state: no protection (0)
(bootloader) ro.carrier: retla
all: listed above
 

TheFixItMan

Senior Member
Jul 8, 2012
7,845
4,046
London
It says oem_locked and I have cedric in fingerprint. I have errors both when trying to install twrp and when trying to put another firmware (operating system) on it.

I had bricked the cell phone, but I recovered it with the mmcblk0 file on the micro sd. When I put the 7.0 version, the cell phone was constantly restarting so I put 8.1 and now I can't do anything else, it always throws me an error.

I want to change the operating system or put twrp on it to try to solve the problem of not having a 3g or 4g signal. The imei did not erase and I have dual sim.
Your phone is bootloader locked

You need to unlock it before you can flash twrp or other firmware
 
  • Like
Reactions: NewenCarp96

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
    11
    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