[FIX] Device-Mapper-Verity fix for Oxygen OS Nougat Rom ( 4.0.1 and Open Beta's)

IlD4nX

Senior Member
Aug 3, 2008
449
94
58
Bugella Civitas
ah thank you.
for today i am done, will test it tomorrow. ;)

Edit:
but now that i just wanted to restore my nandroid backup of FreedomsOS 1.7 this also doesnt work. -.-
TWRP everything restored sucessfully, but after boot animation nothing more happens and the screen just stays black. i could cry.:crying:
flashed the recovery from here.
dont know what to do now. :eek: this is just not my day
It happened to me thousands of times ?
You need to close the entire process, you can't stop it in the middle...
 

MarcTremonti

Senior Member
Dec 16, 2010
732
356
93
No I suggest you to finish the setup of you machine and it will take then few minutes to close the whole process and you will be happier
uhm, sorry but i still dont get what you mean :D
finish what setup? the setup that is described in this thread?
but i still dont get why i cant restore my old nandroid :(
 

IlD4nX

Senior Member
Aug 3, 2008
449
94
58
Bugella Civitas
Finish the remove dm_verify removal process.
The reason why you are not able to restore you backup is due ti f2fs and twrp doesn't manage it correctly. You can still try to use the twrp from blu_spark which is working correctly with f2fs...
 

MarcTremonti

Senior Member
Dec 16, 2010
732
356
93
Finish the remove dm_verify removal process.
The reason why you are not able to restore you backup is due ti f2fs and twrp doesn't manage it correctly. You can still try to use the twrp from blu_spark which is working correctly with f2fs...
thing is i wasnt on f2fs, i checked data partition and it was ext4.
anyway, will try to remove dm **** now and report results here then if it worked or not.

Edit: finally did it to remove dm. first guide worked, second guide here in thread from @LELBOT sadly not.
will install FreedomsOS 2.1 (N) now. but can i go back to FreedomOS 1.7 (MM) with the 3.0.2-1.28 TWRP now just in case?
 
Last edited:

LELBOT

Senior Member
May 28, 2013
231
132
0
24
Chandigarh
thing is i wasnt on f2fs, i checked data partition and it was ext4.
anyway, will try to remove dm **** now and report results here then if it worked or not.

Edit: finally did it to remove dm. first guide worked, second guide here in thread from @LELBOT sadly not.
will install FreedomsOS 2.1 (N) now. but can i go back to FreedomOS 1.7 (MM) with the 3.0.2-1.28 TWRP now just in case?
yes, u can.
make a nandroid backup or clean flash it.
 

cpt.macp

Senior Member
Aug 2, 2013
552
311
63
Under Your Bed
ah thank you.
for today i am done, will test it tomorrow. ;)

Edit:
but now that i just wanted to restore my nandroid backup of FreedomsOS 1.7 this also doesnt work. -.-
TWRP everything restored sucessfully, but after boot animation nothing more happens and the screen just stays black. i could cry.:crying:
flashed the recovery from here.
dont know what to do now. :eek: this is just not my day

if you have a backup in ext4 fs , you cant override it over f2fs fs.

restore and backup can only be done with same filesystem , i.e ext4 to ext4 and f2fs to f2fs.

just get /data/media and be happy .
 
  • Like
Reactions: Zingapuro

Zingapuro

Member
Oct 1, 2012
14
0
0
Hi cpt.macp & community,

Thanks for a guide which looks promising here.

I'm in a bit of a mess (https://forum.xda-developers.com/oneplus-3/help/help-stuck-twrp-boot-loop-downloading-t3536671) and I'd like to try to follow your tutorial. But I'm stuck and I haven't even started yet! So, a few n00b questions about Nandroid backups:

1. What's the point of making a backup (in ext4) if I can't restore it once my fs is changed to f2fs?
2. Q. /data/media will be lost ?? OMG?? pls tell A. uhm yea it will, but follow this guide to backup it, just follow backup process , and not the FS - changing part. <-- you say, only the backup process, because in your guide the fs is changed in step 8. Right? But again, I wonder what the point of the backup is, you even write yourself "Any backup of other partition's done in ext4 can't be used again"
3. Still about backup -- after I run adb pull -p /sdcard c:\bacon_full_backup <-- computer just sits there, doesn't look like it's copying anything, nothing is being created in c:\ How long should I wait...? Half an hour?

