[Unofficial] [05.10.2017]TWRP 3.1.1-0 Moto G5 [cedric]

Search This thread
Guys I got a little problem. I used this recovery and AICP for my Moto G5. If I tell my Phone to reboot...no matter if from off, Recorvery or System it reboots to recovery...not system. I can only boot System from fastboot mode.....
Kinda strange....
could you give me a hint how to fix this?

I have found a fix for this, after experiencing the same problem with my new Cedric. My fix is derived from this post, but modified to match our devices.

If you always reboot into recovery, and the only way to boot normally is using the bootloader, follow these instructions:

1) Boot into TWRP recovery.
2) Plug your Cedric into your computer (which needs to have drivers and fastboot installed).
3) Open a command prompt window and type:
Code:
adb pull /dev/block/platform/soc/7824900.sdhci/by-name/misc misc.img
This will make a backup of the misc partition just in case.
4) Type the following:
Code:
adb shell dd if=/dev/zero of=/dev/block/platform/soc/7824900.sdhci/by-name/misc
This will clear the misc partition. You might get a message regarding lack of space, but it's okay.
5) Your Cedric will boot normally again.
 
Last edited:

JameyS

Senior Member
Aug 23, 2016
62
5
48
Milwaukee
MOTO G5 Plus TWRP Removal

I wanted to use TWRP to move an edited build.prop file to the sys directory. I want completely stock rom with the exception of the build prop edit. The problem is, once I install TWRP, and then flash stock recovery, I get into a boot loop. How can I remove TWRP and revert back to stock?
 

TheFixItMan

Senior Member
Jul 8, 2012
7,845
4,046
London
I wanted to use TWRP to move an edited build.prop file to the sys directory. I want completely stock rom with the exception of the build prop edit. The problem is, once I install TWRP, and then flash stock recovery, I get into a boot loop. How can I remove TWRP and revert back to stock?

You are getting a bootloop either because

1 - the edits you have made to the build.prop are wrong or causing a conflict stopping phone from booting
2 - you have not set the correct permissions for the build.prop which should be 644 or 755 doesn't matter which - you can do this in twrp


to flash stock recovery is exactly the same process as if flashing twrp except you tell fastboot to flash your stock recovery img

Code:
fastboot flash recovery myrecovery.img

myrecovery.img is the name of your recovery file - be that twrp or stock recovery - what ever the name of the recovery image file is
 

JameyS

Senior Member
Aug 23, 2016
62
5
48
Milwaukee
You are getting a bootloop either because

1 - the edits you have made to the build.prop are wrong or causing a conflict stopping phone from booting
2 - you have not set the correct permissions for the build.prop which should be 644 or 755 doesn't matter which - you can do this in twrp


to flash stock recovery is exactly the same process as if flashing twrp except you tell fastboot to flash your stock recovery img

Code:
fastboot flash recovery myrecovery.img

myrecovery.img is the name of your recovery file - be that twrp or stock recovery - what ever the name of the recovery image file is

So, from a stock rom, I'm able to boot. After installing twrp (Without swiping to allow system changes) I can flash stock recovery and the system will boot. However, Once i swipe (Allow Changes to system) in TWRP, exit and re-flash stock recovery....the phone boot loops again.

This time, I did not make any changes....Just swiped to allow changes in TWRP.

Please advise.
 

TheFixItMan

Senior Member
Jul 8, 2012
7,845
4,046
London
So, from a stock rom, I'm able to boot. After installing twrp (Without swiping to allow system changes) I can flash stock recovery and the system will boot. However, Once i swipe (Allow Changes to system) in TWRP, exit and re-flash stock recovery....the phone boot loops again.

This time, I did not make any changes....Just swiped to allow changes in TWRP.

Please advise.

This is because stock checks dm-verity
You need to flash a disable dm-verity check zip as per instructions - search xda for one

Please read instructions
IMPORTANT NOTE :

