yashsingh1/xdaforums huggingface dataset:
[OnePlus 3T Guides, News, & Discussion] Adirbetite:
I did a ton of reading and searching, so please dont accuse me for being lazy.

I flashed any Firmware file I could find (while being cautious...) and tried running these prompt commands, tough I am always getting an error trying to "adb fastboot disable_dm_verity". I tried installing the drivers a couple times. i dont have another computer to try on.

I've been trying to go all over my head to get the encryption and the DM-verity away from my phone.

I eventually ended up WIPING the system and data entirely, flash the OTA of Oreo clean, than flash the "DM Verity and Force Encryption Disabler" without leaving the TWRP in between, and yet I get both "phone corrupted" and DM-Verity flag, and I need to enter the pin in order to boot up the phone or enter TWRP.

am I missing anything?

edit: ok I clicked on "forgot password" in the stock recovery and it wiped everything and solved the encryption problem.

no I tried to follow strictly over procedure 1 (flash rom clean, mount sys, flash DM disabler file, boot back to twrp, boot system).

dm-verity flag stays
[OnePlus 3T Guides, News, & Discussion] Xennet:
Hope you got rid of the DM VERITY finally....
[OnePlus 3T Guides, News, & Discussion] dt0807:
After flashing 4.0.2 firmware for your phone and booting into the bootloader, the commands are actually just "fastboot oem disable_dm_verity" and "fastboot oem enable_dm_verity"

You seemed to have added "adb" in front of that
[OnePlus 3T Guides, News, & Discussion] akssmax:
Thanks man!! it worked flawlessly!
[OnePlus 3T Guides, News, & Discussion] loveuhp:
Success with openbeta18 on 3T
[OnePlus 3T Guides, News, & Discussion] jansenw95:
Do I need TWRP for this? In my panic after triggering DM verity, I flashed stock recovery and locked my bootloader, and reflashed OOS 5.0 after complete wipe, but DM verity is still triggered.
[OnePlus 3T Guides, News, & Discussion] Xennet:
Yes. You will need a custom recovery like TWRP..
[OnePlus 3T Guides, News, & Discussion] timobayl:
Yes.

But unlocked the bootloader wipe the phone.

I think then the DM-verity is away.

Why you had panic? It is only a message on the screen.
[OnePlus 3T Guides, News, & Discussion] nicknacknuke:
I may be as impatient as you were...

but mine stays at oneplus logo for as long as 10 minutes,

how long did it takes for your phone to complete bootup ?

---------- Post added at 04:10 PM ---------- Previous post was at 03:49 PM ----------

Well, either it's not working for me, or i may have F*cked up something in the process.

What i did was :

- flash *official* OOS 5.0/oreo (not beta )

- flash Magisk-14.0

- mount /system, flash your encryption disabler.

- reboot.

Device vibrate once, showing "your device is unlocked ..etc",

Device vibrate again, restarting again,

Device vibrate, showing no.1 again.

DM verity message appears,

continue booting,

device stays for 15 minutes so far with oneplus logo...

P.S : on post #2, there is no instruction to mount /system from TWRP like in post #1.

is it intended ?
[OnePlus 3T Guides, News, & Discussion] JunkstarrG3:
Really would like to help you but tbh I forgot what I did to fix it.
[OnePlus 3T Guides, News, & Discussion] Xennet:
Follow fresh and steps in post 2...

System is already mounted when you follow steps in post 2...

Others have disabled DM VERITY by following post 2

So you should be too..
[OnePlus 3T Guides, News, & Discussion] Aerfio:
After many, many tries I finally got it to work, only to screw it once more.

It worked like OP said, following exactly those instructions (2nd post). It didn't really matter if I mounted system in twrp iirc, but it's best to do it.

Problems started when I wanted root, dm-verity came back every time.

The key was to get SuperSU v2.82 SR5.

After it started working following previous steps I just got into twrp, flashed, rebooted and it finally worked.

But then I tried doing same thing with francokernel v33 and broke again :p

This post gave me idea what to do: https://xdaforums.com/showpost.php?p=74630656&postcount=1897