What I have so far: I created a backup using TWRP and copied the files from /TWRP/Backups/6923d386/2017-01-12--08-07-04 (25 files starting with data.ext4.win001, about 10 GB) to my computer.

Thanks for any insights!
 

mantff

Senior Member
Dec 29, 2009
103
19
0
if you have a backup in ext4 fs , you cant override it over f2fs fs.

restore and backup can only be done with same filesystem , i.e ext4 to ext4 and f2fs to f2fs.

just get /data/media and be happy .
I don't understand anything... Yesterday that happen to me exactly.

I was in Experience ROM with f2fs and "twrp-3.0.2-0_blu_spark_v11-op3", did a nandroid backup, then factory reset, flash citrus ROM, Google apps, ecofix and supersu....

After boot logo appeared a message asking me for the password to boot in android, I couldn't fix it...So I wanted to restore the nandroid and had the described fail....All in black and don't boot...



Enviado desde mi ONEPLUS A3003 mediante Tapatalk
 

cpt.macp

Senior Member
Aug 2, 2013
552
311
63
Under Your Bed
I don't understand anything... Yesterday that happen to me exactly.

I was in Experience ROM with f2fs and "twrp-3.0.2-0_blu_spark_v11-op3", did a nandroid backup, then factory reset, flash citrus ROM, Google apps, ecofix and supersu....

After boot logo appeared a message asking me for the password to boot in android, I couldn't fix it...So I wanted to restore the nandroid and had the described fail....All in black and don't boot...



Enviado desde mi ONEPLUS A3003 mediante Tapatalk
seems like an ROM issue .
as said new TWRP decrypted data and handled f2f2 /data .
still its not 100% functional . gotta wait for the stable recovery.
 

cpt.macp

Senior Member
Aug 2, 2013
552
311
63
Under Your Bed
Hi cpt.macp & community,

Thanks for a guide which looks promising here.

I'm in a bit of a mess (https://forum.xda-developers.com/oneplus-3/help/help-stuck-twrp-boot-loop-downloading-t3536671) and I'd like to try to follow your tutorial. But I'm stuck and I haven't even started yet! So, a few n00b questions about Nandroid backups:

1. What's the point of making a backup (in ext4) if I can't restore it once my fs is changed to f2fs?
2. Q. /data/media will be lost ?? OMG?? pls tell A. uhm yea it will, but follow this guide to backup it, just follow backup process , and not the FS - changing part. <-- you say, only the backup process, because in your guide the fs is changed in step 8. Right? But again, I wonder what the point of the backup is, you even write yourself "Any backup of other partition's done in ext4 can't be used again"
3. Still about backup -- after I run adb pull -p /sdcard c:\bacon_full_backup <-- computer just sits there, doesn't look like it's copying anything, nothing is being created in c:\ How long should I wait...? Half an hour?

What I have so far: I created a backup using TWRP and copied the files from /TWRP/Backups/6923d386/2017-01-12--08-07-04 (25 files starting with data.ext4.win001, about 10 GB) to my computer.

Thanks for any insights!
hey @Zingapuro , I'll surely help you with your issues and quench your Doubts .

so firstly backup here = /data/media , your pics and songs and other things .

1. adb pull just pulls your data to your PC from /data/media regardless of filesystem of /data partation . ( in post i was referring to /cache and / system and /data , not /data/media , in most of the cases TWRP dont touch /data/media as it stores backups there only , so when we say /data we mean /data and not /data/media )

2. from that step i was just referring for backup part ( adb pull only )

3. must be doing some mistakes while taking backups , make sure you are using adb properly and you can assess your sdcard properly ( i.e MTP is enabled .)
also dont change filesystem before backup it will destroy your data . . You have to do it later on after adb pull command is completed .

taht 10 gb file those things are your /data that is userdata which when formats results in factory reset . ( there is no point of backing up those as the file system is going to be changed ).

see this .
 
Last edited:
  • Like
Reactions: Zingapuro

Qliratu

Senior Member
Jun 14, 2009
367
15
0
Zevenaar
I followed the guide, but security still says its encrypted (also recovery logs says decryption with default password successful).

Is this normal?

EDIT:
For some reason SuperSU is not installed (if im correct, will supersu supress encryption process)

EDIT2:
I sideloaded OxygenOS 4.0.1 again.
Booted
flashed TWRP
rebooted TWRP
did a data wipe (/data already f2fs)
flashed SuperSU

now encryption is disabled
 
Last edited: