yashsingh1/xdaforums huggingface dataset:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Santhosh M:
You downloaded the zip and extracted the img from it and flashed it ? and you see an error ?

Could redownload again and try from the download link
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] sjau:
I tried several times. Always same error. File not signed or corrupted. File isn't corrupted as I can boot into TWRP using

fastboot boot twrp-3.1.0.0-cedric.img
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] rayzen6:
That's not an issue. Just flash again and reboot into recovery. You'll land on twrp itself :)
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] sjau:
However, TWRP still isn't installed. It's just a circumvention right now.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Santhosh M:
If TWRP boots for you in case of fastboot boot copy the image to your internal and flash the recovery using twrp's flash image option
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] sjau:
TWRP can do that? Ha, I never knew. I will try it later when I'm back home. Thx for the info.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] jndrad:
disk image

can some please tell me why when i download twrp, it shows being saved as disk image..how do i go about fixing this

thank you for any help you can provide
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] critofur:
Is this TWRP still not working with the SD-CARD?

"http://149.56.164.10:1990/moto/twrp_potter.zip"

FYI: I had to turn off PeerBlock before I could download this.

---------- Post added at 01:30 PM ---------- Previous post was at 01:28 PM ----------

When I download it I get a .zip file - inside the .zip file is a .img file.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
In my case I can't approach the external SD-card in TWRP.

You can flash the img file with fastboot. (fastboot flash recovery name-of-recovery.img)

Verstuurd vanaf mijn XT1685 met Tapatalk
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Santhosh M:
Where are you downloading from ? It should be downloading as zip
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] jndrad:
I was downloading from work computer...I then tried my personal ...all is well ...thank you
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] gomax:
Thanks to dev for this port. Looking forward to being able to use external or OTG storage. My AOKP-ROM install with apps backup won't fit on internal storage.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
That's strange. you should have 32 gb of internal memory. What's the size of AOKP? Less than 400 mb.! If that doesn't fit you either have a huge amount of apps installed, or a huge amount of music/picures/downloads. Consider some cleaning up, i'd say....

By the way, I saw that there is a recovery in the download section of AOKP. I think I'm gonna try that when I'm finished with my nightshift!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] gomax:
Only 10 gb available for internal storage on mine. AOKP install file is only 400mb but more like 4gb when installed as OS. Have slimmed down my apps and transferred first backup to PC. TWRP backup went OK then......
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
Yes, but the installation of a rom is in the system partition, not the data partition. Your 'old' rom disappears and makes place for the new rom. You can always first make a nandroid, reboot to your current rom, move the nandroid to your external and then install, for instance, AOKP...

But, I agree, a solid recovery with external sd support would be very nice and convenient!

Verstuurd vanaf mijn Moto G (5) Plus met Tapatalk
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
Tried that recovery, but it's unusable. It should be possible to navigate with the volume keys, but nothing happens...

Verstuurd vanaf mijn XT1685 met Tapatalk
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] kzdom:
Is there a trick to restoring a backup with this? Every attempt to restore has worked, but my pin or pattern are not correct and I am unable to get past the lock screen.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] abeloman:
Look here

https://xdaforums.com/showthread.php?t=3600975

Enviado desde mi Moto G (5) Plus mediante Tapatalk
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] critofur:
So, I failed to realize that after installing TWRP, I have to wipe /DATA so the ROM and GAPPs I copied to my phone's internal storage would be gone? (But, I don't know why I don't see it actually, because internal storage and /DATA are different partitions, right?).

Anyway, I couldn't find my ROM .zip image so I tried USB OTG and found that I was able to mount a USB flash drive - I wasn't sure if USB OTG would work or not, since this TWRP won't mount the SDCARD, but glad to say USB OTG does work.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Santhosh M:
Sdcard test

Hi,

Can anyone test this twrp build which has a fix for sdcard. Try it out and lemme know ( I couldn't try myself as device is not available with me atm).

Download link

Regards

Santhosh
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] magdeoz:
Unfortunately still not working
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Santhosh M:
Can you pass me the recovery log
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] magdeoz:
are here
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
Still showing this:

View attachment 4146129

Hope this helps:

Send from my Motorola Moto G5 Plus (XT1685) using Tapatalk
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] thudenska:
Take a look there: https://xdaforums.com/g5-plus/how-to/screen-lock-pattern-recognized-t3600975

Sorry, I see its already mentioned
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] vache:
External SD test

Here's a version i made : http://cloud.vache-android.com/Moto/potter/TWRP/twrp-3.1.0-0-n3-potter.img

Changelog

:

Kernel build from sources

Fix for systemless root (thx to [MENTION=4898097]arter97[/MENTION])

External SD support (let me know for this)

