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

548 posts
Thanks Meter: 316
Post Reply Email Thread
* Your warranty is... still valid?
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about steps included in this guide
* before formatting the phone! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.

Pre requisites :-
Q. DM verity ? uh ? !??

Q. I don't know sheit help me pls!!!!!!!!!!!!!!!!!!
A. Search Forum , help yourself , Almost everything is answered .

Q. /data/media ( sdcard where all the pics and songs and your sheit is stored) 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 .

Download Links :-

Oxygen OS :-

Recoveries :-
  • Unoffical TWRP-3.0.3-x_blu_spark_v15-op3_op3t.img by eng.stk : Here
  • Offical TWRP 3.0.3-0 by and jcadduono : Here
  • Unofficial TWRP 3.0.4.-0 by jcadduono : Here and Official Unified OP3/OP3T Thread Here
  • Unofficial TWRP 3.0.3-0 by dianlujitao : Here
  • Official Oxygen OS Recovery : Here
Super SU :- ( Official Thread )
  • [STABLE][2016.12.15] SuperSU v2.79 : Here
  • [BETA][2017.01.14] SuperSU v2.79 SR3 : Here
DM verity Disabler :-
  • DM-verity and forced encryption disabler (5.1): Here

Misc Tools :-
  • [ToolKit] OnePlus 3[v4.0] by ahmedradaideh : Here
  • Signed_OxygenOS-H2OS-Booster-Script-v3.7-by ahmedradaideh ( Super Optimized ) : Here

ALSO I won't be RESPONSIBLE for any mishap , at your own RISK

What this walk through will do ?
  • Fix device-mapper-verity issue
  • Phone will be decrypted . ( can check from Settings -> Security -> Encryption)
  • TWRP recovery would be accessible
  • /data will be f2fs only , not /cache and /system
  • Any backup of other partition's done in ext4 can't be used again in case if you wish to change fs of other partitions , mainly only /data is req for f2fs fs .
  • Now Supports f2f2's decryption without password prompt and better fs handling and Nougat Firmware Supported sadly it won't support ext4 filesystem probably more like don't know how its gonna behave to that environment with the new Modified TWRP by bluspark . ( Updated version of twrp-3.0.2-1.28-oneplus3.img ) .
  • Official TWRP Supports f2fs filesystem handling R/W

Procedure :-
  1. Backup ( for real? do I need to tell this .-. I guess Not but still ) !!!
  2. Flash and boot into stock recovery recovery_op3.img
  3. While in stock recovery, Wipe everything ( resetting variables for dm-verity inside the system boot image ) , all the 3 options , just do all (for a clean flash).
  4. Install OxygenOS 4.0.2 through sideload
  5. Reboot the phone and wait for a while ( might take 2-3 minutes for first boot ) let the setup page come and reboot again to fastboot .
  6. Flash Official TWRP ,Now switch off the phone .
  7. Start the phone in TWRP recovery ( also DM- verity would be gone now , if you would have noticed)
  8. Wipe the phone i.e Advanced Wipe the /data to f2fs (see the guide above, have posted a link )
  9. Reboot again to TWRP .
  10. From TWRP access MTP, copy Super to device and flash it.
  11. Wipe data & cache and reboot system.

While Updating ( Optional)
if while updating from old rom to new Rom ( versions ) and You encounter DM verity again Just Follow this
  • Flash the dm-verity and forced encryption disabler zip.
  • Reboot the system followed by clearing cache and dalvik.

DM - verity would be gone NOW .
Voila Lads!!

Change log
  • Updated Link for Stock Recovery ( Nougat Supported)
  • Updated TWRP recovery by BluSpark ( f2fs Decryption and better support )
  • Updated Procedure because of decryption fix
  • Added Link for 4.0.1 ( wont make any diffidence 4.0 or 4.0.1 )
  • Added Link for 4.0.2
  • New Updated TWRP OFFICIAL (3.0.3-0)
  • Updated TWRP recovery by BlusSpark ( 3.0.3-x source)
  • Added dm-verity and forced encryption disabler
  • Added Misc Tools ( ToolKit and Debloater )

Credits :-
  1. for backup and f2fs fs changes by @Adithya R
  2. for new Decryption Supported TWRP twrp-3.0.2-0_blu_spark_v11-op3.img 2017-01-05 14:54 by @eng.stk AKA bluspark
  3. TWRP Official 3.0.3-0 by @jcadduono and TWRP Team
  4. no verity Script by @jcadduono
  5. ToolKit and Debloater Script By @ahmedradaideh
The Following 47 Users Say Thank You to cpt.macp For This Useful Post: [ View ] Gift cpt.macp Ad-Free
2nd January 2017, 09:06 PM |#2  
Junior Member
Thanks Meter: 0
worked like a charm. also maintained sim service
2nd January 2017, 09:45 PM |#3  
Imotep95's Avatar
Senior Member
Flag Belgrade
Thanks Meter: 2,721
Worked also here, thanks OP.
The Following User Says Thank You to Imotep95 For This Useful Post: [ View ] Gift Imotep95 Ad-Free
2nd January 2017, 10:10 PM |#4  
TiVa's Avatar
Senior Member
Thanks Meter: 164
Originally Posted by Imotep95

Worked also here, thanks OP.

I couldn't sideload to zip file. Got an "cannot read" message. Anyone any idea? I just updated and still have the dm error
2nd January 2017, 10:43 PM |#5  
cpt.macp's Avatar
OP Senior Member
Under Your Bed
Thanks Meter: 316
Originally Posted by TiVa

I couldn't sideload to zip file. Got an "cannot read" message. Anyone any idea? I just updated and still have the dm error

use this ADB . Yours is old

just get the portable version of it and run command line from there , it will work surely then
The Following 3 Users Say Thank You to cpt.macp For This Useful Post: [ View ] Gift cpt.macp Ad-Free
3rd January 2017, 01:14 AM |#6  
Senior Member
Flag Saint-Petersburg
Thanks Meter: 205
Donate to Me
Just change bootloader and you will be happy
3rd January 2017, 08:56 AM |#7  
Senior Member
Thanks Meter: 213
Originally Posted by rahulnegi1409

I was having dm verity Issue after updating from Beta 10 to 4.0 ( twrp flash )

One downside of your method (as always with decryption) is, that the next update could/will reencrypt the phone und you will loose data again.

Gesendet von meinem ONEPLUS A3003 mit Tapatalk
3rd January 2017, 09:37 AM |#8  
kuulbhaskar's Avatar
Senior Member
Flag Kolkata
Thanks Meter: 43
Donate to Me
yeah thanks and also i want to mention that i just skipped first three steps where i flashed stock recovery using fastboot and wiped everything
3rd January 2017, 12:02 PM |#9  
TiVa's Avatar
Senior Member
Thanks Meter: 164
It fixed it for me! 2 of those warnings are too much... Encryption sure may be an issue but i'm going tot invest in a USB c portable device so i can use my backups
3rd January 2017, 12:27 PM |#10  
atulclassic's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 917
you are a lifesaver!!!
you just saved my OP3's life..thanks and cheers!!!
3rd January 2017, 12:47 PM |#11  
Thanks Meter: 2
Bro please make a video
Please please please
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes