[UNOFFICIAL][ARM64] TWRP 3.2.3-2 with decrypt [cedric]

Search This thread

Akipe

Senior Member
Mar 31, 2017
54
153
Paris
Hello :)

This is a TWRP recovery for Motorola Moto G5 Cedric for arm64 ROMS, with encryption support, backup support for persist and efs partitions and possibility to flash/backup logo boot image.

I need review and test, especially for the storage decryption and/with LineageOS :)fingers-crossed:). I was able to test it on my device (XT1676 3Go).

It is my first ROM so it is possible that there are bugs.

- Be carefull, there are problems with the backup system :
Just wish to come here and tell you guys to AVOID using this recovery, it seems to have a serious bug.
I just backed up my entire data partition (and enable digest verification) and restored the partition afterwards and the phone didn't boot.

Then I tried restoring it with verification enabled and the hashes didn't match.
In other words, for some reason, the generated backup was corrupt.

- freeZbies


Changelog
TWRP 3.2.3-2
add sdcardfs
add FB2PNG for screenshot
fix brightness path and define it at 160
fix time zone error
fix incorrect lun path for USB

You can download it here :

Sources :
Manifest :
 
Last edited:

mikefive

Member
Oct 23, 2018
23
17
Samsung Galaxy Tab A series
Hi,

tested your recovery image with my installed LOS 15.1. (32bit) Device: XT1676 16GB P5
- storage decryption: OK
- backup support for persist and efs partitions and possibility to flash/backup logo boot image: OK


nice work, thx for you effort :)
 
  • Like
Reactions: Akipe

freeZbies

Senior Member
Dec 2, 2013
191
71
Works nicely, thanks.
I just tested it and it decrypts my internal storage normally.
 

freeZbies

Senior Member
Dec 2, 2013
191
71
Just wish to come here and tell you guys to AVOID using this recovery, it seems to have a serious bug.
I just backed up my entire data partition (and enable digest verification) and restored the partition afterwards and the phone didn't boot.

Then I tried restoring it with verification enabled and the hashes didn't match.
In other words, for some reason, the generated backup was corrupt.

Of course I could make another test but it'll take just a long time to backup everything again, so if anyone wants to test it, feel free, but beware, you could have a hell of a headache finding out the backups you made were useless.
 
  • Like
Reactions: Akipe

Akipe

Senior Member
Mar 31, 2017
54
153
Paris
Just wish to come here and tell you guys to AVOID using this recovery, it seems to have a serious bug.
I just backed up my entire data partition (and enable digest verification) and restored the partition afterwards and the phone didn't boot.

Then I tried restoring it with verification enabled and the hashes didn't match.
In other words, for some reason, the generated backup was corrupt.

Of course I could make another test but it'll take just a long time to backup everything again, so if anyone wants to test it, feel free, but beware, you could have a hell of a headache finding out the backups you made were useless.

Hello ! Thank you for your test and sorry for your backup :(

I will test the backup system and add a warning
 

Akipe

Senior Member
Mar 31, 2017
54
153
Paris
Just wish to come here and tell you guys to AVOID using this recovery, it seems to have a serious bug.
I just backed up my entire data partition (and enable digest verification) and restored the partition afterwards and the phone didn't boot.

Then I tried restoring it with verification enabled and the hashes didn't match.
In other words, for some reason, the generated backup was corrupt.

Of course I could make another test but it'll take just a long time to backup everything again, so if anyone wants to test it, feel free, but beware, you could have a hell of a headache finding out the backups you made were useless.

I have backup up data partition from my TWRP, reboot one time to recovery, restore the data backup with digest verification, and reboot to LineageOS, with no problem (my rom is LineageOS 16.0 without encryption.)

I think there may be 2 errors (maybe more) :
1) There is a problem with data restore when encryption is enable. I can not test this scenario for now, but i will do it as soon as i can :)
2) Was your backup stored on your SD card? if so, it is possible that the sd card may be damaged, because it is too old or of poor quality (more info here : https://photo.stackexchange.com/questions/40489/what-causes-an-sd-card-to-go-corrupt )

if you have other information or other ideas, do not hesitate to share it!

if people want to participate, try to save the data partition and restore it, especially with the encrypted partition :):good::good:
be careful, make a backup of your data before test
 