[MENTION=5480061]Santhosh M[/MENTION]: i think it's not needed another TWRP thread, but if you want it can be done and let this one clean.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Santhosh M:
Sure, i have no issues. If it works will update the OP as well so users can benefit. You have already tested or waiting for feedback ?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] vache:
It was already tested by few users, that's why i post this here, but need more tests for sure =)
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] bakedpatato:
Confirmed that SD card works on XT1687, thanks!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Santhosh M:
Cool ! So what was the issue ?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] vache:
This commit, cherry-picked from sanders dtsi:

https://github.com/boulzordev/andro...mmit/156098049c9f7d66f4c4a884696b10d947474cfd
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
Just flashed the latest LineageOS from my external_SD! I can confirm: problem solved! Thanks [MENTION=1829889]vache[/MENTION]!

Send from my Motorola Moto G5 Plus (XT1685) using Tapatalk
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
I'll test it. One sec
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] gomax:
Works a treat, many thanks Vache
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] atrac17:
Works like a charm on my XT1687... Thanks [MENTION=1829889]vache[/MENTION] for all your hard work on potter!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
It's been working perfectly. Good job
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] gomax:
Usb-otg device recognised but contents not read in new vache TWRP....
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] deepu28792:
Is there anyone who knows why security code is not working after restoring backups from twrp. I mean after I restore any backup when phone boots it asks for unlock code but it doesnt accepts the code. Is there any solutions ?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dahenjo:
I had this problem too and started a thread on it, but I can't vouch for the "solution" someone posted involving deleting certain files in /data/system. However, I did have one non-stock backup using the same security pattern that did work correctly after restoring.

From a google search it seems this happens with other devices using other TWRP versions and can affect codes, patterns, PINs, etc. Maybe it's done intentionally as another layer of security, and all of mine this happened with were stock backups, but not the custom ROM.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] atrac17:
Check this thread... Hope that helps.

https://xdaforums.com/g5-plus/how-to/screen-lock-pattern-recognized-t3600975
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] deepu28792:
I saw this thread but its not a solution because once you delete those .key files then you cannot set any pattern or pin or password. Anyone can access your phone as it just unlocks with a swipe after deleting those files.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] atrac17:
Have you tried just deleting locksettings.db and then resetting your pattern/pin/fingerprint? I've used this method and after booting had my pattern/fingerprint restored.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] EdgA#1:
Turn off your Lockscreen password and then make your TWRP Backup, that's my method...after restore you Fan set a new password/fp/gesture

Gesendet von meinem Aquaris X5 Plus mit Tapatalk
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
[MENTION=1829889]vache[/MENTION] and [MENTION=5480061]Santhosh M[/MENTION]

First of all, many thanks for efforts in making a completely usable TWRP recovery. As 'general' user i'd like you to join forces, at least in keeping one thread for TWRP. Obviously, in time TWRP will be official for this device. I hope that by that time there's only one thread for TWRP

I don't mind searching, but, in my experience, 'searching' is a very hard thing for many users here on XDA. They are repeatedly going to ask for links (which, imho, is very annoying). Like now that they have to search for the TWRP version from [MENTION=1829889]vache[/MENTION]. Get what I mean?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Santhosh M:
OP already carries the new TWRP by vache :) [ I have updated already ]
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
Thanks! Maybe you can add [MENTION=1829889]vache[/MENTION] as a contributer in the OP?

Send from my Motorola Moto G5 Plus (XT1685) using Tapatalk
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] vache:
Tbh, I don't care about this.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
I know. You're a great and very productive developer, but you don't care much about your personal visibility (same as on on the G4 Plus). Nevertheless, imho, you deserve your credits...

Send from my Motorola Moto G5 Plus (XT1685) using Tapatalk
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Santhosh M:
Done :)
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] 22sumit:
need unofficial twrp with external sd card support. Is it too hard to develop for this device? [MENTION=5480061]Santhosh M[/MENTION]: Efforts appreciated bro.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
I'm with you on that. Then there's some people that may honestly just get out right confused if they don't keep up with these things

---------- Post added at 01:27 PM ---------- Previous post was at 01:24 PM ----------

So does it play nice with encryption now? I'd really like to turn it on tbh
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Karlinski:
I dont believe it's a matter of "too hard to develop", but they have other jobs, not just this development. That said, I know that one of the two( [MENTION=5480061]Santhosh M[/MENTION] or [MENTION=1829889]vache[/MENTION] ) doesn't even have the device, or not full time anyways.

It's a new device, and takes time. I am very happy with the progress so far.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] rayzen6:
read some of ur previous comments atleast.... it is fixed now. head over to op for dwld link.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] 22sumit:
My bad, I should've gone through last few posts. Flashed twrp n3 by vache and got the external SD card readable in recovery. Thank you.!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] XenPanda:
fastboot issues

