yashsingh1/xdaforums huggingface dataset:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] seed_87:
Went ahead and upgraded to TWRP 3.2.3-1 using fastboot mode, this one does not ask me for my pattern aswell, anywhow did a full twrp backup.

I thought TWRP needed my pattern in order to decrypt /data, is this not required anymore?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] parisisal:
Can anyone help me ?

In order to use TWRP (the 5 steps), the Device must have the root permission (using another procedure) ?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] seed_87:
Nope, u need root.

If you dont have a rooted phone, you gotta install TWRP via fastboot. Instructions (Scroll down to "Fastboot Install Method (No Root Required)"
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] :
Does this support encryption on pie roms? (Such as pixel experience)
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] stark1296:
At least Pixel Experience Pie supports encryption for sure.

Can't confirm for other pie roms though...
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] :
Yes but does this work with this twrp version. Am I able to decrypt the device with the recover ?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] stark1296:
Not sure about that.

For flashing pie based gsi's, I came across many unofficial twrp's recommended specially for the purpose of decrypting the device.

But, I think that [MENTION=5293805]GtrCraft[/MENTION] had fixed decrypting, so, it should work but I am not sure about it so you better get this confirmed.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] :
Ok thank you
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] avwtp:
Persist size shows 0 size in TWRP

G5+ Stock, rooted, with 3.2.3-1. Tried to do full backup (before trying out Oreo) but display shows Cache and Persist both with size of 0 MB. Selected them anyway and the sizes in the backup folder are:

-rw-rw---- 1 root sdcard_rw 328704 2018-11-06 03:28 persist.ext4.win

-rw-rw---- 1 root sdcard_rw 83 2018-11-06 03:28 persist.ext4.win.sha2

-rw-rw---- 1 root sdcard_rw 59 2018-11-06 03:28 persist.info

-rw-rw---- 1 root sdcard_rw 77824 2018-11-06 03:27 cache.ext4.win

-rw-rw---- 1 root sdcard_rw 81 2018-11-06 03:27 cache.ext4.win.sha2

-rw-rw---- 1 root sdcard_rw 57 2018-11-06 03:27 cache.info

Does this look correct?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dahenjo:
I believe it's in bytes, so since both are under 1 MB they get listed as 0 MB. It's shown the same '0" for me in this latest and earlier versions of TWRP but what's there was backed up.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] avwtp:
Other threads have noted that the size for Persist should be 2MB and doing a DF shows mmcblk0p30 to be using 500 1k blocks. So I guess I'm OK. I also assumed it was rounding to 0 but just wanted to make sure. Before I hammer my nice working system, want to make sure I can get it back again.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] tomlogan1:
TWRP install issues

I've used TWRP on multiple phones and tablets but with the Moto G5+ I cannot get it to install. I've tried multiple downloads, and I can boot TWRP from adb, but it will not install. I get the following message:

C:\ADB>fastboot flash recovery potter.img

target reported max download size of 534773760 bytes

sending 'recovery' (16290 KB)...

OKAY [ 0.625s]

writing 'recovery'...

(bootloader) Image not signed or corrupt

OKAY [ 0.188s]

finished. total time: 0.813s
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
Did you unlock?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] tomlogan1:
TWRP install issues

Bootloader is unlocked. Can I boot to TWRP and then flash it like a zip?

Thanks.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Achi Shukuteki:
What happens when you reboot into recovery mode?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] tomlogan1:
From booted TWRP it reboots to TWRP when boot to recovery is selected.

Once out of TWRP booting to stock recovery shoes dead android and No Command error.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] TargetedNuke:
I have two questions. Firstly, does this need root access/unlocked bootloader? Next, does this work with Stock Oreo 8.1? Thanks!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] powwow12:
1. Does this TWRP work for XT1685 (dual sim version)?

2. I have fully updated stock Oreo with the latest patch, the phone is untampered. Would i face any problems installing the recovery at this state?

Edit: So i was impatient and went ahead flashing twrp 3.2.3.1. ...and nothing happened.

Fastboot returns this :

What am i doing wrong? Is it not possible to flash this recovery on the XT1685 ?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] myshkommp:
1. Yes, this recovery works on xt1685.

2. What you mean under "untampered"? Are you unlock bootloader?

If NO. Bootloader check recovery image and don't allow install non-stock recovery.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] powwow12:
OK i simply had not unlocked the bootloader yet, hence the error message :silly:

After i flashed twrp i went on to bootloop the device because of stock xposed installation, then wiped everything from the stock rom, and then somehow even deleted the recovery, all in the span of a few hours.

