yashsingh1/xdaforums huggingface dataset:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] vikrambsl:
Same issue here when I am flashing 3.2.1.1 via flashfy it asking me some password
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] LeoMiami:
i think you need to mfastboot flash the oficial twrp for potter and wipe data, then rebot to recovery, then wipe EVERYTHING, then install any thing. that way crypt goes away
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Wolfcity:
Flash TWRP

fastboot flash recovery 'name of recovery'

and then format data (wipe-format data) instead of wiping it.

And as posted above try official TWRP.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] target111:
I have an older version of twrp(3.1.0-n3) by Vache.. can I just flash the offcial twrp version over it?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] thedr34m13:
Yep, but there is an official version that you might want to flash instead
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] marcol87:
I flashed official version 3.2.1-0 but it asks for a password to decrypt data, so I went back to version 3.1.1-0 by Santhosh which is the only one (I guess) that can decrypt data without needing any password
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
I posted an updated img in official thread with working decryption
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] jordan2333:
Do you have a link to that please??
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] ST Dog:
https://xdaforums.com/g5-plus/development/recovery-twrp-3-1-1-0-touch-recovery-t3701488
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] TimelesslyPrecise:
Domain expired for androiddevs

This domain name expired on 2018-07-05 17:12:34

Click here to renew it.

Edit:

Nevermind, as i see and understand it now, the latest version fixes the decryption... so, the older versions are not needed.

Thanks!!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Wolfcity:
[MENTION=5293805]GtrCraft[/MENTION]:

As the latest TWRP has the decryption issue fixed I've got a general question regarding TWRP:

Am I able to restore my nandroid backups made with 3.2.1.0 with the latest 3.2.2.0 recovery?

In other words, is TWRP (always) backward compatible?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] akibahmed2011:
How did u format data partition. I am FAILED (data transfer failure (Unknown error)) msg while flashing twrp recovery
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Wolfcity:
If you are booted into TWRP or flashed it you can format data by going to Wipe - Format data (that's the option where you have to confirm with "yes" instead of just wiping).

If you can't boot or install one of the unofficial recoveries try the official TWRP 3.2.2.0.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] M1810:
does anyone happen to know where os the play store folder located? i want to downgrade the apk but can't find it in TWRP
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Wolfcity:
If you are talking about the playstore apk, it's located in system/priv-app and is called Phonesky.

Downgrading this apk makes not much sense as it will update in the background again. Not much you can do against that.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dev_uday:
Unable to flash twrp

This is the error i am getting

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery twrp.img

(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

(bootloader) has-slot:recovery: not found

target didn't report max-download-size

sending 'recovery' (16132 KB)...

FAILED (command write failed (Unknown error))

finished. total time: 0.006s

C:\Program Files (x86)\Minimal ADB and Fastboot>
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] sunmughans:
Unable to Download Kindly mirror the link sir!

Hello sir, i am stucked on a situation where the twrp on my potter is unable to mount data (invalid arguments) shows up continuously. I am facing this since last monday.

I tried the download link you mentioned but it didnt download the file. Even my friends reported that the link is broken of file isnt downloading by now (today). Please it a humble request kindly mirror the link to google drive so the we can download the file. Thankyou!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Santhosh M:
I will look at why the download server is down. Will edit this post when download server is up (so keep an eye on edit: )

Edit : The download server is up now.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] sunmughans:
Thankyou so much!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Santhosh M:
It's up now in case you are still looking for. Sorry for the late response.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] warbrd:
down again?

down again?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Wolfcity:
You can use official TWRP 3.2.3.1 now.

https://dl.twrp.me/potter/

Backup of persist,EFS is possible and decryption issue is also fixed.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Karthikmoto:
Is this official built support treble????
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Wolfcity:
You can read by yourself what has changed in the latest build. I just mentioned that you can backup persist what wasn't possible with the official TWRP before. What do you mean with " support treble"? As far as I know Potter stock doesn't support treble at all.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dahenjo:
Yes, it does, see this post:

https://xdaforums.com/g5-plus/devel...h-recovery-t3701488/post77451911#post77451911

"From now on you can use official twrp for everything."
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Karthikmoto:
Sorry I dont know about persist... So I asked that question...

Now I'm in Arrow Os 9.0

---------- Post added at 07:54 PM ---------- Previous post was at 07:51 PM ----------