Ran into some issues, ran the flash recovery for twrp a couple times, loaded twrp from fastboot and successfully booted up into OS (even got past "your bootloader has been unlocked your device can't be trusted" BS). Though when I'd restart the screen to ask if I wanted to install TWRP as an app would flash and get skipped. restarted again, and loaded into TWRP from fastboot screen using recovery mode, booted to system and now I get stuck at the the "your device can't be trusted: Device will boot in 5 seconds" screen. Tried wiping from Twrp, can't flash from fast boot screen, just locks up.

Currently trying other methods but it's a pretty solid bug right now.

Ideas are welcome :P Update if/when I have more info.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] attack11:
You need to disable dm-verity,Flash this = https://www.androidfilehost.com/?fid=673368273298927206 ,Good Luck!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] G5 Plus Mate:
TWRP on G5 Plus XT1685 (Europe)

Hi all.

In oder to flash TWRP I unlocked the bootloader of my G5 Plus (XT1685). Unfortunately I now have a message on every boot "Your device has been unlocked and can't be trusted ... ID: bad key Your device will reboot in 5 seconds".

After way more than 5 seconds it reboots back into the system. It doesnt matter if I try "adb reboot recovery" or use Volume+ and Power. So, I just cant access TWRP. Volume- and Power lets me chose "Recovery mode" Selecting it gets the same result.

I flashed it like this:

c:\G5plus\adb-fastboot-tool-2016>fastboot flash recovery recovery.img

(bootloader) has-slot:recovery: not found

target reported max download size of 536870912 bytes

sending 'recovery' (14310 KB)...

OKAY [ 0.413s]

writing 'recovery'...

(bootloader) Image not signed or corrupt

OKAY [ 0.291s]

finished. total time: 0.708s

Now, after the messages above, I can' really tell if TWRP has actually been flashed or if the "Your device..." message spoils any attemp to access it. On a G4 Plus flashing another logo.bin apparently at least helps to get rid of this message.

However, flashing / getting TWRP on a European device doesn't seem to work, following all instructions I read.

Anyone any idea?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] attack11:
For the error check my post above yours, you could be able to go to twrp by presing vol - and power off button and chosing the recovery option,search also in the web about the logo bin to "hide" the warning
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] XenPanda:
Hey! It actually turned out to be an issue with my ROM, after I installed Lineage it started working again, but I appreciated this post. Sideloaded that zip but it didn't seem to do anything. Looked into it doesn't seem to be much info on it. Thanks though!

That message is related to the fix posted above. You may want to look into that. TWRP goes on the recovery not the bootloader, so when you boot into the screen where you would do fastboot you will want to use the up and down volume buttons to select "recovery" and hit the power/lock button. This will start TWRP. As stated in the OP, you should wipe /data within TWRP and boot back into recovery.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] G5 Plus Mate:
Okay, I flashed a new logo. Looks nicer, but didn't help. At least I found one way to boot into TWRP:

fastboot boot recovery.img

So, booting it up from PC. From there I even can boot into recovery again. I also flashed TWRP from inside TWRP. However, there is still no other way to start it. When trying to flash no-verity-opt-encrypt-5.1.zip it tells me at the beginning, that it is unable to mount /data. So flashing it didn't help. Flashing was simmilar and ended up doing nothing after a while. I had to reboot, amazingly the phone is not bricked.

Totorials told be to skip allow modifications and do a factory reset. "Failed!"

I am out of ideas. Anyone?

PS: The volume - / Power and chosing recovery mode doesn't work. Same result.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] attack11:
Did you formated your data partition?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] G5 Plus Mate:
Got it!!!!! :)

Formating data was the key. Thank you very much. However, it was still a long and dirty way to go. Maybe what I have been through helps others, so here is what happened:

What I did first was trying a factory reset from within the system. Result: a factory reset did not really happen but from then on the phone booted ONLY into TWRP, no matter where I told it to boot into from TWRP itself. I tried flashing no-verity-opt-encrypt-5.1.zip again and got many red lines (error messages). Volume - and Power and then select Start got me out of it (system boots again).

An improvement: now I could (and still can) access TWRP by Volume - and Power and then selecting Recovery Mode. However, whatever I did with TWRP resulted into the error messe(s) that it can't access /data/....

So, I formated data, got a lot of error messages while doing it, but it worked!!! Now TWRP doesn't give any error messages anymore and I could install both, no-verity-opt-encrypt-5.1.zip and after a reboot into the system and back to TWRP again: Magisk-v11.6.zip.

But I wasn't quite there. After installing Magisk, the app told me I was rooted. Root checker said I am not. I upgraded to Mgisk 12.0. Then both, Magisk and Root Checker told me I am not rooted. I deinstalled Magisk and flashed it again. Voila: Magisk said I am rooted and asked me for the first time to grant root accessto to Root Checker which then said I am rooted. And I am! So, I better did not upgrade Musk again, so far.