Good luck everyone
[OnePlus 3T Guides, News, & Discussion] JunkstarrG3:
Guys what it OP releases an OTA? Flash it via twrp...will I have to flash Kernel and DMremove.zip again?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Always flash the DM VERITY ZIP given in OP LAST...

After rooting, flashing kernel etc..only the last before you finally reboot to system..
[OnePlus 3T Guides, News, & Discussion] Xennet:
No OTAs...

If OnePlus release OTA..

You have to flash the full rom zip and as said flash the DM VERITY ZIP given in OP...
[OnePlus 3T Guides, News, & Discussion] ZiViky:
HI,

I have oneplus3 with OxygenOS 5 stabile built + TWRP (for Oreo) and DM-VERITY issue. I've downloaded all the files from 2nd post for OPO3.

When in TWRP I try to flash 4.0.2 firmware I get error 7: error installing zip file,,, E3004: This Package is for "one plus 3 " devices; this is a " ".

Any idea how to progress?
[OnePlus 3T Guides, News, & Discussion] Diabollon:
Try older twrp like 3.0.3 or twrp blu_spark for Oreo.
[OnePlus 3T Guides, News, & Discussion] BillGoss:
You need to use Magisk 14.5
[OnePlus 3T Guides, News, & Discussion] Flow:
I just f*cked it up twice as well.... problem is caused by rooting with Magisk 14.0

dm-verity was finally gone after following every step from the 2nd post of this thread... then I installed Magisk 14.0 and dm-verity was back!

So I started all over, but this time installed Magisk 14.5 with TWRP (blue_spark) just before the last step and then everything was OK :)

So like this:

1)

Download 4.0.2 Firmware for Oneplus 3T from here: http://www.mediafire.com/file/cx568e...OnePlus_3T.zip

Download 4.0.2 Firmware for Oneplus 3 from here: http://www.mediafire.com/file/8tt5x4...e_OnePlus3.zip

2) Flash the downloaded 4.0.2 firmware OnePlus 3.zip or 4.0.2 firmware OnePlus 3T.zip file in TWRP.

3) DONT REBOOT TO SYSTEM. REBOOT TO BOOTLOADER FROM OPTION IN TWRP.

4) Connect your phone to the pc

5) Press windows button + X

6) Open Command prompt

7) Type "fastboot oem disable_dm_verity" without quotes and press enter

8) Type "fastboot oem enable_dm_verity" without quotes and press enter

9) DONT REBOOT TO SYSTEM. REBOOT TO TWRP RECOVERY.

10)

In case of Oneplus3T, Flash the required firmware files for Stable or Open Beta OREO OOS corresponding to your current OOS (current OOS is the version of OOS which you are using now on your phone) in TWRP from this post: https://xdaforums.com/one...ta-10-t3631166(Courtesy: [MENTION=4369704]kamilmirza[/MENTION])

In case of Oneplus3, Flash the required firmware files for Stable or Open Beta OREO OOS corresponding to your current OOS (current OOS is the version of OREO OOS which you are using now on your phone) in TWRP from this post: https://xdaforums.com/one...-zips-t3468628 (Courtesy: [MENTION=3068641]jamal2367[/MENTION])

11) DONT REBOOT!!!!

==>> 12) Install Magisk 14.5 (or newer) with TWRP (I used TWRP Blu spark from eng.stk). DO NOT REBOOT, STAY IN TWRP!

13) VERY IMPORTANT: WITHOUT REBOOTING, Flash the downloaded DM-Verity and Force Encryption Disabler For OOS Oreo.zip file from the OP in TWRP...

14) Reboot..The DM-verity message is gone forever...

Just one question:

In Magisk Manager, there are two options in the main screen which are turned off (or not selected).

[ ] Keep force encryption

[ ] Keep dm-verity

What are these two options for and should they be kept off?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Just leave the options OFF...

It is clearly mentioned in the OP...that the root solutions are either SUPERSU SR5 or Magisk 14.3 or above...
[OnePlus 3T Guides, News, & Discussion] nicknacknuke:
Yeah.. i finally had to wipe out my userdata (pain)..

DM-verity indeed gone at one of attempts, but then it stuck at booting ( i suspect it is trying to re-encrypt or decrypt your data, which is still in there, so that it took so long to finish booting, and make some people *me* impatient and think there's something wrong. ).

Reboot it.. and then boom!... "encryption is not finished, your data can not be used anymore".

Lessons learned.. always back the sh*t everything up from the start.

It's not worth loosing the data. Do not fall for "no data lost" :P.

If the phone is empty, everything is much faster, re-encrypt/decrypt.

My Oreo is now dm-verity message free, but in settings - security, it still says "encrypted".

nvm.. that's another problem for next time.... lol...

P.S : i would not touch those 2 radio box in Magisk...
[OnePlus 3T Guides, News, & Discussion] Manjumeth-95:
So, I'm on OOS 5.0 and Magisk 14.5. DM-Verity wasnt being triggered when i was on OOS 4.5 but after updating to 5.0 and rooting, it is being triggered. Phone is currently encrypted. Should I just follow the steps to get rid of the dm verity and STAY encrypted or decrypt my phone and then get rid of dm verity? I pretty much just dirty flash OTA updates and dont really try out other ROMs, so are there any drawbacks to staying encrypted?
[OnePlus 3T Guides, News, & Discussion] BillGoss:
I like my phone to always be encrypted with a password. That way no one can bypass the password by deleting system files in TWRP. This way, if i lost my phone, the finder would have to do a factory reset before being able to use it.
[OnePlus 3T Guides, News, & Discussion] sandeep_kumar:
I have used the command adb reboot "dm-verity enforcing" to disable dm verity in oreo oxygen os.

Is it safe?

If it is then what is the need to use the zip?
[OnePlus 3T Guides, News, & Discussion] zeeebs:
Selling my OP3T so I restored it back to stock oreo/recovery & relocked bootloader. Still getting DM-Verity...any ideas for how to get rid of it?
[OnePlus 3T Guides, News, & Discussion] Anghirrim:
Hi, just a quick question

I am on encrypted OOS 5, rooted with Magisk 14.5 and with TWRP blu_spark 8.54. Appart from root, still full stock.

I have the dm-verity message.

Phone says it's encrypted, I have the pin at boot, but no pin in TWRP.

So the question is:

I want to decrypt. Should I really go through the second post steps before running procedure 2?

If yes, what's the reason for doing so?

And... What's the point in flashing OOS 4.0.2 firmware first ? What does it make, just enabling the dm-verity commands in fastboot ?

Thanks.

PS: I've read the OP and a good part of this thread. These are the last questions I have for full comprehension.
[OnePlus 3T Guides, News, & Discussion] Xennet:
To remove the DM VERITY message you have to go through steps in POST 2...

Once DM VERITY is triggered just by flashing the DM VERITY disabler will not do anything...the disabler zip just disables the triggering..but once triggered follow you have to follow the steps in post 2...

So for decryption you can follow only procedure 2 in the OP but if you need to disable DM VERITY too you should follow post 2 followed by the procedure 2 in the OP..

OnePlus has disabled the command to disable and enable DM VERITY from firmware 4.0.3 onwards...

So to type in those commands you need firmware 4.0.2...
[OnePlus 3T Guides, News, & Discussion] Xennet:
Follow post2
[OnePlus 3T Guides, News, & Discussion] Xennet:
Good one..

That command works only on stock recovery..

We almost a good percentage here at XDA are on custom recovery, so the zip is needed...
[OnePlus 3T Guides, News, & Discussion] Anghirrim:
Ok clear thanks. That make sense.

Once I have been through the whole process. Will I have to flash the dm-verity disabler file everytime I flash a custom rom, or only the OOS based ones?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Better to do so...unless you are damn sure that the kernel in the custom ROM has been patched for DM VERITY and force encryption..
[OnePlus 3T Guides, News, & Discussion] Anghirrim:
Ok clear thanks.

And it's valid for whatever MM/N or O kernels?

By the way, are all the kernels and roms available based on OOS or not?
[OnePlus 3T Guides, News, & Discussion] Xennet:
This zip is valid for only Oreo kernels. For nougat visit my thread link given in the OP.

Custom roms have their own kernels with their own patches and settings but based on the device specific tree..
[OnePlus 3T Guides, News, & Discussion] Anghirrim:
Ok clear. I've read both threads.

Fyi, I just followed your tutorial and managed to get rid of both encryption and dm-verity message. Thanks a lot for that.

Side comment. The "fastboot format userdata" command did wipe my data partition in f2fs and set it to 32Gb only...

Once back in TWRP, I did an advance format of /data in ext4 and everything went back to normal. I now have my 64Go back.
[OnePlus 3T Guides, News, & Discussion] Anghirrim:
New question, is it normal that after flashing your zip I end up with model and build version unknown?

Or this has to deal with the magisk version I flashed?
[OnePlus 3T Guides, News, & Discussion] Xennet:
That has nothing to do with my zip...

Fstab entries that my zip has nothing related to model and build version..My phone with Oreo 8 has build and version number with my zip flashed..
[OnePlus 3T Guides, News, & Discussion] Anghirrim:
Yep I was pretty sure... But still, asked. Because I used a lot magisk previous versions and never had this behaviour.

After a reboot, now it's back... Weird.
[OnePlus 3T Guides, News, & Discussion] zeeebs:
What if I'm on stock recovery? Can I flash the 4.0.2 firmware from there? What about the DM-Verity and Force Encryption Disabler For OOS Oreo.zip ?

Thanks!
[OnePlus 3T Guides, News, & Discussion] Xennet:
All these need custom recovery like TWRP..
[OnePlus 3T Guides, News, & Discussion] xpissio:
I have a question, for remove the encryption in general (I mean, with other custom ROMs and not OOS), is the "fastboot format userdata" enough?
[OnePlus 3T Guides, News, & Discussion] Xennet:
If the kernel in the custom ROM does not enforce encryption "fastboot format userdata" will be enough...
[OnePlus 3T Guides, News, & Discussion] Sunil.Kathet:
Very easy....
[OnePlus 3T Guides, News, & Discussion] rk2612:
I'm wondering if this will be sufficient. :confused:

Refer this (https://xdaforums.com/showpost.php?p=74690228&postcount=3) for my learning of today. Appreciate if you could please confirm or correct my understanding.
[OnePlus 3T Guides, News, & Discussion] Xennet:
Read your posts...

Fstab file determines how your disk partitions get mounted, the partition type, and all the additional characteristics like encryption, whether to enforce DM VERITY etc etc....

But how many times the kernels call the DM VERITY flag it has to get the information and details in the fstab file to process it..so finally it's the fstab file that determines the way the partition mounts..so patching out the file table in fastab affects the way the partition mounts...
[OnePlus 3T Guides, News, & Discussion] rk2612:
Understand that but Oreo has introduced something new for mounting partitions. Please refer the following 2 links and perhaps you might want to reconsider:

https://source.android.com/devices/architecture/kernel/modular-kernels

https://xdaforums.com/showpost.php?p=74689811&postcount=255

In fact, I notice that your fstab.qcom file has the system entry commented out, which should make it ineffective and I doubt if this zip can have the effect of removing dm-verity from the device. Disable forced encryption yes but not removing dm-verity, I think.

#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
#/dev/block/bootdevice/by-name/system /system ext4 ro,barrier=1,discard wait
[OnePlus 3T Guides, News, & Discussion] Xennet:
A

That's the original fstab file just as in stock...which has the commented line...nothing changed..refer to the stock fastab file..

And to note I have unrooted stock system with just my zip flashed and no DM VERITY triggered which tells it serves it's purpose with Twrp as recovery..
[OnePlus 3T Guides, News, & Discussion] Siddk007:
[MENTION=7874870]Xennet[/MENTION] flashed dmverity zip on OB 19, though it didnt get encrypted, dm verity started displaying
[OnePlus 3T Guides, News, & Discussion] Xennet:
Didn't check out the new open 19 beta...At work..

Will check out today in a few hours and get back...

I will post that whether my DM VERITY zip will work after each OOS stable and beta update as usual after analysing the new released full zip file...

Sorry for the delay...
[OnePlus 3T Guides, News, & Discussion] Siddk007:
no problem, take your time
[OnePlus 3T Guides, News, & Discussion] rk2612:
dm-verity error will not trigger if you're on OOS 4.0.2 firmware and have used the fastboot oem disable dm-verity command.

The stock fstab.qcom does not need that line and is commented out because mounting of system partition is handled by the dtb in the kernel and not by the fstab.qcom file.

Perhaps you can try using an updated firmware and see if your zip still does not trigger the dm-verity error.
[OnePlus 3T Guides, News, & Discussion] Xennet:
I am on OOS OREO MY FRIEND not 4.0.2..

Now enough of this I suppose...

Thanks for your response though...

Will see to your querires though, as I have to work on latest beta though..
[OnePlus 3T Guides, News, & Discussion] rk2612:
Then my dear friend, the dm-verity issue is being taken care of by Magisk / SuperSu and not by your zip file. Both of these take care of patching the dtb / kernel. To confirm, please try using your zip without Magisk / Supersu and see if you trigger dm-verity error. Thanks for your patience and this is my last post to you on this subject.
[OnePlus 3T Guides, News, & Discussion] Xennet:
Ok thanks for your valuable advice and I hope you know what I meant by unrooted in my previous post...

Ok shall see if there is any changes indeed is needed in the recent beta Oreo release...thanks once again..
[OnePlus 3T Guides, News, & Discussion] elmer_fudd:
Flashed OB19 with SuperSU 2.82 SR5 and DM Verity zip. No problems this time either. Decrypted.
[OnePlus 3T Guides, News, & Discussion] c0dac0da:
What are the correct steps if someone has triggered dmverity & needs to get it removed. I saw the third post but it has steps 1 and then 11 & 12 . Can't find the middle steps . After downloading 4.0.2 firmware it says don't reboot & flash the dm verity zip. Please clarify.

Are the below steps correct

1 flash 4.0.2 firmware

2 withourlt rebooting flash dmverity zip
[OnePlus 3T Guides, News, & Discussion] Xennet:
The 2nd post has all the steps..XDA labs shows up some error sometimes..

Try loading in a browser to see all steps...
[OnePlus 3T Guides, News, & Discussion] TheVic!:
Can confirm that newest OOS OB with magik 14.5 and disable DM-verity works without triggering DM-verity and staying decrypted.
[OnePlus 3T Guides, News, & Discussion] c0dac0da:
Thank you :D
[OnePlus 3T Guides, News, & Discussion] vsot13:
What's your flashing procedure? Is anyone here uses Multi ROM? Can I flash OB19 as primary? TIA
[OnePlus 3T Guides, News, & Discussion] TheVic!:
I follow the steps in post one.

Flash full rom, mount system and check if i can browse it, flash su of choice (magisk 14.5 for me) and last flash DM-verity zip. All without rebooting.

---------- Post added at 08:27 PM ---------- Previous post was at 08:26 PM ----------

Why not ask this in multirom thread? There you will find other users of MR.
[OnePlus 3T Guides, News, & Discussion] TatoValverde:
I'm a little confused with all the procedures...

In my case, I'm on Android 7.1, with DECRYPTED data, and with the dm-verity message popping up on every boot.

I want to update my phone to Android O, keep the phone decrypted, and don't really care about the dm-verity message popping up on every boot.

Which procedure should i follow? Just flashing the zip right after flashing the Android O software would be enough? And how would SuperSU come into play? (when do i flahs it... after the OS and before the dm-verity zip? Or after both?)

Thank you,
[OnePlus 3T Guides, News, & Discussion] Xennet:
Follow procedure 1 / procedure 2 in the OP step by step...

Flash SuperSU and last the DM VERITY zip file as given in the procedure...

DO BACKUP YOUR DATA BEFORE PROCEEDING IF SONETHING GOES WRONG..
[OnePlus 3T Guides, News, & Discussion] TheVic!:
Correct me if im wrong [MENTION=7874870]Xennet[/MENTION]...

If you dont mind the DM-verity message, just follow my last post. But be sure to clean flash (meaning wiping all but user data).
[OnePlus 3T Guides, News, & Discussion] BillGoss:
Would you, or anybody else, mind posting a picture of the dm-verity message?

I've looked around for what the dm-verity message looks like but I seem to only find pictures of the unlocked bootloader or screenshots of the bootloader mode.

Thanks.
[OnePlus 3T Guides, News, & Discussion] timobayl:
It Looks like the unlocked bootloader message.

The yellow letter are red by the DM-verity message.

It shows up after the bootloader message

https://encrypted-tbn0.gstatic.com/...kUY04WCcUVDzbjQu6txtwZvPJiuzb_oIdTTQXwE-iC7VL
[OnePlus 3T Guides, News, & Discussion] BillGoss:
One more question: you get this message and your phone is a 3 or 3T?

The reason for asking is that my phone is a 3T and when I boot up with the stock kernel and a modified system image I get no message but get sent straight to fastboot mode.
[OnePlus 3T Guides, News, & Discussion] Xennet:
I have been on and off the DM VERITY message on my 3T ever since I started this oreo thread and nougat threads testing out each new OOS version and getting rid of it each before uploading the fix boot images and zip files...

Just don't get why you are being thrown off to the bootloader...

Suggest you to go full clean stock for once...and then try modding the system again and see if the problem persists..
[OnePlus 3T Guides, News, & Discussion] BillGoss:
I'll give that a go. Is your phone an A3010 or an A3003?
[OnePlus 3T Guides, News, & Discussion] Xennet:
A3003..
[Sony Xperia XZ Questions & Answers] ongkhel:
Anyone using this earphone? Because the right earpiece wont work. Im on the lateset version. But when i plugged in iphone it work both side properly.
[Sony Xperia XZ Questions & Answers] hollandnigel:
Did you find a solution??

I've got pair of headphones I have never used
[MDA III, XDA III, PDA2k, 9090 ROM Development] EgorLev:
hi all! i so thread about file transfer over bt, but cannot find lately. can somebody help my please with the link?
[Sony Xperia X Compact Questions & Answers] cmstlist:
I'm getting really annoyed with the fact that all sorts of completely unimportant apps on my phone decide to wake the screen when they have a notification. I am OK with these notifications being on the lock screen, I just don't want it to keep randomly waking up.

I just can't find a setting anywhere to disable this behaviour. Is there anything I can do with root since apparently there is no way to disable this in the standard settings UI?
[Sony Xperia X Compact Questions & Answers] kekistaneerefugee:
This is just how sony messages app works. Use a different app for messages to disable it. Samsung does this with their stock messaging app as well and its annoying. Running xposed there are a few tricks to stop it if you wanted to use teh stock messaging app for whatever reason.
[Sony Xperia X Compact Questions & Answers] cmstlist:
It's not the Sony messages app (which I don't use). It's all sorts of low importance apps on my phone. I do want the notifications, but not the screen wake.

The worst offender is the game TwoDots. Every time it notifies me of new things happening in the game, the screen wakes. Even if I ban ALL notifications from the app, it still wakes the screen when it would've notified me (I can tell from logcat). I just wish I could ban all apps other than phone calls from waking the screen.
[Sony Xperia X Compact Questions & Answers] kekistaneerefugee:
Never once had any app other than messages do that, Id be uninstalling them immediately lol You can run xposed and gravitybox to fix this though.
[Sony Xperia X Compact Questions & Answers] cmstlist:
I haven't bothered with Xposed since Nougat. Just using Magisk.

Ugh even the Tapatalk app is doing it too.
[Sony Xperia X Compact Questions & Answers] kwstas 13:
I really don't know what's going wrong. I don't face any of these issues, with none of my apps, even Sony messaging app works without waking my screen up.