Tq bro
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] stark1296:
Can I install twrp on my Moto g5 plus updated to official 8.1 Oreo (updated by downloading stock rom and giving storage permission to Motorola update services) .If I can't use this, is there any alternative to root it? I haven't even unlocked my bootloader yet.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] TargetedNuke:
Same situation here, no idea yet. Anyone else have an answer
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Wolfcity:
To flash/boot TWRP you need an unlocked bootloader and than you're able to root your device.

There are tutorials how to do it.

You updated by downloading OTA update and giving storage permission, not by a fastboot ROM.

You can install a full fastboot firmware by flashing it with stock recovery.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] elmer222:
target max-sparse-size: 256MB

error: cannot load 'twrp.img': No error

me da este error alguien podria ayudarme, muchas gracias
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NicoKlius:
hay que escribir en Ingles solamente si esperas ayuda!!!!!!!!

intenta descargar de nuevo el .img.

Espero haberte ayudado.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] SamarthRay21:
the system is saying that the img is not signed.

it says :

target reported max download size of 536870912 bytes

sending 'recovery' (16342 KB)...

OKAY [ 0.381s]

writing 'recovery'...

(bootloader) Image not signed or corrupt

OKAY [ 0.380s]

finished. total time: 0.781s
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] gourabpa:
flash latest version 3.3.1-0 from official site = https://dl.twrp.me/potter/
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] SamarthRay21:
but mine is potter. g5plus, should i download from that link you gave me?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] gourabpa:
yeah sure that link also for potter
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] SamarthRay21:
same error

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery twrp-3.3.1-0-potter.img

< waiting for device >

target reported max download size of 536870912 bytes

sending 'recovery' (16342 KB)...

OKAY [ 0.359s]

writing 'recovery'...

(bootloader) Image not signed or corrupt

OKAY [ 0.440s]

finished. total time: 0.810s
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Wolfcity:
Just to be sure:

Is your bootloader unlocked?

Any modifications?

And have you checked if TWRP is installed despite of the error message?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] SamarthRay21:
I unlocked it using that code from microsoft account for my device and when i go into download mode, it does say flashing_unlocked

Also bootloader unlocking from develop options is inactive yet is set in on mode.

no, modifications. plain stock rom.

i tried to download the twrp from the store and install through the app but whenever i click flash recovery, it says 'phone not rooted' in a toast and then tells me to select my device and download its img file from the site.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Wolfcity:
What happens if you enter the command

fastboot boot "name-of-your-recovery.img"

instead of flashing?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] SamarthRay21:
using that command, its only booting twrp, how do i install twrp then? i mean i tried a few different options but none of them installed it.

like even if i try to flash twrp from the twrp booted screen only it says, zip signature error and fails.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Wolfcity:
If you have booted into TWRP go to "install",once there change from zip to img, choose recovery and swipe the slider.

Btw, booting into TWRP is almost as good as flashing it. In most cases you can do the same things like when you flashed it.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] marcol87:
I tried many recovery versions but I can't load into recovery mode: the phone shows the TWRP's logo but then it restarts to normal mode.

how to fix that?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Wolfcity:
Use the official one: https://twrp.me/motorola/motorolamotog5plus.html

Try to boot into it before trying to flash it:

fastboot boot recovery "name-of-recovery.img"
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] marcol87:
thanks for your reply.

I've already tried with the official one and already tried with booting without flashing but the problem persists :(
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Wolfcity:
Flash official TWRP, than don't return to system, instead boot back to TWRP. That should make it stick.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] marcol87:
the problem is that I can't reach the TWRP main menu....after choosing recovery mode (from bootloader), the TWRP's logo appears for a few seconds and then the phone restarts in normal mode

----------------

EDIT: at the end I solved by completely wiping the device via fastboot commands ("fastboot erase system -w" and "fastboot erase boot") and by flashing stock Oreo
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Venkatesh18:
Hi guys,

After installing custom ron build with latest twrp, when i tried to reboot to system from twrp goes into twrp again..

only way to get into the system is to reboot to bootloader then boot to system,

after boot into system, when I reboot the device it goes again into twrp instead booting into system.

Please let me know if any resolutions, looking forward to it :)

or If you guys able to provide me the steps to go back to stock rom, that would be helpful too.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Venkatesh18:
Hi,

can you able to provide me the details to go back to stock oreo? TIA :)
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Wolfcity:
Back to stock:

https://xdaforums.com/t/guide-moto-g5-plus-flashing-stock-firmware-rooting-2021.4205293/

About of your issue with twrp:

Maybe reflash twrp, reboot to twrp and than to system.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Gene August:
twrp-3.6.0_9-0-potter is avaible now. After flashing the .img file and opening TWRP Recovery, I learned with some help from the How to Geeks that I needed to boot back into the system and re-enter the lockscreen password or pattern; no change required. This enabled TWRP to backup to microSD card, save settings, etc.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Gene August:
TWRP-3.6.0_9-0 is the current version for Potter.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] sysKin:
This version (just like previous 3.5.2_9) is larger than 16 MB and won't fit on my recovery partition. How does one flash it?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] massima:
I flashed the 3.6.1_09 version without problem.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] jaombk:
Download does not work, the file is downloaded in html format. They could provide another way to download
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] rayzen6:
i hope [MENTION=5480061]Santhosh M[/MENTION] will throw some lights soon on how to get it working. :)

---------- Post added at 12:34 PM ---------- Previous post was at 12:20 PM ----------

Btw mate did you got your unit yet?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] rayzen6:
did you able to get it working?

[MENTION=5480061]Santhosh M[/MENTION] isn't stuck on boot related to dm varity thing?

I found something here.

https://xdaforums.com/showpost.php?p=70492947&postcount=8793

i see something on moto z play twrp thread.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Santhosh M:
If you press "Swipe to allow modifications" when the twrp boots for the first time then its self explanatory that your system is already modified. By default all modern phones come with verity enabled. So if u allow twrp for modifications and reboot your phone it will obviously not boot as you have allowed to modify /system.

You have to either flash the verity disabler zips that are there all around xda or flash chainfire supersu zip which automatically disables verity.

I thought this is very much self explanatory to anyone experimenting a android phone and all the bootloop complaints here seem to be the same case
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] rayzen6:
That explains much better. Thank you :)
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] avvgopal:
but the download problem still persists. When I flash the file saved as disc image, I get the error message- image not signed or corrupt
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Santhosh M:
Alert Note

I believe you guys know what verity is ? When you boot into twrp for first time it will ask for "swipe to allow modifications" and if you enable it, system partition will be already modified and this is a known fact. So when you try to boot back into OS it will obviously not boot because verity is enabled in boot image and /system is modified.

Your solution is to flash verity disabler or supersu zip which disables verity.

If you are not aware of this, then there is no point complaining about bootloop. Android verity has been there since 2 yrs or so and you guys are well aware of this i believe
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] deepakdtg:
Well, I tried flashing verity disabler & supersu, both the phh and chainfire ones, still no luck. If you could list out step-by-step instructions, that would be great, as most guys aren't able to get this to work.

Thanks!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] rayzen6:
No mate not atleast me :D and I don't think many here too, since it looks all of them had stuck on that point lol. Thanks for explanation. So this should be procedure right?

1.Unlock BL.

2.Flash IMG file in fastboot.

3.give cancel when asking for password and give allow modifications.

4.wipe data.

5.Flash dm variety zip.

6.reboot.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] pankajgavri:
which supersu working, i tried many but no success
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] rayzen6:
Try phh su.

Flash it through twrp: https://superuser.phh.me/superuser.zip

Then installed the phh superuser app: https://play.google.com/store/apps/d....phh.superuser
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] pankajgavri:
I already tried.

Did it worked for you???
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Johny Cipeli:
Guys Now your problems are solved!!! :)

I rooted mine, and the steps are here: https://xdaforums.com/g5-plus/how-to/how-to-root-moto-g5-plus-t3579659
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] rayzen6:
Hey bro what's up with ur device? Is it comes?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fAIyaZ:
Hi there [MENTION=5480061]Santhosh M[/MENTION]

Is there any plans for custom ROM by you? It would be great.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flyguy914:
I got twrp working does anyone know how to root it? I can't find a thread anywhere
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dahenjo:
Somehow you missed the thread right in this forum titled "How to ROOT Moto G5 Plus".

It doesn't use Chainfire's SuperSU though and it looks like some may be having root related issues afterwards, so I'm holding off until I'm sure it's working well or for another method using SuperSU.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flyguy914:
thank you, this thread isn't in the rom, kernels etc section
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flyguy914:
View attachment 4095128
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dahenjo:
Correct, it's in the 'Guides, News, & Discussion' section of the

Moto G5 Plus

forum.

It's also mentioned and linked three posts above yours saying "I can't find a thread anywhere" in this thread of this section.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Harsh.gundecha:
Does anyone know the reason why chainfires SU isn't working ?

AND

Has Anyone tried if twrp backup and restore works properly ?

Thank you ?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] rayzen6:
I asked him at Twitter​. He said might be he'll. But not too sure as if his busy.

I really hope we will see some love from him very soon.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] flyguy914:
Oh ok thank you
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dhan...:
Stuck moto g5 plus

