yashsingh1/xdaforums huggingface dataset:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] linsspinho:
I just want make it clear, I am not complaining about this thread, not of you or XDA, I am just complain about TWRP backup/restore!

Thats my 4th phone doing custom recovery and rooting, I never heard about verity(maybe my fault).
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] abeloman:
Well, dm verity seems something new for devices with nougat from factory... So, maybe that's why you never had heard about it in your past devices...

Enviado desde mi Moto G (5) Plus mediante Tapatalk
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Johny Cipeli:
Guys I rooted my G5+!!!I made a guide on the Moto G5+ Guide, and there I explain everything. If you wanna give a chance, lol.

I think the bootloop problem is the same, but as I can't prove, then I won't open a new Thead here, so if you want to try: :)

UPDATE BELLOW
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] abeloman:
Any chances to get SuperSU working?

Enviado desde mi Moto G (5) Plus mediante Tapatalk
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Santhosh M:
That's out of the thread scope and you should be putting this in Supersu thread :)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] abeloman:
I've tried with many version and always get bootloop... Currently using magisk without issues, but I need SuperSU for some mods... I'll check later with more detail. TY

I'll put this over SuperSU thread, sorry (:

Enviado desde mi Moto G (5) Plus mediante Tapatalk
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Johny Cipeli:
Guys, I've created a post in MOTO G5 + GUIDES, to how to root it, then I post a link for this post on, G5 TWRP page. A lot of pelople are asking for Moto G5 too, then here it go !!! I do not own The G5 variant I can not test it. This is just a possible light (which in my opnion Should work too) for you guys to root your phone too. https://xdaforums.com/g5/how-to/how-to-root-moto-g5-t3579833

I know that it for TWRP propose, but people are crazy for that :highfive:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Raphafluffa:
Had the same issue, my browser tried to show the content of the file rather than downloading it. Solution: 1. right click on the file 2. choose: "Save Link as..."

Thats it :)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] thetanmaygupta:
Moto G5 - Xiaomi Redmi 3S Prime Same Soc

Is there any possibility of working moto g5 roms on Redmi 3S Prime.We Compiled Nougat For It but sensors bug in it :| is moto g5 and redmi 3s prime sensors are same ??
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Zenzfum000:
No
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Mike_Wasawsky:
Hey [MENTION=3694427]KawaiiNeko[/MENTION] . Can you confirm that your XT1675 is rooted? Thanks in advance!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Mike_Wasawsky:
Hey [MENTION=4584148]pacmanman[/MENTION] (I'm from Chile too).

How did you install the stock rom again?. I want to test this recovery but I want to have a backup plan ready in case everything goes wrong.

Thanks man!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] pacmanman:
Hi

Right, if you need to go back to stock, go to this repository page for Moto G (it'll be a slow download, but that is the only place I found it), I used the one named "CEDRIC_NPP25.137-15_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip", cause one of its internal files pointed to our phone's specs (the other CEDRIC zip file has other specs, I think for Spain or Brazil, I don't remember), then restore files in fastboot mode, I used the info from this page (the mfastboot lines).

You can try the temporary recovery from OP too "fastboot boot twrp-****.img (if you want temporary boot)"

Doing this, you can have a nandroid backup from temporary recovery.

Good luck, let me know if you can root it, please!

NOTE: Mine was bought in Chile and it says "retla" just above "Hardware Information"
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Mike_Wasawsky:
Hey, yeah I rooted it yesterday. There is a post started by be inside the guides and question forum. It works pretty well. :). Thanks for your answer
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] 9Lukas5:
Hey,

I'd like to add a bug to the list in OP ?

I have:

- unlocked BL

- flashed TWRP

- flashed verity/force-encrypt disabler

- wiped /data

- booted Android

- set a pincode

- encrypted device

Bug:

TWRP is not able to decrypt /data with my set pin code

L
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Santhosh M:
Aware of that. Decryption doesn't work and will fix soon
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] abeloman:
Wrong thread (:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] 9Lukas5:
Thought tellin you, because it's not listed in OP as bug^^

L
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] KalilDev:
Im almost done bringing the device up so everyone can enjoy roms
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Subhampaul12:
awesome news... thank you and eagerly waiting :fingers-crossed::laugh:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Subhampaul12:
??????? which device were you talking about???
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] KalilDev:
Moto g5
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] pacmanman:
How soon? :D

You might add it as a bug at the OP, cause encryption is important to some people.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] andyro2008:
Yes I'm suffering it so much! But we need to be patients.