At first boot twrp will ask for "Swipe to allow modifications for /system" and if you choose to allow it system partition will get modified. So if you choose to reboot back to OS without performing anything in twrp, the OS won't boot (as verity check is enabled in stock OS/kernel) . To avoid this you have to flash either SuperSU or flash any of the verity disabler zips there in xda
 
Last edited:

JameyS

Senior Member
Aug 23, 2016
62
5
48
Milwaukee
So, from a stock rom, I'm able to boot. After installing twrp (Without swiping to allow system changes) I can flash stock recovery and the system will boot. However, Once i swipe (Allow Changes to system) in TWRP, exit and re-flash stock recovery....the phone boot loops again.

This time, I did not make any changes....Just swiped to allow changes in TWRP.

Please advise.

If the system partition being is being altered by swiping (To allow modifications).... how to get back to normal?

---------- Post added at 02:45 PM ---------- Previous post was at 02:40 PM ----------

If the system partition being is being altered by swiping (To allow modifications).... how to get back to normal?

Read, but confused...

I wanted to perform some tasks that required root....but have root and twrp completely removed. Are you saying that once I install twrp, the only way to remove it is to keep su?

I find myself in a catch 22 here
 

TheFixItMan

Senior Member
Jul 8, 2012
7,845
4,046
London
If the system partition being is being altered by swiping (To allow modifications).... how to get back to normal?

I wanted to perform some tasks that required root....but have root and twrp completely removed. Are you saying that once I install twrp, the only way to remove it is to keep su?

I find myself in a catch 22 here

No you just need to disable dm-verity - the supersu zip does this by default
Once dm-verity has been disabled stock rom will boot with a modified system partition
You can unroot & put stock recovery back if you want to but note your system will still be modified & you will not be able to perform ota updates
 

JameyS

Senior Member
Aug 23, 2016
62
5
48
Milwaukee
No you just need to disable dm-verity - the supersu zip does this by default
Once dm-verity has been disabled stock rom will boot with a modified system partition
You can unroot & put stock recovery back if you want to but note your system will still be modified & you will not be able to perform ota updates

I tried downloading...it was not there. so I did a google search for the same file name. When I go to flash, it says "Unknown Partition" Either I have the wrong file or I'm doing something wrong. Does this get flashed before I flash TWRP...After? I'm sure it's written somewhere...just no finding it.
 

TheFixItMan

Senior Member
Jul 8, 2012
7,845
4,046
London
I tried downloading...it was not there. so I did a google search for the same file name. When I go to flash, it says "Unknown Partition" Either I have the wrong file or I'm doing something wrong. Does this get flashed before I flash TWRP...After? I'm sure it's written somewhere...just no finding it.

https://s3-us-west-2.amazonaws.com/supersu/download/zip/SuperSU-v2.82-201705271822.zip

Flash in twrp
Install
Select zip
Swipe to right
- you can only flash custom zips in twrp
You need to enable system modifications
 

JameyS

Senior Member
Aug 23, 2016
62
5
48
Milwaukee
https://s3-us-west-2.amazonaws.com/supersu/download/zip/SuperSU-v2.82-201705271822.zip

Flash in twrp
Install
Select zip
Swipe to right
- you can only flash custom zips in twrp
You need to enable system modifications

I was talking about no-verity-opt-encrypt-5.1
I have SU... and yes, It allows me to boot. But, I'm trying to remove su and twrp to go back (Not worried about software updates)
In order to go back to stock (While maintaining my edit on Build.prop), I need to flashno-verity-opt-encrypt-5.1... but when and how?
 

TheFixItMan

Senior Member
Jul 8, 2012
7,845
4,046
London
I was talking about no-verity-opt-encrypt-5.1
I have SU... and yes, It allows me to boot. But, I'm trying to remove su and twrp to go back (Not worried about software updates)
In order to go back to stock (While maintaining my edit on Build.prop), I need to flashno-verity-opt-encrypt-5.1... but when and how?

Is that a zip for the pixel running oreo? That's not going to work

Just do the root uninstall cleanup in the supersu app
Flash stock recovery

Im not using stock so I can't give anymore support
 

masterdex