freeZbies

Senior Member
Dec 2, 2013
191
71
I have backup up data partition from my TWRP, reboot one time to recovery, restore the data backup with digest verification, and reboot to LineageOS, with no problem (my rom is LineageOS 16.0 without encryption.)

I think there may be 2 errors (maybe more) :
1) There is a problem with data restore when encryption is enable. I can not test this scenario for now, but i will do it as soon as i can :)
2) Was your backup stored on your SD card? if so, it is possible that the sd card may be damaged, because it is too old or of poor quality (more info here : https://photo.stackexchange.com/questions/40489/what-causes-an-sd-card-to-go-corrupt )

if you have other information or other ideas, do not hesitate to share it!

if people want to participate, try to save the data partition and restore it, especially with the encrypted partition :):good::good:
be careful, make a backup of your data before test

I agree it may be any of the 2 problems.
My data partition was indeed encrypted, and yes, my SD card is not what I would call genuine, though I think that's not the case since the card is relatively new and I never had any problem related to data corruption.

Anyways, thanks for your effort.
 

Akipe

Senior Member
Mar 31, 2017
54
153
Paris
I agree it may be any of the 2 problems.
My data partition was indeed encrypted, and yes, my SD card is not what I would call genuine, though I think that's not the case since the card is relatively new and I never had any problem related to data corruption.

Anyways, thanks for your effort.

I have test backup the data partition with encryption on LineageOS 16 (arm64), backup and restore work without issue :eek:

What ROM did you use when you made the backup, and with what arch (arm or arm64) ?
 

aragorn1203

Member
Sep 13, 2012
8
15
Just wanted to say that everything worked well for me in backing up and restoring the OmniROM, on both decrypted and encrypted phone.
Thanks @Akipe for the great job :)
 

nurvus

Member
Dec 3, 2010
15
2
forgot password to decrypt??

hi,

first, sorry if this is the wrong place to post this. right now, when i install the 64 bit twrp i am asked for a password to decrypt my data. i have tried some passwords i think i would have used, but those don't work and i get a message also saying that the default password didn't work - i haven't typed a default password, though, so i assume there is a default one that twrp tries automatically. in the past, i did try a rom requiring 64 bit twrp and i am guessing i set a password other then the default to encrypt/decrypt, but i went back to stock without issues so have not thought about the password and cannot remember what i would have used. i wanted to try dotos on my phone, which i assume requires 64 twrp because i got error 255 when i tried to flash without twrp64. so i installed twrp64 but cannot get any further. so here are my questions:

is there any way to decrypt the data if i forgot my password?

if not, can i format the data while encrypted to install the new rom? if i can do that, what should i back up? i have pictures and other necessary files backed up, so i am not worried about completely wiping the phone to start over. however, should i back anything else up before formatting? do i need to worry about losing imei or losing any partitions that would make phone inoperable or not have any signal? should i back up with twrp64 or the non-64 bit twrp currently installed? any help or point in the right direction is greatly appreciated.

tia,
nurvus
 

TheFixItMan

Senior Member
Jul 8, 2012
7,845
4,046
London
hi,

first, sorry if this is the wrong place to post this. right now, when i install the 64 bit twrp i am asked for a password to decrypt my data. i have tried some passwords i think i would have used, but those don't work and i get a message also saying that the default password didn't work - i haven't typed a default password, though, so i assume there is a default one that twrp tries automatically. in the past, i did try a rom requiring 64 bit twrp and i am guessing i set a password other then the default to encrypt/decrypt, but i went back to stock without issues so have not thought about the password and cannot remember what i would have used. i wanted to try dotos on my phone, which i assume requires 64 twrp because i got error 255 when i tried to flash without twrp64. so i installed twrp64 but cannot get any further. so here are my questions:

is there any way to decrypt the data if i forgot my password?

if not, can i format the data while encrypted to install the new rom? if i can do that, what should i back up? i have pictures and other necessary files backed up, so i am not worried about completely wiping the phone to start over. however, should i back anything else up before formatting? do i need to worry about losing imei or losing any partitions that would make phone inoperable or not have any signal? should i back up with twrp64 or the non-64 bit twrp currently installed? any help or point in the right direction is greatly appreciated.

tia,
nurvus

You need to format data

Push back button when it asks for decrypt

Goto wipe and select the option on the right to format data
This will erase everything on internal storage so copy any files you want to keep to pc first (pictures music etc)

Once formatted data restart back to recovery to check encryption has been removed and data partition is mountable

TWRP backups do not save personal files (pictures music etc) They only backup data and system files (and other named partitions)

Once you have flashed a new rom you can encrypt again if you want to via the security settings menu in phone settings
 
Last edited:

nurvus

Member
Dec 3, 2010
15
2
You need to format data

Push back button when it asks for decrypt

Goto wipe and select the option on the right to format data
This will erase everything on internal storage so copy any files you want to keep to pc first (pictures music etc)

Once formatted data restart back to recovery to check encryption has been removed and data partition is mountable

TWRP backups do not save personal files (pictures music etc) They only backup data and system files (and other named partitions)

Once you have flashed a new rom you can encrypt again if you want to via the security settings menu in phone settings

thanks for the quick response! and just for clarification and for me to be sure, should i back up any partitions before formatting? right now i have 32 (or non64 i guess) bit twrp installed, stock rom and bootloader unlocked. do i need to take any precautions with data/imei/signal before reinstalling twrp64, formatting data, and installing a new rom? if it matters any i have the international version of the moto g5. thanks again!!

nurvus
 

TheFixItMan

Senior Member
Jul 8, 2012
7,845
4,046
London
thanks for the quick response! and just for clarification and for me to be sure, should i back up any partitions before formatting? right now i have 32 (or non64 i guess) bit twrp installed, stock rom and bootloader unlocked. do i need to take any precautions with data/imei/signal before reinstalling twrp64, formatting data, and installing a new rom? if it matters any i have the international version of the moto g5. thanks again!!

nurvus

Backup efs if you want to preserve your current emei state or need to restore it in future
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Hello :)

    This is a TWRP recovery for Motorola Moto G5 Cedric for arm64 ROMS, with encryption support, backup support for persist and efs partitions and possibility to flash/backup logo boot image.

    I need review and test, especially for the storage decryption and/with LineageOS :)fingers-crossed:). I was able to test it on my device (XT1676 3Go).

    It is my first ROM so it is possible that there are bugs.

    - Be carefull, there are problems with the backup system :
    Just wish to come here and tell you guys to AVOID using this recovery, it seems to have a serious bug.
    I just backed up my entire data partition (and enable digest verification) and restored the partition afterwards and the phone didn't boot.

    Then I tried restoring it with verification enabled and the hashes didn't match.
    In other words, for some reason, the generated backup was corrupt.

    - freeZbies


    Changelog
    TWRP 3.2.3-2
    add sdcardfs
    add FB2PNG for screenshot
    fix brightness path and define it at 160
    fix time zone error
    fix incorrect lun path for USB

    You can download it here :

    Sources :
    Manifest :
    1
    Hi,

    tested your recovery image with my installed LOS 15.1. (32bit) Device: XT1676 16GB P5
    - storage decryption: OK
    - backup support for persist and efs partitions and possibility to flash/backup logo boot image: OK


    nice work, thx for you effort :)
    1
    Just wish to come here and tell you guys to AVOID using this recovery, it seems to have a serious bug.
    I just backed up my entire data partition (and enable digest verification) and restored the partition afterwards and the phone didn't boot.

    Then I tried restoring it with verification enabled and the hashes didn't match.
    In other words, for some reason, the generated backup was corrupt.

    Of course I could make another test but it'll take just a long time to backup everything again, so if anyone wants to test it, feel free, but beware, you could have a hell of a headache finding out the backups you made were useless.