6
Get rid of "dm-verity" warning at boot

  1. EpicLPer Gingerbread Apr 7, 2017

    EpicLPer, Apr 7, 2017 :
    Very easy solution, you won't even need the unofficial "brick recovery" tool!

    Simply use the following ADB command, keep in mind that you have to be on STOCK RECOVERY and STOCK ROM in order for this to work! However, you can either have a locked or unlocked bootloader.

    adb reboot "dm-verity enforcing"

    Voila! Have fun with a dm-verity compliant phone now :)
     

    #1
  2. sarthak61199 Froyo Apr 7, 2017


    #2
    EpicLPer likes this.
  3. Sudipkumarc Ice Cream Sandwich Apr 7, 2017


    #3
    EpicLPer likes this.
  4. EpicLPer Gingerbread Apr 7, 2017

    EpicLPer, Apr 7, 2017 :
    You can try it but I doubt it works since that is the whole reason why dm-verity even exists.
     

    #4
    avlysh and Sudipkumarc like this.
  5. Sudipkumarc Ice Cream Sandwich Apr 7, 2017

    Sudipkumarc, Apr 7, 2017 :
    Sorry didn't mean it that way.


    You can use for almost all Rom

    fastboot oem disable_dm_verity
    fastboot oem enable_dm_verity

    please note you may see the outcome as "failed" but don't worry just send the above 2 commands and reboot. dm verity will be fixed.
     

    #5
  6. EpicLPer Gingerbread Apr 7, 2017

    EpicLPer, Apr 7, 2017 :
    Tho dm-verity doesn't matter on custom ROMs anyways, it's only useful for the OnePlus official ones so you can receive OTA packages, not the full one when you try to download it there.
     

    #6
    Sudipkumarc likes this.
  7. Sudipkumarc Ice Cream Sandwich Apr 7, 2017

    Sudipkumarc, Apr 7, 2017 :
    True. but dm-verity is more than that. Secondly if you try updating your phone using OTA and you are rooted, oneplus will automatically switch to full package download instead of marginal one regardless of your dmverity state. Tried this on 4.1.1
     

    #7
    Robin Rocks likes this.
  8. Shubham_Sundrani_711 Cupcake Apr 7, 2017

    Shubham_Sundrani_711, Apr 7, 2017 :
    Thank you! Thank you so so much. Apparently Android Pay, Android Device Manager and Google Assistant all don't work if dm-verity is broken. (I have the beta version of Google Play Services which ran Google Assistant flawlessly till I made the update from OOS 4.1.0 to 4.1.1, thus breaking dm-verity)

    I tried using :
    fastboot oem disable_dm_verity
    fastboot oem enable_dm_verity

    which works on the 3T but not on the 3.

    Tried searching for a solution for days. Heck, even performed a factory data reset but to no avail. Your solution fixed everything. Thank you once again.
     

    #8
    Lemonfleck73 and EpicLPer like this.
  9. Lemonfleck73 Jelly Bean Apr 7, 2017

    Lemonfleck73, Apr 7, 2017 :
    A other way (for using TWRP and Customroms) on OP 3:

    First download from here:
    https://forum.xda-developers.com/oneplus-3/how-to/radio-modem-collection-flashable-zips-t3468628

    ... Firm-/Modemware for OSS 4.0.2 and 4.1.1 ,
    after this flash OSS 4.0.2 (Firm- & Modem) , boot into fastboot-mode, connect your Droide to PC via USB and typing:

    fastboot oem disable_dm_verity (return)
    fastboot oem enable_dm_verity (return)

    go back to the Recovery-Mode , reflash OSS 4.1.1 (Firm- /Modem) and reboot your phone.
     

    #9
  10. svanimpelen Donut Apr 21, 2017

    svanimpelen, Apr 21, 2017 :
    I am currently on Open Beta 14 and I had TWRP installed as recovery. Ran the command, and it worked flawlessly. Thanks a lot!
     

    #10
  11. EpicLPer Gingerbread May 3, 2017

    EpicLPer, May 3, 2017 :
    Keep in mind tho that this is NOT A FIX and WILL NOT MAKE YOUR PHONE VERITY-VERIFIED!
    It'll simply only turn the warning off at boot! But apps/OTA will still detect a modified system!

    Also on future OxygenOS versions this should be fixed so it won't work anymore then.
     

    #11
  12. toshantkargwal Cupcake May 3, 2017

    toshantkargwal, May 3, 2017 :
    can you please show a video of how to do this? or please instruct step by step to have a better clearity.
     

    #12
  13. suvrat29 Froyo May 3, 2017

    suvrat29, May 3, 2017 :
    Dm-verity error is caused by improper recoveries AFAIK, install the most recent version of stock recovery and do a full wipe, then flash the custom recovery of your choice. That's what fixed it for me atleast.
     

    #13
  14. cathullu Froyo May 3, 2017

    cathullu, May 3, 2017 :
    Yea me too. I am on Open Beta 15 and TWRP 3.0.4-1 and it did it. Thanks EpicLPer
     

    #14