You can work around it using flashfire to create a backup outside of the device, that backup would be unencrypted. If you restore it, the result will be a un encrypted device, where you can flash o editar anything. After booting system the device will encrypt again automatically, unless you flash the encrypt opt out file.

I know, it's a pain and complicated, but can be useful while we wait to a fix. :)

Enviado desde mi Moto G (5) mediante Tapatalk
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] woozie.2007:
twrp from de op seems to be corrupt, i downloaded of 10 times, but i have the same message. Can somebody share that twrp? Thanks
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Santhosh M:
Right click and choose "Save link as" and it should be fine.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] woozie.2007:
thanks but thats i made....its downloaded but is corrupt the zip file
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] sjau:
I'm having the same issue. I can download the twrp image, unzip it. But when I try to flash it, I get error "unsigned or corrupted". However I am able to boot to twrp using

fastboot boot twrp-3.1.0.0-cedric.img

I will try to flash twrp then from withing twrp.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] mbwf:
Please accept my apology, I don't think I understood properly that the device is encrypted by default - I was tired and stressed last night when I attempted to unlock my bootloader (which I did) and I blamed the TWRP. Sorry.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Santhosh M:
Happy that you understood where the issue was. I have added as much information to the OP for the same reason since people would miss out on small stuffs which could cause them a lot of time :)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Az Biker:
* * * Thread Cleaned * * *

Please remember; if your comment is NOT respectful, or it violates Xda rules, do not post it.

Thank you for your cooperation.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] stevegtrlmk:
When trying to restore a back up of any rom get following error. It will restore to maybe 25% than the this device is unsafe screen comes on and that it. When backing up I click all boxes to back up in the options anybody else experience this
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] K4su:
I have the exact same problem, has anyone found a solution or a workaround yet? :(
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] andyro2008:
The image that you are flashing It's effectively unsigned, only Lenovo can sign the image with the correct corresponding key. And a custom recovery image never will be signed by Lenovo because it's a custom image. The error is reporting that situation, and it is normal and expected when you flash a custom image.

However you should not worry about it. With your bootloader unlocked you can flash unsigned images. That is the entire idea behind unlocking the bootloader before flashing TWRP.

The recovery will work correctly. The only thing you will not be able to do is lock the bootloader again.

TL;TR: Don't worry about that, the recovery was flashed correctly and It will work.

Enviado desde mi Moto G (5) mediante Tapatalk
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] K4su:
Yeah, I kinda noticed that already, I was confused at first, but now it all makes sense.

I will now proceed with a ROM, let's see how that goes.

Thanks anyways :o
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] sir_overthrow:
Other Recovery?

This recovery gives me many problems. I need other recovery.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Try actually unzipping the file first!

You are flashing the img file not the zip

Make sure adb debugging is enabled in developer options first in phone settings (enable by going into about phone and keep pressing build version until it says that you are a developer) and you accept the adb request on phone

And of course I hope you have unlocked your bootloader before trying this

Open a CMD window where you have fastboot files (hold shift and then right click on an empty part of the Explorer window and select open a command prompt here)

And finally type

Fastboot flash recovery

Then a space

Then drag and drop the img file into the CMD window

---------- Post added at 09:03 PM ---------- Previous post was at 08:48 PM ----------

There is nothing wrong with this recovery - it works perfectly and as expected

Follow instructions or provide more information about problems but I'm guessing it's the usual user error
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] sir_overthrow:
TWRP baclup/restore problems.

My problems consist mainly within the TWRP. I have a lot of problems with the system partition. It gives me errors when creating and restoring roms constantly. In no android I had problems with manipulating backups, but in this one.

I'm looking for another recovery but I can not find anything. This is hell!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Iv had no problems backing up or restoring (assuming you have flashed the recovery and not using it as a temp)

Make sure that the only partitions that are ticked are

System

Data

Boot

Do not tick anything else

Also make sure you click select storage and choose your micro sdcard

Also assuming that you have wiped data in twrp during first use as per instructions as data is encrypted as default so needs wiping in order for twrp to read it (only needs doing once - you will loose all user data)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] sir_overthrow:
TWRP problems

I already have all the problems for you!

Ok, I will try your advice

P.D.: Backup failed. Cleaning backup folder. CreateTarFork() process ended with ERROR: 255
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rophaq:
I've had that problem before, but after mounting the SD card in recovery, I did a backup and restore without any issues.

---------- Post added at 01:46 AM ---------- Previous post was at 01:25 AM ----------