Senior Member
Apr 16, 2011
1,191
351
I installed this recowery and after installing rom mod Viper final everything seems to work fine but when i want to restart both in recowery and in system i always end up in bootloader and i need to confirm them with the power button.
I have ADB and the phone is properly recognized someone can help thanks.
 

TheFixItMan

Senior Member
Jul 8, 2012
7,845
4,046
London
  • Like
Reactions: masterdex
G

GuestK0015

Guest
We Have Now Gone Official


I have now got official twrp support!

@Santhosh M
Please can you add the following links and details to the first post or I could create a new thread if you no longer want to maintain this thread

Change the thread title to [Official] [2nd Nov 2017] TWRP 3.1.1-0 Moto G5 [cedric]

Official TWRP for Cedric Site

If you are already rooted you can simply upgrade your TWRP when future versions are released via the Official TWRP App
Download TWRP App

If you are not already rooted you can still flash the latest TWRP version through fastboot
Official TWRP Image
That's brilliant! But what do I do here?
 

Attachments

  • Screenshot_2017-11-03-07-23-34.png
    Screenshot_2017-11-03-07-23-34.png
    85 KB · Views: 148

Top Liked Posts

  • There are no posts matching your filters.
  • 40
    Unofficial TWRP 3.1.0-0 Moto G5 (cedric)

    Latest TWRP changelog :

    New features of 3.1.1-0 (adb backup, tweaked MTP startup routines and plenty of bug fixes - for full changelog)

    Download Link

    twrp-3.1.1-0-cedric.img


    Working/Bugs

    I have just tested on 16 GB variant and all seems to be working. If something is broken lemme know.

    IMPORTANT NOTE :
    • At first boot twrp will ask for "Swipe to allow modifications for /system" and if you choose to allow it system partition will get modified. So if you choose to reboot back to OS without performing anything in twrp, the OS won't boot (as verity check is enabled in stock OS/kernel) . To avoid this you have to flash either SuperSU or flash any of the verity disabler zips there in xda

    • Force encryption is enabled by default in stock OS and twrp will successfully decrypt /data at first boot if all goes well

      If in case decryption doesn't go fine, twrp will popup a dialog box asking for password and that means decryption went wrong and you would need to wipe data once via twrp wipe options and reboot back to twrp for functioning of /data


    Installation Guide


    • Make sure you have unlocked bootloader
    • Reboot to bootloader
    • fastboot flash recovery twrp-****.img (if you want permanent flash) or fastboot boot twrp-****.img (if you want temporary
      boot)

    XDA:DevDB Information
    [Unofficial] TWRP 3.1.1-0 Moto G5, Tool/Utility for the Moto G5

    Contributors
    Santhosh M
    Source Code: http://Using prebuilt stock kernel and hence no kernel source available


    Version Information
    Status: Stable
    Stable Release Date: 2017-10-05

    Created 2017-03-17
    Last Updated 2017-10-05
    8
    New build available

    Hi all,

    New build link has been updated in OP.

    Changelog :

    • Encryption works with this release
    • TWRP 3.1.1-0

    Regards
    Santhosh
    6
    We Have Now Gone Official​


    I have now got official twrp support!

    @Santhosh M
    Please can you add the following links and details to the first post or I could create a new thread if you no longer want to maintain this thread

    edit - I have created a new thread
    5
    Cool. No issues :)

    Link me up the recovery and i will add it to OP download link :)

    Regards
    Santhosh

    here you go
    TWRP 3.1.1-0 Cedric.zip

    source
    https://github.com/Theitfixer85/android_device_motorola_cedric


    note if you are going to encrypt I dont think it shows the android is now encrypting logo - it just stays on the boot animation - depending on how much data you have will depend how long it takes for the phone to boot - Do not restart your phone or you will loose data
    Make a backup first!
    4
    Is there any possibility of working moto g5 roms on Redmi 3S Prime.We Compiled Nougat For It but sensors bug in it :| is moto g5 and redmi 3s prime sensors are same ??

    Im almost done bringing the device up so everyone can enjoy roms