After flashing the recovery, it opens the twrp and it working, reboot the System, it stucks on the bootloader screen. when I try to go into it in TWRP(3.1.0-0-potter) it won't let me and it shows storage as 0mb.So im waiting for stable twrp and supersu..
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Harsh.gundecha:
Follow that how to root thread or the YouTube video of same, Worked perfectly for me and remember to use Magisk 11.6 not 12
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dahenjo:
It made a backup successfully but I haven't tried restoring it.

Problem: TWRP isn't detecting my micro-SD (SanDisk 64GB) and I could only backup to internal storage. I used the same card with TWRP in my Moto X Pure with no issues, and the G5 Plus otherwise detects it except when in TWRP.

Do others have their micro-SDs working correctly in TWRP?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] abeloman:
Seems a known bug, SD is not detected in TWRP

Enviado desde mi Moto G (5) Plus mediante Tapatalk
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dhan...:
Magisk 11.6 perfectly working but some apps are not working like private place..so im waiting supersu root..
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Awesomeslayerg:
Guys i think we can port a Lineage os from the Moto Z Play as it has similar specs. I am going to test the recovery for the moto z play on the moto g5 plus as i was able to boot into it with no issues at all.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] rayzen6:
Did you able to boot recovery of z play on G5+? Ya I know both shares same SoC and might be same sources as potter config is already there in z play source.

If you like to join us here at Telegram group here's the link.

telegram.me/MotoG5Plus
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dahenjo:
SD card isn't detected in TWRP but is detected normally in Settings/Storage, when connected to pc, etc. SD card is not formatted as internal storage and was detected by TWRP [clark] in my Moto X Pure and used for installs/backups/restores.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Santhosh M:
Will check out :)
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dahenjo:
Thanks, and I appreciate your work on this.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dhan...:
not working

not working.. im waiting supersu root
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] rayzen6:
Check this out

https://xdaforums.com/showpost.php?p=71774746&postcount=35
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] wooddale:
Sorry for dumb question just bought G5th on Verizon. Can I unlock bootloader on it and flash twrp? Thanks.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] chenyia1:
would this work for amazon ads lock screen subsidized version? thanks
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] kaustubh_lipare:
No it would not work...Amazon version is not unlockable..
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] chenyia1:
okay thank you!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] anubis2591:
Yeah, you saved me from getting the Amazon subsidized version with that clarification. Thanks!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Karlinski:
Ditto on the SD card issue as well. No rush or need, just something I found.

Thanks to the developers for all the hard work so far!!!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] sportsinger75:
Download Link Doesn't Work

Download link doesn't work.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Karlinski:
Try to DL again
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dahenjo:
OP's link does work, it's the last item in the list of several on that page - 'TWRP for Moto G5 plus'.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] jndrad:
I've tried without success to download twrp without success...Am I missing something

---------- Post added at 05:15 PM ---------- Previous post was at 05:11 PM ----------

Please disregard prior post...My bad.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Santhosh M:
It works. I just checked :) [ You need to save link as if direct click doesn't download]
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] 22sumit:
when will we get an official TWRP? any developments in progress?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Ankit_29:
Don't run behind the tag of official. Unofficial are also great.

And don't worry we will get it soon."Patience"
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] jstiel:
Me too. been trying all day.

Edit: discovered that is to be expected. Would be a nice addition to the guide.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] sjau:
Hi there

I unlocked my Moto G5 but the problem is that I can't flash twrp

fastboot flash recovery twrp-3.1.0-0-cedric.img
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:recovery: not found
target reported max download size of 536870912 bytes
sending 'recovery' (14078 KB)...
OKAY [ 0.445s]
writing 'recovery'...
(bootloader) Image not signed or corrupt
OKAY [ 0.277s]
finished. total time: 0.723s

md5sum twrp-3.1.0-0-cedric.img
6a95bd15e5b3522f1657ee76dfa995bb twrp-3.1.0-0-cedric.img
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Karlinski:
You are flashing TWRP cedric... I think that is the Moto E??

You need Potter for the G5+
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Zenzfum000:
Which device do you have? G5 or G5 Plus? This thread is for Plus version (Potter)
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] sjau:
I have a G5. The link provided in the first post leads to http://www.androiddevs.net/downloads/ , there you have links for TWRP G5 and G5+, highlighting the G5 link leads to http://149.56.164.10:1990/moto/twrp_cedric.zip

Also here https://xdaforums.com/g5/development/unofficial-twrp-3-1-0-0-moto-g5-t3574450 it's linked to Cedric for the G5.