yashsingh1/xdaforums huggingface dataset:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Mayanknagpal.nm:
I downloaded and it is completely fine.. :confused:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] rshbhghelani:
Unable to download twrp. Gets redirected to a weird page.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Mayanknagpal.nm:
long press the link and then click download link (then u would have to rename it to a .img file) or use a download manager instead (preferably ADM)
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] hazmatkid:
I can't download the link you have up it just runs the page script on the page I've tried multiple methods an none work
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Dahenjo:
I couldn't 'download link' on the phone but could on pc by doing a right-click/save as (just don't click directly on his link or you'll see all the code as text).

Edit: Did a quick revert to stock and flashed the new version, didn't do any factory reset or format /data, rebooted into it a couple times with no issues, restored my backup and all is good.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Santhosh M:
I switched the qseecomd to use the stock vold for doing decryption and it went fine
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Santhosh M:
Download note

There is no issue with the download of the image. All you need to use is just right click and choose save as and it would go fine. If you are using download managers then it will automatically take care of the issue.

To avoid the browser directly trying to open the image and show weird text i will shortly make the download link as zip, so no one should be facing any issue.

The download link has a short outage and will be fixed shortly

Regards

Santhosh
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
Though everyting works on a desktop computer, it's not a 'traditional' download link. I can understand why people complain! Try downloading it using your smartphone... Virtually impossible (though not impossible)!!

Anyway: the build of this recovery is fine! everyting works as it should be! Thanks a lot!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
So I can actually turn encryption back on?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
As [MENTION=5480061]Santhosh M[/MENTION] claims: yes! Though I'm not using encryption so I didn't test it...

Send from my Motorola Moto G5 Plus (XT1685) using Tapatalk
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
Okay cool. Just wanted to make sure I understood that correctly
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] isTos:
First of all, thank you guys for building this. Thanks to this, I am now rooted.

However, I have a question. Ia m trying to install a AICP, but when I create my TWRRP backup, I cannot see it when using Amaze File Manager (with Root). I can see it within TWRP. I assume the backup is encrypted, correct?

Under Settings > Security, I see that the Phone is Encrypted. Any way around this? Am I safe to assume I will be able to go back and Restore my backup even if it can't be seen in File Manager?

Thanks!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] mauritzius:
yee, you can. my phone was encrypted for weeks and two days ago i could finally take a backup before upgrading it to the latest AOKP!

---------- Post added at 03:57 PM ---------- Previous post was at 03:54 PM ----------

my backups are visible in file manager. where did you backup to? where did you look for the backup?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] isTos:
I backed up to the default twrp path in internal sd. I can see the backup in twrp's file manager, but when I use Amaze, or es file manager, the twrp/backup folder shows zero folders/files.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] washoq:
You need to go to /data/media/0/TWRP/BACKUPS
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] djroese33:
PLEASE don' t let this start a big debate!!! Okay, thanks :)

Is there any consensus on whether SuperSu or Magisk root is 'better'? I don't use Android Pay or play any games. I've always rooted with SU, and really only want to eventually get the charge LED to work on notifications, be able to record phone calls, and use Xposed/GravityBox if ever available for Nougat. A few other things I'm forgetting I'm sure.

Thanks folks!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] isTos:
Yes, that's where i expect it to be. And if I browse to that path in twrp, i see the backup. But in any file browser, that path is empty.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] smitharro:
Which one is better is a matter of taste. They both do the job. The magisk app is a little bit more versatile imho and it's free. For extra options in SuperSU you will have to pay.

If you install a custom rom you'll have your notification light. So that's solved already.

A out xposed and gravitybox... Again, most functions added by gravity box are already in the custom roms. Xposed can be very crippling for a system. So be careful with that!

Resuming: try a custom rom like LineageOS or Resurrection Remix!

Last, but not least, this was not really a question about TWRP, so OFF TOPIC. Try a question and answer thread for these questions next time!

Send from my Motorola Moto G5 Plus (XT1685) using Tapatalk
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] djroese33:
Thank you very much for the great response. And sorry about posting in the wrong thread; wasn't thinking!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] alevity:
Cam I just install this via my older version of twrp via install from zip?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Phreaker47:
Guys, I'm stuck with this "device not trusted" bootup problem... i've searched for a long time around here, can't figure this out.

