dm-verity solution!!!???

  1. eshaanabhyankar
    Gingerbread Jan 30, 2017

    eshaanabhyankar , Jan 30, 2017 :
    Hi there. I flashed OOS 4.0.2 from resurrection remix and while booting up, a screen flashes saying "dm-verity may not work as it is in enforcing mode" well... something like this..
    Is there a solution to this? I want it removed.. :)

    obiwan+ likes this.
  2. Zh_kilat
    Android Q Jan 30, 2017

    Zh_kilat , Jan 30, 2017 :
    there 2 fastboot magic spells to make this dm verity screen disappear ....

  3. eshaanabhyankar
    Gingerbread Jan 30, 2017

  4. Zh_kilat
    Android Q Jan 30, 2017

    Zh_kilat , Jan 30, 2017 :
    Try this

    fastboot oem disable_dm_verity
    fastboot oem enable_dm_verity

    jr.pasheko and deviantartjr like this.
  5. F_Vamsi_Krishna_dsCL
    Eclair Jan 30, 2017

  6. calidro
    Cupcake Jan 30, 2017

  7. psdl
    Eclair Jan 30, 2017

    psdl , Jan 30, 2017 :
    Yes. This does work. Did it yesterday when I was testing Lineage on my 3T.

    calidro likes this.
  8. narceoneplus2
    Ice Cream Sandwich Jan 30, 2017

  9. obiwan+
    Honeycomb Jan 30, 2017

    obiwan+ , Jan 30, 2017 :
    Can someone explain what "DM verity" is and does when it's enabled? And why does this message appear?

  10. arjanvlek
    Honeycomb Jan 30, 2017

    arjanvlek , Jan 30, 2017 :
    Dm Verity is a security check built into newer Android devices. It checks if your device is fully secure in the following ways:

    - it checks if your bootloader is locked
    - it checks if you have the original recovery software
    - it checks if the kernel is enforcing SElinux (Linux security policy)
    - it checks if there is no root access

    As long as all these cases are true, dm-verity will not throw any kind of errors. If your device is modified, it may do give an error, but some roms patch it out or work around it by using systemless (system disk not modified) addons.

    I don't know what causes the error, but it's likely a bug or a part of the firmware that is not properly signed by OnePlus and therefore seen as unofficial.

    obiwan+ likes this.
  11. obiwan+
    Honeycomb Jan 31, 2017

    obiwan+ , Jan 31, 2017 :
    OK, so the error message is not coming from "DM verity" itself but from some new OnePlus checking mechanism that checks if DM verity is enabled? And if it's not enabled, the message appears?

  12. stephenboyo
    KitKat Jan 31, 2017

    stephenboyo , Jan 31, 2017 :
    True it does not work if you are using TWRP custom recovery to install Beta 11 or 4.0.2. I've tried to remove the error message many times and it definitely does not work. WHen I've installed other ROMS is has disappered it is only when you install OP firmware with TWRP that you encounter the message. The issue arose cos OP had specifically asked for the new firmware to be installed using OP's own stock recovery or OTA so anyone using TWRP to install recent OP firmware will encounter this message.

    obiwan+ likes this.
  13. obiwan+
    Honeycomb Jan 31, 2017

    obiwan+ , Jan 31, 2017 :
    In the meantime I tried the quoted fastboot commands. They run through with "OK" messages. But on reboot the "DM verity" message still appears. What now?

  14. ringogelso
    Gingerbread Jan 31, 2017

    ringogelso , Jan 31, 2017 :
    if fasboot commands do not work, as in my case, you can solve the problem by installing the official rom via adb sideload command.

    obiwan+ likes this.
  15. daninantro
    Ice Cream Sandwich Jan 31, 2017

    daninantro , Jan 31, 2017 :
    The reason people are getting dm verity error is because google has increased the security checks with Nougat and the error will appear every time unless u are on full stock. In MM, the security was not strict enough and dm verity would get patched without issues. But in Nougat its not the case unless u disable dm verity checks completely.

  16. daninantro
    Ice Cream Sandwich Jan 31, 2017

    daninantro , Jan 31, 2017 :
    Even if the message appears, it has no drawbacks on usability of the ROM. It just takes additional 5 secs to boot :p

  17. Zh_kilat
    Android Q Jan 31, 2017

    Zh_kilat , Jan 31, 2017 :
    +1 .... and you need to be in stock recovery before sideloading

  18. Zh_kilat
    Android Q Jan 31, 2017

    Zh_kilat , Jan 31, 2017 :
    when you flash oos stock nougat roms using twrp, the oos stock boot image'll be messed up a little bit.

  19. sandeep6233
    Cupcake Jan 31, 2017

  20. eshaanabhyankar
    Gingerbread Feb 1, 2017

    eshaanabhyankar , Feb 1, 2017 :
    Thanks mate.. It worked.