Now, i can flash twrp again with the command "fastboot flash recovery twrp.img" but then, when i give "fastboot boot twrp.img" , it boots in a "no command" error message. I think something funky has happened with the magisk installation before the wipe and now every time i boot twrp is over-written by the original recovery. (also TWRP doesn't ask me if i want to write to system or be read-only anymore like it did the first time i installed it)

Ideas?

Edit: Solved, if anyone has the same problem of TWRP being overwritten i think it's the following that made it stick: after flashing and booting TWRP , reboot into recovery not from the twrp menu but holding down vol+power.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] vinyasns:
[MENTION=5293805]GtrCraft[/MENTION] I'm getting this failed to unmount /system when dirty flashing the ROM.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] spagentdalecooper:
[MENTION=5293805]GtrCraft[/MENTION] I've unlocked my phone XT1686 and flashed the official TWRP (twrp-3.2.3-1-potter.img) and Now it is asking for the password to Decrypt the Data.

In backup option Data and persist is 0 MB. How can I decrpty it? So I can Install the Pixel experience Rom etc.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] QuirkyMari:
Did you find a fix for this?

I'm having the same issue and I tried installing an earlier version of TWRP but still had no luck. Thanks!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Tianhe:
I think TWRP is official for potter, can you try updating recovery through the official TWRP app ?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] NeoPreacher:
the "error" message you replied to is showing success. it's the same message you always get when fastboot flashing recovery (twrp). you should boot directly into it, as in some cases it gets replaced with stock recovery if not booted into it right after flashing. so again, whatever you think is wrong the message shows it flashed fine (the image is corrupt, it's just an ignorable sidenote in this case).
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Tianhe:
TWRP updated officially to 3.3.0-0, flashed through TWRP app and functioning perfectly. Haven't checked other features including updated FDE decryption.

[MENTION=5293805]GtrCraft[/MENTION], maybe you could update the OP
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] DECloyd:
TWRP install (/Magisk) help: Clearing-Confusion Questions

Hi!

This is post is after the release of TWRP 3.3.0-0.

All of the rooting guides that I have found that are related to the Magisk method call for using a "no-verity..." zip file before doing much else. I have read that this is due to a decryption action that is needed, but that TWRP is now able to handle whatever that zip file was working around (data from posts by [MENTION=8464792]googJ[/MENTION]uju, [MENTION=5237901]Wolfcity[/MENTION] and [MENTION=6990243]jhs39[/MENTION]), but it wasn't definitive, to me.

Question 1: Is the "no-verity..." action now just an option taken based on personal preference?

Question 2: In other words, is it required for root or successfully restoring backups?

A lot of the posts describing the steps are a couple of years old and reference using earlier versions of TWRP and running Nougat, and they include warnings about encryption or decryption and other conditions. Some posts make no mention of these.

BTW, I used "fastboot boot twrp.img" to do a temporary TWRP load. I selected the "Keep Read-Only" option when asked about "Allow System modifications"); I did this action with TWRP in order to create backups.

The backups that I made are these: 1) "System/Data/Boot", 2) "EFS/Persist", 3) "System Image" and 4) "Boot/Recovery"). Based on what I've read, those are the main ones to make sure exist; all are on a MicroSD card.

Any help will be greeted with big smiles, including opinion about "Did I make the right backups?"
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Lokawn:
Hi,

After unlocking the bootloader I flashed twrp 3.3.0-0 and after booting into twrp, I made backups and after rebooting twrp didn't install.

Edit: TWRP is installed only if I flash custom ROM.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] tomlogan1:
I downloaded another img file and flashed it. Worked fine.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] EzSqueezeCheese:
So I used the twrp app to find and download the image appropriate for my device. (potter) Booted to recovery, used the flash img function to flash the updated recovery. Now recovery fails to boot saying it couldn't pass and that my recovery img isn't valid. Any idea what went wrong there?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] debdeep98:
MTP isn't working on the latest version. Any solution for that? Anyone??
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] stark1296:
What? Really? I'm able to transfer files to PC and the other way around, as well. In TWRP too.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] debdeep98:
Yeah. Not working for me. 3.3.1-0. reinstalled adb and moto drivers. Works fine in fastboot and when device is booted but not when I'm in twrp. Log says Mtp is enable. Happened to me the first time. Kinda confusing.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] stark1296:
Strange. Try reflashing twrp through fastboot
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] debdeep98:
Yeah did that. It didnt work so I asked here. I thought maybe it was an error in twrp 3.3.1-0.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Codename24:
Can I use latest twrp i.e ver 3.3.1.0 to backup stock 32 bit Oreo and later restore it if needed without any issue?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
Yes
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Karlinski:
You don't need to flash anything special after flashing TWRP.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] xdataibai:
after we flash twrp, how do we get the security updates afterwards?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] xdataibai:
after unlock the bootloader, without flash twrp, is there a way to make full backup of the rom? I tried to fastboot boot the twrp img and backup to external sd, but it didn't work. it always stuck after backing 20 or 30 files. thanks
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
TWRP 3.2.0-0 is released with 64 bit support.

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