I keep getting the "your device is untrusted" and it only boots into recovery. I can boot to download mode and then boot the ROM (Resurrection Remix is what i'm trying to use), but all my efforts to get around this issue have failed. I have tried a couple of different "no verity" zips with no success. What am I missing here?

The first time I flashed TWRP, I had the "enter password" / can't mount /data problem. I fixed that by reinstalling TWRP through adb and then being sure I did a wipe the first time I loaded it.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Jrhotrod:
Use the latest TWRP image, it decrypts /data.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] irshad2809:
just to be clear can i directly flash the latest TWRP image as i haven't unlocked yet (saw some posts saying first need to flash initial twrp builds ) ?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Phreaker47:
That's what I used. There's actually a post in this thread addressing the issue that I missed. I just needed to reflash the stock rom and start over. It worked this time.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Jrhotrod:
DO NOT flash TWRP without an unlocked bootloader. Unlock first then go to fastboot and flash it.

In addition, there is no need to flash initial TWRP builds first. Just follow OP instructions and you'll be fine :good:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] marcol87:
I faced the same, stuck in "your device is untrusted" and only boot into recovery is possible.

(I've flashed stock .35, booted once into it, flashed the latest TWRP, wiped data-cache-dalvik cache and then got the problem)

EDIT: ok it was my mistake. I was allowing modifications for /system without flashing verity disabler. I solved by keeping read only and everything works fine
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Phreaker47:
Thing is, this new one is supposed to decrypt on its own and prevent you from ever seeing the "enter password" thing.

So I got it all working too... fastboot flash stock rom, boot once, flash TWRP... and TWRP loaded without the "enter password" screen as it should. Flashed ROM/gapps/magisk/safetynet fix (using resurrection remix rom) and all is well now. Didn't have to flash a verity disabler.

However I came back here to note that when I went back to TWRP last night to do a nandroid backup after I was completely set up, I was again greeted with the "enter password" thing on TWRP. So I chose read only and made a backup.

I thought this version of TWRP was supposed to make that go away for good but it seems to want to rear its ugly head.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Santhosh M:
Because you have confused yourself on how stuff works !

1. You didn't have to flash verity disabler because the magisk zip that you flashed would have taken care of it. It will modify the fstab content to disable verity which in otherwise the verity disabler zip would have done.

2. You have flashed some OS and obviously now your /data is loaded with the new os and now when you try to restore nandroid it replaces the original stock data which again was encrypted i believe (or maybe i didn't get exactly what you were saying) and twrp won't be able to decrypt because of some confusion over your /data
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Akhil_dev:
I had issues with twrp not restoring the backed up partitions and restarting at around 23%

Here are the logs
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Phreaker47:
Right, I understood that but I only initially tried verity because something had already gone wrong, where the ROM was installed and could be booted but only via download mode or else the phone was automatically booting back to recovery.

After getting myself reset by flashing stock, I repeated the entire process again and it worked this time. However, once going back to recovery to create my nandroid backup of my newly working and configured ROM, I was greeted with the "Enter password" prompt in TWRP that to my understanding, shouldn't ever appear... I may be wrong about that... I've used TWRP on several devices in the past but this is the first time I have encountered this particular prompt/issue so I don't know exactly what to make of it. So I just chose "read only" since that should be the safest and then made my backup.

It seems that my first botched install attempt had something to do with getting that Enter Password screen and choosing to cancel and enable writing anyway. I wasn't sure what the implications were.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] pablofior:
Stuck on unlocked bootloader screen

Hi

I am trying to install twrp. It installs but it wont save my choice to allow modifications and when i reboot im stuck on the unlocked bootloader screen.

Any advice?

Im trying to make some modifications but keep the stock ROM.

Thank you all

F*ck Just read the first post carefully. Got my answer. Sorry.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Cronoss:
please delete
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] jaxgmfb:
whoo-whoo finally got it up n running....anyone know how to save my apps so i can flash another rom....?//
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
I recommend titanium backup
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] nightwo|f:
woot woot, you guys are awesome! thanks so much for the hard work you've put in. I had been waiting to try custom roms until decryption was functional so i could make a nandroid/image backup of my stock system so I can restore back to it (didn't feel like wiping data and starting over, I have such limited time to tinker nowadays).
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] stevenhw8:
Hey guys,

I just flashed TWRP with fastboot and got following error:

(bootloader) Image not signed or corrupt

I ignored it and rebooted and apparently got in TWRP without issues.

Then wiped system, data, cache and installed Lineage OS 14.1 and tried to reboot, but it keeps bringing me back to TWRP.

Did I miss anything?

