[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,850
4,037
London
I had an issue with version 3.4.0-1. When I tried to wipe or flash system partitiion I got following message:
Code:
Failed to unmount '/system' (Device or resource busy)
I also could not unmount system partition from mount menu: I touched the tick next to "system" but it kept being marked. Other partitions mounted/unmounted ok.
I tried twrp-3.2.3-0-cedric.img. This one did not have the issue. I wiped the system partition. After reboot I flashed 3.4.0-1 and now flashing works.

The system partition was stock firmware (never flashed yet). Seems like 3.4.0-1 has some issue with stock system partition.
I can't see any difference in the device tree between the versions in regards to how system is mounted so this maybe a twrp issue if rebooting to recovery after wiping data to remove encryption doesn't allow you to mount all partitions correctly and swiping rigjt to allow modifications to system partition on first run of twrp.
 

TheFixItMan

Senior Member
Jul 8, 2012
7,850
4,037
London
Twrp version 3.5.0_9.0 changelog
  • Fix building in android-5.1 trees - CaptainThrowback
  • New QTI Haptics Support - AndroidableDroid
  • New TSPDriver Haptics Support - LameMonster82
  • Selinux restore issues - AndroidableDroid
  • OEM build fixes - Fighter19
  • More file extension support in Gui file selector - Mauronofrio
  • FBE Fixes - CaptainThrowback
  • Ozip Decryption - Mauronofrio
  • Don't use persist for recovery logs - bigbiff
  • Delay touch startup if necessary - bigbiff
  • Spanish translation Updates - R0rt1z2
  • Fix cache wiping on Slot A only devices - AndroidableDroid
  • Exclude dumpsys directory from backups - DarthJabba9
  • Gerrman translation Updates - 4ndyZ
  • HW Rotation during runtime (does not affect touch panel) - webgeek1234
  • API 24 fixes - AndroidableDroid
  • vold_decrypt error on unmount - CaptainThrowback
  • Multiuser - warn when users are not decrypted - noahajac
  • FDE encryption fixes - CaptainThrowback
  • Crypto state fixes - nebrassy
  • Chinese translation Updates - Whyle
  • Theme updates to match android-10 release: CaptainThrowback
  • Move TWRP App install to Advanced page - Dees_Troy
  • Update Russian Translation - f2065
 

oxmoose

New member
Jan 26, 2014
3
0
C:\platform-tools>fastboot flash recovery twrp.img
(bootloader) is-logical:recovery: not found
Sending 'recovery' (17536 KB) OKAY [ 0.724s]
Writing 'recovery' (bootloader) Image size exeeded partition limits
(bootloader) Preflash validation failed
FAILED (remote: '')
fastboot: error: Command failed

it says it exeeds partition size
 

oxmoose

New member
Jan 26, 2014
3
0
>mfastboot flash recovery twrp.img
target max-sparse-size: 256MB
sending 'recovery' (17536 KB)...
OKAY [ 0.555s]
writing 'recovery'...
(bootloader) Image size exeeded partition limits
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.559s
 

TheFixItMan

Senior Member
Jul 8, 2012
7,850
4,037
London
C:\platform-tools>fastboot flash recovery twrp.img
(bootloader) is-logical:recovery: not found
Sending 'recovery' (17536 KB) OKAY [ 0.724s]
Writing 'recovery' (bootloader) Image size exeeded partition limits
(bootloader) Preflash validation failed
FAILED (remote: '')
fastboot: error: Command failed

it says it exeeds partition size
In your case use

fastboot boot recovery twrp.img

It will boot into twrp recovery without permanently flashing it

For some reason the latest version is 1mb bigger than the previous 64bit version but I no longer support this device in terms of compiling & testing
 

oxmoose

New member
Jan 26, 2014
3
0
In your case use

fastboot boot recovery twrp.img

It will boot into twrp recovery without permanently flashing it

For some reason the latest version is 1mb bigger than the previous 64bit version but I no longer support this device in terms of compiling & testing
thanks for the response, ive installed and old 64 bit twrp and installed lineage os 17.1. hope a old version dont destroy my device
 

b.zill

Member
Oct 30, 2016
44
13
TWRP 3.5.1 cannot be installed: "Size of image is larger than target device"
TWRP 3.5.2 cannot be installed: "Size of image is larger than target device"
—?!

Cheers
 

TheFixItMan

Senior Member
Jul 8, 2012
7,850
4,037
London
TWRP 3.5.1 cannot be installed: "Size of image is larger than target device"
TWRP 3.5.2 cannot be installed: "Size of image is larger than target device"
—?!

Cheers
Read previous posts - either use an older version or boot instead of flash

I don't maintain the 64bit version
Maybe @JarlPenguin can address the issue and push the changes to twrp
 
Last edited:

TheFixItMan

Senior Member
Jul 8, 2012
7,850
4,037
London
It would not be easier to leave twrp in the version twrp-3.5.0_9-0 delete the most recent
I have no control over what is on the twrp website - official builds are built automatically. As mentioned before @JarlPenguin would need to update the source code & push to twrp or someone else would need to take over maintenance.

I no longer own this device so I can't maintain the code as I have nothing to test on
 

roby19

Member
Jan 16, 2016
21
2
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.
 

rtd4

Senior Member
Jan 31, 2021
91
21
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.
it happened to me before that was what I did

1. flash TWRP again
2. transfer DM-VERITY & FORCEENCRYPT DISABLER to memory card
3. go to Wipe in TWRP then in Format Data you write yes back to start go to Reboot restart in recovery flashes DM-VERITY & FORCEENCRYPT DISABLER
4. restart in systema configure the device and enjoy
 

roby19

Member
Jan 16, 2016
21
2
not or the twrp, I could not put it with fastboot, this is the problem, after unlocking the bootloader, I wanted to put the twrp, but nothing to do.
 

rtd4

Senior Member
Jan 31, 2021
91
21
not or the twrp, I could not put it with fastboot, this is the problem, after unlocking the bootloader, I wanted to put the twrp, but nothing to do.
which firmware are you on
OPP28.85-19-4-2
OPPS28.85-13-6
NPPS25.137-93-14
if you can't flash you will have to patch the boot.img with Magisk and flash it with fastboot and then install TWRP App choose Cedric
 

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