Go to recovery

Select mount

Select SD card

Choose storage : select SD card

Back to the main menu

Select backup

Choose storage : tick SD card, then ok

Tick all of them except the top one ( which is system)

Swipe to make a backup ... This will take about 3 to 5 minutes depending on how many apps you got installed on your phone .once finished ,it will say BACKUP COMPLETED IN .....SECONDES

Swipe to unlock , back to main menu , reboot

Once rebooted , go to play store ,install any small app , once done.

Reboot to recovery and click restore , select storage ( SD card) you'll find the backup you've made earlier , click on it and swipe to restore.

Once completed reboot system , once rebooted , you won't see the small app you've installed before ( which means ,backup worked ).

Easy. Hope this helps.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
You need to look at /tmp/recovery.log while in recovery (adb pull it). Look in it for the last file that it tried to read before it gave the error. Your options are either delete that file or pull it then delete it. However, the file is corrupt in some way and the backup will never finish.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] sir_overthrow:
I rename addon.d and backup work.

Only backup "system" or system and system image?????? (data and boot)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rophaq:
I've backed up system only , it worked.

As the system image will only restore it to stock.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
System

Data

Boot

You can backup recovery too but don't restore it unless you want to replace it
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] sir_overthrow:
Thank you all!
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] matpk:
Hi everyone,

my device is encrypted (OctOS ROM) but TWRP says "cannot decrypt data". I'm sure i enter the right password. Any ideas? Or maybe is it known problem?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
You need to wipe data

I'm not sure if this twrp supports encryption
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] sjau:
TWRP 3.1 should support encryption of Android N - at least it does with OPO and Nexus6 and TabS 10.5 LTE. No sure about Moto G5/Plus though.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rionline:
sadly decryption with pattern does not work. i have formated data the first time, encrypted with lineage os, which is working fine, TWRP is asking for the pattern, but does not work as expected.

Any ideas?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] infixremix:
If your talking bout twrp data encryption , reflash twrp and wipe data
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rionline:
Did it and it failed... But I suppose you assume it should work?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] infixremix:
Yes I had the same problem reinstall twrp reflash and wioe data
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rionline:
OK I will try. Just finished installing apps...
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Tonystarki:
password for decrypt is 1234 for me working perfect
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rionline:
hmm, wiped everything and wanted to reinstall twrp and i am not able to flash via fastboot. "corrupt or unsigned"....

only way is to boot via fastboot and to flash via twrp itself. this way the decryption bugs somehow....

any idea?

update: i just realized that this is only a warning from bootloader. installing via fastboot works. nevertheless, i have tried every combination, but twrp do not want to decrypt data partition. encryption and decryption works fine with AICP.

greetins
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rionline:
is there an older version i could try? has someone the 3.0.2 version?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
As far as I'm aware this is the only build of TWRP for this device

Of course you could always build your own from source if you want to add or fix anything
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] rionline:
Hmmm built a twrp myself? I think that would not help. If i succeed, i would not know how to fix the bug.

Is anyone working with a encrypted data partition? If so which filesystem?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Fedray:
Hope we get an update soon because I'm having a lot of troubles trying to install Magisk 13.3, and surely is because of TWRP.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Gaarra1995:
Does TWRP affect Magisk?

Becuase i have the same issue with Magisk 13.3.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Has nothing to do with twrp

Its because of the kernel - if your boot.img is not compatible with the version it will not install
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Fedray:
Since Magisk 13 it doesn't install. Magisk 12 installs but root doesn't work. 11.6 install and everything works fine. Installing 11.6 then updating to 13.3 through latest Magisk Manager works, but installing 11.6 and then 13.3 though TWRP doesn't, so, what's the problem there? I can 100% sure say it's a recovery problem.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Because when you flash in twrp the updater script says to extract & modify your boot.img

If your boot.img is in an unknown location or is not compatible the updater script will kick out error 1

You can use what ever recovery you like - if your boot.img is not compatible it will not flash

If you remove boot.img & the lines from the update script I can guarantee you it will flash

Again the recovery has nothing to do with it - read the update script & look at boot.img
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] infixremix:
The. Error is backing up the boot.IMG like u and I have both said its our boot.IMG not our twrp
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Adamask:
So, how can we install Magisk 13.3 update in ours phones?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
you cant - unless you want to rebuild the kernel to make it compatible - you would need to talk to the magisk devs and know how to build a kernel and mod a ramdisk
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] infixremix:
You can but through magisk
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Fedray:
Like I posted in some threads, just flash Magisk 11.6, download latest Magisk manager from apkmirror, install it, then update to 13.3 through the app.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Adamask:
I know. I forget to edit this post. Sorry.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] floydburgermcdahm:
First of all, thanks for making TWRP available on cedric!