EDIT: Bootloader is unlocked, since my bootscreen shows N/A
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Jrhotrod:
Does "cache" include Dalvik?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] robinwille:
I have this exact same problem, I had not seen this post and got instructions from another source and they did not mention specific steps to follow in order to flash TWRP. So I ended up with a bootloop like yours, I have figured out a workaround but not a fix, when TWRP starts, go to restart device, but select bootloader, it will restart on the booloader, and then choose "start" it will then boot into Lineage or whatever ROM you chose, I have gotten Lineage a Resurrection going, but have the same issue you have.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] stevenhw8:
Yes, Dalvik included

---------- Post added at 10:54 PM ---------- Previous post was at 10:48 PM ----------

You are right. If you go to bootloader first, then Start, then it will boot into the OS. But after a restart of the phone, it will go to TWRP again.

Also, after boot, it will ask me to enter my Android password, no matter what I enter, decryption will fail. I reset the phone and it asks for password again. I wiped /data as recommended in the OP, but it doesn't work either.

Any suggestions?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] :
Use vache build
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Jrhotrod:
Use the latest TWRP build. It can decrypt /data.

And I HIGHLY recommend flashing the stock ROM again... I believe this was the key to my success when rooting and flashing ROMs on this phone
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] stevenhw8:
You mean vache's TWRP?

I used twrp-3.1.0-0-n3-potter.img

---------- Post added at 12:15 AM ---------- Previous post was at 12:10 AM ----------

Flash stock ROM with adb? Once that's successful, can go back to TWRP and custom ROM's?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Jrhotrod:
Correct. I've detailed the instructions in the latest post (atm) on the lineage 14.1 thread:

https://xdaforums.com/g5-plus/development/rom-lineageos-14-1-t3593556/page57
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] robinwille:
I tried the Solution you posted, flashed the stock ROM, and redid the installation and everything now works correctly!

Thank you!
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] JammieB:
Hi,

I have followed this post to the letter, but I cannot get twrp to boot. I flashed the ***.img file downloaded from the link on this article using the fastboot command. However when I boot into recovery mode, I only ever get the stock recovery and not TWRP.

When going into the stock recovery, i receive the "No Command" droid screen. I know how to bring the menu up. (Press and hold volume up and power button)

Please can someone tell me where im going wrong. I want to flash a custom rom, but cannot do it from the stock recovery..

Help
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Akhil_dev:
Use power+volume up to get to the stock recovery on the no commands screen. Just press don't hold it
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] JammieB:
???

Sorry. I think you're confused. I know how to bring up the stock recovery menu, once in the no command screen. I want twrp recovery and not stock recovery.

Also, when flashing the 3.1xxxxx.img file via fastboot. If I try to boot directly into recovery, without rebooting the stock os I get an "kernel is invaild" error and recovery does not boot.

If I reboot after running the fastboot flash recovery... command. When I boot into recovery from fastboot I'm then confronted with the no command. (Which as I've mentioned I do know how to bring up the menu commands, but when trying to flash via ADB sideload the install always fails.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Akhil_dev:
Is twrp in the web folder ??
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] JammieB:
Yes

Hi and thanks for your replies.

When I run the fastboot flash recovery 3.1."**.IMG command, the file stored on my local computer is found and the command successfullly completes.

I tried a number of different versions of twrp. The command always completes. (Pressing the tab key when typing the command displays all available files stored locally on the pc) am confident my problem is not that the .IMG file is not being found, but that the command does not overwrite the stock recovery.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] stevenhw8:
Can you please post a screenshot of your .img in the adb folder and the adb command results?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] JammieB:
a bit further, maybe?

Hi Steven,

using this post:-

https://xdaforums.com/g5-plus/development/one-recovery-flasher-moto-g5-g5-plus-t3605667

My moto g5 plus did boot into twrp recovery. ( I still dont understand why when i ran "fastboot flash recovery twrp3.1.*.img it would not work)

Once in TWRP i flashed supersu and the RR .img, wiped cache etc..

On exiting TWRP I was asked whether I wanted TWRP installed as a system app, i selected yes to this question and now.....

BRICKED!!!

My moto will only boot into fastboot now and I get this message:-

Start up failed:

the bs about software repair assistant etc.

ap fastboot Flash Mode (secure)

Error: failed to load kernel!

Fastboot Reason: Fall-through from charge boot mode

usb....

Please please, can you tell me the best way to start again.

Thanks again.

P.S I tried the following already..

1) fastboot erase recovery - Permission denied error

2) fastboot erase cache - runs, but did not help.

3) re-running AIO FLASHER.bat - tried both stock recovery and twrp recovery options. they seem to run through ok, but once twrp option is flashed it no longer auto boots into twrp. as it did before.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] stevenhw8:
I don't have experience with the AIO flasher...

I did it manually:

1) Unlock bootloader

2) Press Volume Down and Power to enter bootloader

3) Unzip .img into adb folder

4) fastboot flash recovery twrp.img

Did you flash any other kernels before?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] JammieB:
I did try manually first, but only ever got the No command screen after flashing the twrp recovery .img. Hence why i tried the .bat file as a final attempt.

How do I now start again? Are there any fastboot commands or other things I can do to get back the stock os or even the stock recovery?

Ive not flashed any kernels only custom roms... :(
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] stevenhw8:
You can use Jrhotrod's guide to go back to stock.

That's what I used and it fixed my problems.

---------- Post added at 11:44 AM ---------- Previous post was at 11:41 AM ----------

What do you mean "no command screen"?

After unlocking the bootloader, did you get the warning message "your device has been unlocked and can't be trusted"?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] JammieB:
Yes I get that message and 100% i've unlocked the bootloader via the moto g website. the no command screen is what came up after manually flashing twrp. I think its the stock recovery, but you have to press the up volume and power to bring up the menu options. (or volume down)

---------- Post added at 11:21 AM ---------- Previous post was at 10:49 AM ----------

I tried the step in this article https://xdaforums.com/g5-...3593556/page57

As recommended. Flashing the boot and recovery to stock have made no difference to my problem.....

Going to try a new kernel next......
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] JammieB:
Im so sorry to all that have wasted their time and efforts on me. My problem is that I'm stupid and had thought I had a Moto G5 plus. I do not have Moto G5 plus, but I do have a Moto G5.

Really sorry again, I'm now going to lock myself in a room and beat the stupid out of myself.

---------- Post added at 09:25 AM ---------- Previous post was at 09:21 AM ----------

Im so sorry to all that have wasted their time and efforts on me. My problem is that I'm stupid and had thought I had a Moto G5 plus. I do not have Moto G5 plus, but I do have a Moto G5.

Really sorry again, I'm now going to lock myself in a room and beat the stupid out of myself.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Jayesh Nirve:
Lol
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fastbootflash:
for anyone out there... never choose to install TWRP as system app just untick the two options on that screen so that you are never asked again and just tap 'do not install' if you're prompted. Also, try GtrCraft's TWRP if you can, not that Santhosh's is anything less but GtrCraft's works really well except that backup done with a PIN or fingerprint lock still set on your lockscreen doesnt work pretty well(Workaround is remove any type of PIN or password and then backup)... So that is it. Happy Flashing.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] manos78:
Hi,

We really need an upgraded TWRP with encryption support... at time three different versions exist, each one with their bugs. I hope one of the developers will provide a new version with all the improvements from the other versions.

Thank you all for your efforts! :good:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fastbootflash:
Yeah I get that but other than encryption I didnt find any other bug in GtrCraft's verion of TWRP. Moreover, rather make use of what's available with bugs and all than go back to stock on an older version of android with no security updates what so ever.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Jayesh Nirve:
How to move from 3.1.0.0 to 3.1.1.0 pls tell....
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] GtrCraft:
You want a new version? I have a new img with encryption support.

I forgot to change version number though
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fastbootflash:
Thank you. Flashed it ASAP and it just works.

Flash the TWRP from GTRCraft's post using the standard fastboot command. That should do it.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Jayesh Nirve:
How to do from twrp?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] helix0203:
Wow, great
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] pablofior:
Any way to flash TWRP using TWRP itself?

Thank you

Found that i can flash img files with twrp. But still dont know if it is a safe procedure.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Karlinski:
Perfectly safe to flash the IMG to recovery in TWRP. I did it the other day
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] pablofior:
Ill do it. Thanks
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] gagan.yadav.96:
It is safe.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] pablofior:
Did it. Everything is fine. Thanks
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] manos78:
Thank you!

I hope the administrators (or some other) updates the different guides to use this version (twrp-3.1.

1-2

-GtrCraft.img).

We really need an stable version with encryption support.

Thanxs a lot! :highfive:
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Schrotty35:
Link?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] fastbootflash:
the file can be downloaded from attached file just above my post (which you quoted).
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] KD6266:
Will Moto G5 plus receive official TWRP
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Mayanknagpal.nm:
why does it even matter??
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
Because then you get support from not just the maintainer but the twrp team itself. And reliable updates
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] wooddale:
I'm in US wish U could get any kind twrp like the phone but hate not being able to root.
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] nightwalkerx22:
You're using this recovery or Gtrcraft's ?
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] :
I'm in us running twrp with custom rom
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] zeft64:
The new one gtr craft posted
[Moto G5 Plus ROMs, Kernels, Recoveries, & Other De] Jayesh Nirve:
Version?