https://eu.dl.twrp.me/potter/
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] xecuter2:
3.2.0-0 TWRP won't decrypt data either :( "password failed"
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dishe:
I'm trying to boot into TWRP using fastboot and not flash it (trying to stay stock for OTA if possible). I keep getting greeted with the password prompt.

I see the instructions to wipe everything and try again, I have wiped everything, and it still does it.

Is it because I didn't install TWRP? IE, is it starting over each time because I'm "booting" to it, and requires being flashed instead of just booted to?

I just want to edit a system file, otherwise I'm trying to stay as unrooted/stock as possible for now. Thanks!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
You can't decrypt data with TWRP, you have to format data or flashing/backing up with external sd
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
Can you give me logs?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] xecuter2:
Yes, do I need to format data the first time? I will play some more with it in a few hours and report back.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dishe:
I I'm not interested in flashing, I just want to mount the file system with root privileges.

My goal was to avoid root but edit a build prop setting.

Are you saying that I can't do this with TWRP?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
Yes you can, just ignore the decryption password and mount system.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
Well if you want me to fix it I need a log from when you get encryption pop up
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dishe:
Ok. So I should swipe yes to edit system partition? And after I've done this, do I need to flash anything to reset a bit to bootable?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] xecuter2:
Its trying to save the log to Data/media -_-
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dafriss:
Format data fixed the issue for me..
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dishe:
Ok, I'm trying to make sense of all this. My apologies if these are really dumb questions- I've used TWRP plenty of times on other devices, but there is a lot going on here that I'm completely unfamiliar with.

First- Can someone explain what exactly is this data decryption business? Is that about the phone's storage being encrypted? Is this something specific to the G5+?

If its about the storage being inaccessible to TWRP, wouldn't that mean we are unable to mount storage and therefore my goal of just using TWRP to push an updated build.prop and set requisite permissions would be problematic?

Secondly, How does formatting in TWRP and rebooting help? Does that remove encryption to the phone's storage? And if so, the system runs fine after that and you'll never end up with encrypted data again (unless of course you factory reset from within the OS)?

Third, if I want to edit build.prop and am able to mount the system partition (assuming that encryption isn't a bottleneck after all), should I be swiping YES to modify /system? And in which case, will I then need to find one of those verity zips to flash afterwards?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] thedr34m13:
Yes, wiping data will remove encryption, but it's basically a factory reset and all (user)apps will be deleted. Certain actions can trigger encryption, such as uninstalling magisk the wrong way.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dishe:
Ok thank you. I think I understand how this works now, been reading and reading.

Last thing I can't figure out is, do I need to set /system to modify if I'm editing the build.prop via adb, and if so do I need one of those verity zips? I'm afraid to try it and be stuck with a phone that won't boot, so I want to know everything before I attempt...
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] thedr34m13:
Allowing TWRP to modify /system is fine, and won't do anything you don't want it to. I'm not sure about dm-verity, you should ask someone more experienced.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dishe:
Ok this is straight up bonkers. I used adb pull to get a local copy of build.prop, saved a backup with a different filename, made and saved the edits and used adb push to replace the file. All reported working fine. I reboot into system, and the changes didn't take.

Weird, I go back into TWRP, use adb to pull the current build.prop, and sure enough my edit is still there. The heck?? I reboot into the system, and use a build.prop app to view the file (can't edit directly because no root, of course). On the booted phone, I can see the entire build.prop file, with the line I entered MISSING. Yet, in TWRP, running adb pull /system/build.prop shows me a version WITH my edits.

I feel like I'm losing my mind. How could build.prop be changing? Are there two versions of it?!

---------- Post added at 07:15 AM ---------- Previous post was at 06:36 AM ----------

Ok, I even renamed build.prop to build.bak within TWRP, and rebooted system- which should fail to boot. But it booted just fine, and an ADB pull shows that build.prop still exists and is unedited in system.

Went back into TWRP, mounted system, and this time tried TWRP's file explorer in the Advanced menu. Hopping over to /system shows me that build.bak exists and not build.prop.

Its like I'm being shown two totally different storages- as if there's been a complete duplicate of the ROM's files, and I can edit one in TWRP, but the system uses another one. Why would there be two versions of this in my storage? And why am I only accessing the wrong one in TWRP? I'm so confused here.

Meanwhile, for what it's worth, I formatted data to try and get rid of the encryption thing, but after booting into the system it appears to have encrypted on its own again. It asks for a password. I've been clicking cancel and just going to mount system and connecting over ADB, but does any of this behavior make sense to anyone?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
I have a new TWRP test img for encryption. Please test and report.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] xecuter2:
Working for me, formatted internal storage(data) the first time and after that have been able to decrypt a new install
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Barbiox Dogg:
[MENTION=5293805]GtrCraft[/MENTION] please I made a backup up of my ROM but I'm trying to restore now & I checked everything to restore but it seems the phone is in bootloop. What am I doing wrong?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
You encrypted your storage though?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] japg2000:
I've tested but for me its not working. It asks me for a password.