I came from stock ROM, formatted data and wiped everything else before installing LineageOS 14.1. Worked fine. I can confirm, however, that after applying encryption this TWRP version is not able to decrypt data using the same password that is used during the boot process of LineageOS. Decryption with TWRP 3.1 generally works, I've tried this successfully on devices like manta, falcon, osprey and jactivelte.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
It's a TWRP bug

You will have to wait for TWRP to fix it in their source code in next version & hopefully when it's compiled for this device it will fix the incorrect password bug

Until then you will have to stay unencrypted if you want to use TWRP or sideload apps instead
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] floydburgermcdahm:
Alright, thanks, good to know it's a known bug. Will just wait for them to fix it.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] kieranc88:
Are you working with twrp to get this official ?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] vektek:
Has anyone got a mirror,,, This link isnt working for me...

Many thanks
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
here you go
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] vektek:
Thank you very much
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] TheFixItMan:
Unlikely as it's not fixed in the source code - read the twrp changelog

Version 3.1.0-0 fixed encryption on some HTC devices

vold decrypt on a few select HTC devices, TWRP will now attempt to use the system partition's vold and vdc binaries and libraries to decrypt the data partition (nkk71 and CaptainThrowback)

Version 3.1.1-0

Nothing about encryption

Unless you know how to fix it at source don't expect it to be fix anytime soon
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Santhosh M:
Nah..it's something i have to do and i haven't done. My side mistake ! I am running out of time and haven't done it and that's the issue. Everytime i think i should spend a hour on this device and fix it for cedric but don't get the time to manage and do it. That said i would try to sometime in next week.

I don't own cedric and hence would be glad if someone can test. Ping me in hangouts anyone interested (sansans90@gmail.com)
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] floydburgermcdahm:
I don't do hangouts but would be more than happy to test! :cool:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] trldaqag:
I don't think it really matters. I do have access to surnia and osprey with twrp and in both cases decryption works without problems. I don't want to blame anyone, but it seems as if it's fault on implementation side of things.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] woozie.2007:
i tried yesterday to boot into twrp, just boot not flash it, and after exit the phone was stuck in the boot logo, something happened whit this twrp, i think brokes system, only if i flash system again the phone boots normaly.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] p8tgames:
Did you swipe to allow system modifications? You need to flash no-verity disabler to fix that.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] woozie.2007:
yes, i swipe, how to flash if the twrp not working? i mean, no read nothing
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] p8tgames:
Hold power and volume down, select recovery, connect phone to pc, download no verity disabler and put it on the phone, flash it and it boots. If nothing works, you fu"*** up.

Should work tho
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] woozie.2007:
i flashed twrp, like in the past, but it change my data partition, otherwise not working. Ok, the phone works, but the update ota will works? i dont think that because the original data was emmc format and now is f2fs
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] +BOB+:
Data partition has f2fs format at stock rom.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] woozie.2007:
are you rooted friend?
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] +BOB+:
No, not rooted. All is original with locked bootloader.
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] woozie.2007:
ok thanks
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] andyro2008:
If your data is encrypted TWRP can't access data.

Enviado desde mi Moto G5 mediante Tapatalk
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] Moto G5:
system remains unwiped

hello ,i am having a moto g5 (cedric),i flashed twrp and installed RR the ressurection remix rom but then i notices that when i wiped my system it was successfully wiped bt insteas of empying or giving me approx 14 gb (rom is 16 gb) every time i see it was 9673 mb approx.so when i see the storage on the other side it shows approx 5 gb consumed by system which i can't ascess and only do get approx 9 gb where the main point is that the rr rom is (ressurection remix)zip file is only of 400 mb .because of which i must get some more space in storage but am not getting it .thats it sorry for trouble please help me!!!!!!!{sry bad english}:crying::crying::crying::crying:
[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] mrfrantastic:
I don't know if this is the right thread for my problem.

I tried to format /data to ext4. After flashing a ROM (before the setup assistant) I had to type in a password. I have no clue which password is meant to be given. My Google password didn't work. I went back to f2fs but wanted to know why I can't change the filesystem.

Edit: I thought changing the filesystem might help circumvent the segmentation problem which my device (and others) suffers from