So, unlocking and rooting works on European G5 PLUS Models (I got mine in Germany) after all.

Thank you very much again for the support. :good:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Glenn Seto:
No data decryption in TWRP

Running into the following issue with the n3 version and the May 13 build of Lineage:

Recovery flashed with the corrupt/unsigned message, but it works otherwise.

Complete wipe/reformat of data, system, SD, flashed Lineage, SU addon, GApps, iSU patch.

Booted Android, formatted SD as internal memory, switched on data encryption.

The OS works fine (even if reboots can take as long as 1st boot for no obvious reason), but when booting into TWRP, it does NOT prompt me for my encryption PW and there seems to be no way to access the data partition in recovery. Is there a known fix for this?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] manos78:
Hi,

Some questions:

1) "no-verity-opt-encrypt-5.1.zip" is needed with this TWRP? This patch (no-verity-opt) touches the system partition, or it's completly systemless?

2) With the last release from 2017-05-12, has this recovery full access to the SD Card?

3) What it's the best option for disabling the device encryption? When the first booting, I need to setup the device, enable the "developer options" menu, and set "Bootloader unlock". Only after that I can do the unlocking... but at this point the data partition is encrypted (the Security menu shows "encrypted phone"). Then the question is: it's best to flash TWRP and format the data partition from TWRP and reboot?

Thank you!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
I made a TWRP build with support for system image, recovery, logo and EFS backup

Be careful with EFS backup because you can brick your device if you do something wrong with it
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] milav:
does this mean i can take a backup of all partitions??
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
Almost all yes
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] nightwalkerx22:
Hey OP, can you share your source?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
https://github.com/GtrCraft/android_device_motorola_potter

https://github.com/boulzordev/android_kernel_motorola_msm8953/commits/twrp
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] manos78:
I hope soon the maintainer of this TWRP will merge these changes. :fingers-crossed:

Thanks a lot! :highfive:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dahenjo:
Guess this is what [MENTION=5293805]GtrCraft[/MENTION] based the latest TWRP on:

TWRP 3.1.1 is Out, Brings Minor Fixes

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

"The most famous custom recovery for Android, the TeamWin Recovery Project (or simply TWRP), received an update to version 3.1.1. The new release does not bring many new features, but fixes the most annoying flaws of version 3.1.

XDA Senior Recognized Developer Dees_Troy posted a changelog on his Google+ account. It’s not long, but gives us an overview of what has been improved:

Backups will now include adopted storage keys (Dees_Troy)

Fixed an adb restore issue (bigbiff)

Fixed rebooting when no OS is present (Dees_Troy)

Fixed line wrapping in the GUI terminal (_that)

Updated TWRP source code to AOSP 7.1.2 (Dees_Troy)

From the changelog, we learn that two major bugs have been fixed, though people waiting for spectacular new features will have to wait for future releases.

The new version of the recovery has released for supported devices but if it’s not available for your device, it should appear within next few days. You can grab the latest version from the official website or by using the official application."

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Looking forward to seeing TWRP for potter go official on TWRP site when possible.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] roygbiv859:
Can I just flash this right over the last version?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] milav:
I am noob sorry
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
Yes those changes are in my build
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Ping atos:
I tried flashing it but it returns:

(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' (12993 KB)...
OKAY [ 0.280s]
writing 'recovery'...
(bootloader) Image not signed or corrupt
(bootloader) Invalid boot image
FAILED (remote failure)
finished. total time: 0.306s

I do have a Moto G5 plus, and I did use the potter version. Can anyone help?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dahenjo:
Are you sure you were fully connected and could see your device listed when typing 'fastboot devices'?

Also the file size looks different than the three TWRP for potter versions I have.

I'd recommend trying this one which I just installed this morning with no issues:

D:\BU\Fastboot-ADB>fastboot flash recovery twrp-3.1.1-0-GtrCraft-potter.img

target reported max download size of 536870912 bytes

sending 'recovery' (11500 KB)...

OKAY [ 0.247s]

writing 'recovery'...

(bootloader) Image not signed or corrupt <--- this is normal btw, not a failure

OKAY [ 0.188s]

finished. total time: 0.435s
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mauritzius:
Regarding encryption: I'm on an encrypted AOKP and just tried to do a backup with TWRP:

TWRP by GtrCraft does not ask for decryption at all

TWRP by Vache does ask for pattern, but fails to decrypt

Any ideas why? Thanks
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] donjuro:
I am getting a similar error, image not signed or corrupt. If I try to boot again it goes to the logo screen and says ID: bad key. Can anyone help?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
Does the recovery support encryption yet?

---------- Post added at 09:33 PM ---------- Previous post was at 09:32 PM ----------

When you said it doesn't ask do you mean it doesn't ask and doesn't work?