I have the original encryption, i've never formatted the data partition.

If you need i can try other versions o give you some logs (if you tell me how to get it)

Thanks

Enviado desde mi Moto G (5) Plus mediante Tapatalk
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
So you have encryption from stock enabled and when you put in the password you use to unlock your phone it doesn't work?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] japg2000:
Yes, i have encryption from stock enabled but I didn't set a password, so it must have the default one. If I enter a random password when TWRP asks for it I see this in screen:

E:Decrypt took too long, killing process
Failed to decrypt data.
Unable to decrypt with default password. You may need to perform a Format Data.

I'm using a TWRP 3.1.1.0 (I think from Santhosh M) that is the only one i've found that can decrypt data, and it takes around 30 seconds to decrypt at start. Could it be a timeout problem? (from what i see from the message).
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
Let's try again, test encryption please
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] japg2000:
Not working yet. Now it only shows:

Failed to decrypt data.
Unable to decrypt with default password. You may need to perform a Format Data.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Barbiox Dogg:
How do I decrypt using TWRP?

EDIT

TWRP is asking me to decrypt data and its asking me for password but i didn't set any password. please help.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] yogeshrb:
[MENTION=5293805]GtrCraft[/MENTION] is encryption working in new official 3.2.1.0 build ?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
Third time the charm?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] japg2000:
Still not working. Same message as latest.

Enviado desde mi Moto G (5) Plus mediante Tapatalk
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
Oke, the sander twrp maintainer gave me a fix. Let's try that
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] wckiv:
Still not decrypting

I just tried the twrp-3.2.1-3_crypto.img and it would not decrypt. The only version of twrp for potter that has decrypted successfully on my G5 plus is the twrp_3.1.1-0_potter.img posted by Santhosh M in the

[Unofficial] TWRP 3.1.1-0 Moto G5 Plus, ROM for the Moto G5 Plus thread.

According that 3.1.1-0 log, twrp it is attempting to decrypt using HAL encryption. I previously emailed you my log files on 12-10-2017.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] kehne:
Still no support for 64bit isn't it?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
Will test and report by the end of the day. Just turn on encryption them try to stay twrp and decrypt right?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
It has 64 bit support if I remember right
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] KingCartman:
Yep youre right. Since 3.2 its supported.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] kehne:
Thanks :)
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] wckiv:
My /data partition is formatted as f2fs. Should the twrp-3.2.1-3_crypto.img be able to decrypt it? If f2fs encrypt/decrypt is not support by TWRP, how does the twrp_3.1.1-0_potter.img posted by Santhosh M in the [Unofficial] TWRP 3.1.1-0 Moto G5 Plus, ROM for the Moto G5 Plus thread successfully decrypt my f2fs /data partition?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] jeffsga88:
[MENTION=5293805]GtrCraft[/MENTION]

This version doesn't decrypt still although twrp 3.1.1.0 located here does. I'm attaching a log of successful decryption from that version to this post. I was even able to use 3.2.1.0 to install 64 bit rom, encrypt and then install 3.1.1.0 and successfully decrypt data. I looked at the log that way successful compared to the one that wasn't and it looks like it looks for and locates a decryption key located at:

get_crypt_ftr_info crypto key location: '/dev/block/bootdevice/by-name/metadata'

And in 3.2.1.0 it looks like it fails to load that key. Hopefully this helps :)
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] IWellHeThanks:
I've been running into the same encryption issues. For me, the problem becomes an inability to backup the /data or system image using TWRP if I can't decrypt. I've been encrypting the phone after setting it up. Is there no point in encrypting the phone until this issue with TWRP has been fixed, or when it's possible to decrypt with TWRP will I be able to do so after installing the fixed version?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] chucky8:
Hello, i have a problem with twrp 3.1.1-0 on moto g5 plus (potter)

after i put in cmd 'adb restore backup.ab i get following output:

command is: 'adbrestore' and there is no value

Wiping System

Formatting System using make_ext4fs...

Restoring System...

[System done (181 seconds)]

E:md5 doesn't match!

E: file md5: <some md5 hash>

E: check md5: <other md5 hash>

Restore complete.

Tried different other TWRP versions but none of them can decrypt the partition.

Any help? Thanks...