yashsingh1/xdaforums huggingface dataset:
[OnePlus 3T Guides, News, & Discussion] Xennet:
No..

For custom ROMs the only thing required the firmware and not full oos... which version of firmware will be mentioned in the required thread which you can get from the firmware threads and then flash it..

For custom firmwares (not all but most of them) have natively patched dm-verity in their kernels....refer to the documentation in the respective threads...

And one more thing...unbricking with MSM toolkit is entirely different from formatting and wiping while you decrypt..I think you should give it a try.
[OnePlus 3T Guides, News, & Discussion] candiesdoodle:
Just a headsup

on OB 32 (OP3)

Flashing SuperSU SR5 AFTER the force encryption disabler, causes a bootloop (one plus logo -> reboots -> twrp)

dont flash SuperSU; just flash the disabler and reboot as per the OP
[OnePlus 3T Guides, News, & Discussion] candiesdoodle:
ok just to confirm again. SuperSU will not work if flashing before the first boot. as i mentioned above

however after booting up, reflashing SuperSU will work fine
[OnePlus 3T Guides, News, & Discussion] Soul Ghost:
Big thanks to you sharing this method. I have a question to ask. I just get rid of dm-verity on custom Oreo rom (rr6.0) by following the procedure given in 2nd post. I also flash the .zip to keep data unencrypted.Everyting is perfectly working now. If one day I wanna go back to OOS ,should I follow the procedure again to keep dm-verity warning away and prevent data get encrypted? Or I just need to do that once,and it can last forever?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Just flash the corresponding patched boot image after flashing the OOS zip as given in the OP...
[OnePlus 3T Guides, News, & Discussion] candiesdoodle:
Hey any time soon you will able to disable the flags for the latest open betas?

No rush. Just checking in. :svetius:
[OnePlus 3T Guides, News, & Discussion] Xennet:
Today as I get home....

But can't find a way to download the full ROM zips..

Have they started rolling out the new beta builds? Think it's not yet published...
[OnePlus 3T Guides, News, & Discussion] candiesdoodle:
Yeah don't bother buddy

I think they delayed it by a day or so

Lol
[OnePlus 3T Guides, News, & Discussion] Xennet:
Ok...

Guys...

Download the patched boot images for beta 24/33 for Oneplus 3T/3 from the links below:

Oneplus 3T --> Download

Oneplus 3 --> Download

Force_Encryption_Disabler_For_OOS_Oreo.zip v2.zip will work well this beta updates too...

OP Updated Accordingly...

Enjoy!!!
[OnePlus 3T Guides, News, & Discussion] alexdonwarez:
keep up the good work:good::good::good::good:
[OnePlus 3T Guides, News, & Discussion] ShaggyM:
PROCEDURE 2: This is applicable only to people who have their data currently ENCRYPTED AND NEEDS TO GET IT DECRYPTED and PREVENT TRIGGERING DM-VERITY

First of all Backup your data for later restore. You will lose your data following this procedure...

1. Go to Bootloader...

2. Connect to your PC..Type "fastboot format userdata" without quotes and press enter. (You will lose your data, do back up if you need something.)

3. Don't reboot to system...Using volume buttons select boot to recovery and Reboot to TWRP.....(Very Important)

4. Flash the downloaded boot-patched.img file corresponding to the Model and OOS version in TWRP immediately after flashing the Stock ROM zip.

5. DON'T REBOOT TO SYSTEM

6. REBOOT TO TWRP

7. In TWRP, MOUNT SYSTEM, GO TO ADVANCED > TERMINAL and Type "df system"(without quotes) and enter. The details of the system partition will be shown. Look at the Use% and Free Space. Make sure you have atleast 100MB free space in System before you go to the next step. If you don't have enough free space then mount system in TWRP, go to file manager and free some space in system by deleting some unwanted apps (in system/app folder like duo, google drive, hangouts,etc. which you can later reinstall via google play as it is not mandatory for them to run as system apps)...If there is low space on your system partition that fstab file flashing fails resulting in blank fstab file and you will end up in bootloop.

8. Once you have confirmed that you have atleast 100MB of free space left in system partition. REBOOT BACK TO TWRP.

9. Flash "Force Encryption Disabler For OOS Oreo v2.zip" in TWRP. (No need to mount system. The v2 zip file does it automatically)

10. Flash SuperSuSR5 / Magisk 15.3+

11. Done.

12. Reboot to System.

-------------

Hello I have followed above step to decrypt my oneplus and was sucessfull, but now i want to enable the Encryption again but some how its now working, i tried flashing stock OOS but encryption works but unable to install custom rom get message related to boot image

Also i was able to custom rom some how but the phone is decrypted now, please help
[OnePlus 3T Guides, News, & Discussion] Xennet:
Flashing stock OOS will restore encryption...

But what do you mean by "but unable to install custom rom get message related to boot image" do explain in detail if you need help...
[OnePlus 3T Guides, News, & Discussion] Yudh:
Is it possible for you to patch the boot image so that it doesn't inform the ROM that the bootloader is unlocked (like custom kernel does) so that safety net flag isn't tripped
[OnePlus 3T Guides, News, & Discussion] Xennet:
It is widely considered as there are some flags that while booting can pass the information of having an unlocked bootloader to the safetynet....

Removing the verified boot flag by using a modified kernel, thereby preventing the bootloader from passing the flag to SafetyNet can be done. This gives SafetyNet the same response it would expect to see from a device that doesn’t support verified boot at a hardware level, and as a result SafetyNet allows the device to pass the test.

But these are all temporary measures and moreover device specific and Google every now and then changes the code for detecting an unlocked bootloader...

So may be let me see of methods to incorporate the ro.boot.verifiedbootstate flag into the native boot image and get in done...
[OnePlus 3T Guides, News, & Discussion] Rodger_Rulez:
[MENTION=7874870]Xennet[/MENTION]

Beta 34/25 already released

Waiting for update)
[OnePlus 3T Guides, News, & Discussion] Xennet:
That was a quick one from OnePlus in relation to the last Open Beta Update...

So,

Here are the download links to the patched boot images for Open Beta 25/34 for OnePlus 3T / 3....

Oneplus 3T --> Download

Oneplus 3 --> Download

Regarding the queries by [MENTION=7150737]Yudh[/MENTION] and others as to whether a patch can be incorporated into the boot image so as to disable the detection of the presence of an unloocked bootloader by SafetyNet...

The patch that makes this possible is the patching of the flag ro.boot.verifiedbootstate in proc/cmdline....But unfortunately the proc/ folder is empty in the boot image by OnePlus, so this flag cannot be incorporated in the native boot image. Infact the proc folder gets populated only after installation onto the phone...So it can be patched only via a script file like it is done by many third party custom kernels or its well taken care of if you have Magisk or SuperSu installed...Or if you need you can patch this flag in proc/cmdline manually (copy the file to phone via Twrp and the copy back the modified file) if you use no root and replace the original file with the modified one and give proper permissions but be careful in doing so as improper handling may brick or prevent booting into system...

Force_Encryption_Disabler_For_OOS_Oreo.zip v2.zip will work well these beta updates too...

OP Updated Accordingly...

Ok Guys...

Happy Flashing....:)
[OnePlus 3T Guides, News, & Discussion] Rodger_Rulez:
[MENTION=7874870]Xennet[/MENTION]

Beta 35/26 already released

Waiting for update)
[OnePlus 3T Guides, News, & Discussion] Xennet:
Xdains,

Here are the download links to the patched boot images for Open Beta 26/35 for OnePlus 3T / 3....

Oneplus 3T --> Download

Oneplus 3 --> Download

Force_Encryption_Disabler_For_OOS_Oreo.zip v2.zip will work well these beta updates too...

OP Updated Accordingly...

Ok Guys...

Happy Flashing....:laugh:
[OnePlus 3T Guides, News, & Discussion] ERNZT:
Thanks!!!!
[OnePlus 3T Guides, News, & Discussion] Yudh:
[MENTION=7874870]Xennet[/MENTION] i tried to patch /proc/cmdline file but i failed .

cant edit or move the file

cant delete or replace it

even after changing the permission of file and folder to 0777
[OnePlus 3T Guides, News, & Discussion] bedsidedoughnut:
After tripping dm verity,ive followed the guide and the error goes away but when it trys to boot into the os phone restarts and dm trips again
[OnePlus 3T Guides, News, & Discussion] Xennet:
Flashing the patched boot image will prevent from tripping DM Verity..

Follow the full complete steps in post 2
[OnePlus 3T Guides, News, & Discussion] Xennet:
Can you elaborate and lay out the exact steps you followed?

And the permission for the file cmdline is 0440...
[OnePlus 3T Guides, News, & Discussion] Yudh:
For modifying the file or moving it

i changed its permission to 0777 but it didn't work.

I tried copying the file to internal sdcard or otg then modified it and tried to overwrite the file but it didn't work.

I tried to modify the file directly via twrp terminal but it didn't work
[OnePlus 3T Guides, News, & Discussion] Xennet:
Did you try to delete the file and then copy back the modified file?
[OnePlus 3T Guides, News, & Discussion] bedsidedoughnut:
ok dum dum here was flashing the boot img to the system partition, is there a way back form that?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Just reflash (dirty flash) full ROM zip and then flash the patched boot image to the boot partition...
[OnePlus 3T Guides, News, & Discussion] Yudh:
Deleting or moving or renaming all gives error 1 in twrp

Tried using inbuilt twrp terminal as well as twrp file manager
[OnePlus 3T Guides, News, & Discussion] bedsidedoughnut:
all done boot img in the right place no dm but still in a loop, when i get a working version of 7.0 it works fine even after it tripped dm again,i have a remote session with oneplus in the morning and see how that goes
[OnePlus 3T Guides, News, & Discussion] yannmrt:
Hello to all,

I follow exactly what was noted in the second post all all work VERY well, Good job! Thanks!

So them after for the future, for each firmware update we need to apply as well the patched boot image corresponding to the new firmware?

Thanks for your time.
[OnePlus 3T Guides, News, & Discussion] jaymact:
thanks
[OnePlus 3T Guides, News, & Discussion] dejan16v:
I did have some doubts so I have added instructions

to set phone as new (no data) but DECRYPTED and PREVENT TRIGGERING DM-VERITY

PROCEDURE 2: This is applicable only to people who have their data currently ENCRYPTED AND NEEDS TO GET IT DECRYPTED and PREVENT TRIGGERING DM-VERITY

First of all Backup your data for later restore. You will lose your data following this procedure...

1. Go to Bootloader...

2. Connect to your PC..Type "fastboot format userdata" without quotes and press enter.

(You will lose your data, do back up if you need something.)

3. Don't reboot to system...Using volume buttons select boot to recovery and Reboot to TWRP.....(Very Important)

4. Flash the downloaded boot-patched.img file in TWRP on boot partition (corresponding to the Model and OOS version)

5. DON'T REBOOT TO SYSTEM

6. REBOOT TO TWRP

7. In TWRP, MOUNT SYSTEM, GO TO ADVANCED > TERMINAL and Type "df system"(without quotes) and enter. The details of the system partition will be shown. Look at the Use% and Free Space. Make sure you have atleast 100MB free space in System before you go to the next step. If you don't have enough free space then mount system in TWRP, go to file manager and free some space in system by deleting some unwanted apps (in system/app folder like duo, google drive, hangouts,etc. which you can later reinstall via google play as it is not mandatory for them to run as system apps)...If there is low space on your system partition that fstab file flashing fails resulting in blank fstab file and you will end up in bootloop.

8. Once you have confirmed that you have atleast 100MB of free space left in system partition. REBOOT BACK TO TWRP.

9. In TWRP mount system partition, then Flash "Force Encryption Disabler For OOS Oreo v2.zip" via TWRP.

10. Flash SuperSuSR5 / Magisk 15.3+

11. Done.

12. Reboot to System.
[OnePlus 3T Guides, News, & Discussion] Rodger_Rulez:
It's me... again with new beta )

[MENTION=7874870]Xennet[/MENTION]

Beta 36/27 already released

Waiting for update)

PS: Could you please make the manual how to patch it without disturbing you?)
[OnePlus 3T Guides, News, & Discussion] jamal2367:
Waiting too... :)
[OnePlus 3T Guides, News, & Discussion] Bodo_1:
Waiting too too.....
[OnePlus 3T Guides, News, & Discussion] shree alwaz:
I have encrypted phone and currently using OB 26 on op 3t. i have not triggered dm-verity. Can anybody let me know which one i should follow to decrpt my phone. It is really annoying everytime i reboot to my phone i need to put pattern to enter into phone or twrp. I belived this this happens to all encrypted phone. Please let me know if am wrong. Educate me. Thanks alot
[OnePlus 3T Guides, News, & Discussion] Xennet:
Guys...

Sorry for the delay and to keep you all waiting... Was really held up at work...

So without further talk, Here are the download links to the patched boot imgaes for Open Beta 27/36 for OnePlus 3T / 3....

Oneplus 3T --> Download (md5 - 031D9429D1EF99B7CA3AFF785A5D7EAC)

Oneplus 3 --> Download (md5 - F4964FD4DDF560D6C8E84C99BB243F7C)

Force_Encryption_Disabler_For_OOS_Oreo.zip v2.zip will work well these beta updates too...

OP Updated Accordingly...

Ok Guys...

Happy Flashing....:cool:

NB: And if you guys really like my work donations are always welcome...
[OnePlus 3T Guides, News, & Discussion] jamal2367:
Thank you this helping me a lot :)
[OnePlus 3T Guides, News, & Discussion] Yudh:
Thanks for your work also i appreciate md5
[OnePlus 3T Guides, News, & Discussion] yannmrt:
I would like to update to the last OB27. I'm with o 26 + booth pat h for ob26.

Do I need to do all from step 11 (from second post) AND the "very important" step 2?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Just follow the steps in Post 1 (OP) for updating....

Post 2 is only if you have triggered dm-verity...it is clearly written in the instructions...
[OnePlus 3T Guides, News, & Discussion] Vuska:
Hi... please help for info..

I cant mount system partition with twrp after update to OB26....

what must i do to fix it? To not triggers DM verity...

Still confused...

have i had to reformat system and data too?

Thank You
[OnePlus 3T Guides, News, & Discussion] Xennet:
It's normal...

As soon as you flash OOS ZIP and try to mount system in Twrp it fails to mount it....but there has been instances where Twrp sometimes mount it ....but in most cases it fails to mount system and throws OS not installed message...This is normal...

Solution is to reboot back to recovery after flashing OOS and then you will able to mount system in Twrp....but restarting back to twrp will trigger dm-verity...for this is the solution I mentioned in OP...FLASH THE PATCHED BOOT IMAGE after flashing the OOS ZIP and then reboot back to Twrp and mount system...
[OnePlus 3T Guides, News, & Discussion] yannmrt:
Sorry but still unsure about witch methods to use. I Forgot to said I'm with LOS base rom, I'm not encrypt and want to keep like this.

Some light will be very welcomed for a noob like me.
[OnePlus 3T Guides, News, & Discussion] BillGoss:
If you're on LOS, then you don't need to do anything other than flash the ROM.

This thread is for people running OOS, not custom ROMs.
[OnePlus 3T Guides, News, & Discussion] yannmrt:
On the second post their is some info about custom ROM, if I read well, from OP. That why I asked.
[OnePlus 3T Guides, News, & Discussion] Xennet:
You are right...but wrong...

The second post is specifically written for people who have already triggered dm-verity and needs to get rid of it....were I have specifically mentioned steps for custom ROMs...but just for updating custom ROMs you won't need the steps in the OP unless your ROM developer has not included a pre patched dm-verity kernel in your ROM...and lineage os has a pre patched kernel...
[OnePlus 3T Guides, News, & Discussion] Yudh:
[MENTION=7874870]Xennet[/MENTION] did you find any other solution for unlocked bootloader?
[OnePlus 3T Guides, News, & Discussion] meetpatel:
Download link is not working can you please check it??
[OnePlus 3T Guides, News, & Discussion] vishruthys:
works even on the latest hydrogen os stable!! thanks
[OnePlus 3T Guides, News, & Discussion] CrashOverride1995:
[MENTION=7874870]Xennet[/MENTION] New OOS update 5.0.3 is out. Hope you know about it.

Just in case the link to the Full ROM Zip here for OP3T
[OnePlus 3T Guides, News, & Discussion] Xennet:
OK....

Finally finally OnePlus released a stable OOS after ages....So as usual I have done my job of patching the boot images...

Here are the download links to the patched boot imgaes for Stable OOS 5.0.3 for both OnePlus 3T and Oneplus 3....

Oneplus 3T --> Download (md5 - 7FC85252668A6CD3C5E0BB4757B5E6ED)

Oneplus 3 --> Download (md5 - 2CC10D4ABC19CA80DDABC4B112EA002B)

Force_Encryption_Disabler_For_OOS_Oreo.zip v2.zip will work well these beta updates too...

OP Updated Accordingly...

Ok Guys...

Happy Flashing....

NB: If you like my work Donations are always welcome...
[OnePlus 3T Guides, News, & Discussion] RohanAJoshi:
Maybe typo there, you wrote open beta instead of stable

.

Edit : corrected by op
[OnePlus 3T Guides, News, & Discussion] Xennet:
Can you post your price/cmdline file here so that I can have a look..
[OnePlus 3T Guides, News, & Discussion] Xennet:
Thanks for pointing out... Sorry was in a hurry...;)

Can you just delete the quote in your post as I have corrected my post so that users won't face difficulty...
[OnePlus 3T Guides, News, & Discussion] jaymact:
im in new OOS 5.03 with STOCK RECOVERY.

but I dont know that I accidentally trigger DM Verify in this update..

I have read the 1st post and none of them have STOCK RECOVERY.

anyone help me?

---

Oneplus 3t / 5.03 OOS / Stock recovery / Encrypted .
[OnePlus 3T Guides, News, & Discussion] Xennet:
How can you trigger DM Verity with a stock recovery???

That interesting....

Are you fully stock???
[OnePlus 3T Guides, News, & Discussion] Sam Nakamura:
Just manually re-flash OOS 5.0.3 via stock recovery, this should probably help...
[OnePlus 3T Guides, News, & Discussion] ps_minky16:
Edit: Fixed and Deleted
[OnePlus 3T Guides, News, & Discussion] Yudh:
I am using elemental x kernel

Cmdline contents

sched_enable_hmp=1 sched_enable_power_aware=1 app_setting.use_32bit_app_setting_pro=1 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 cma=32M@0-0xffffffff androidboot.selinux=permissive buildvariant=eng androidboot.bootdevice=624000.ufshc androidboot.verifiedbootstate=orange androidboot.veritymode=enforcing androidboot.keymaster=1 androidboot.serialno=4114e7f4 gpt androidboot.baseband=msm mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_samsung_s6e3fa5_1080p_cmd:1:none:cfg:single_dsi fpsimd.fpsimd_settings=0 app_setting.use_app_setting=0 androidboot.mode=recovery androidboot.ftm_mode=ftm_recovery androidboot.project_name=15811 androidboot.selinux=permissive androidboot.rf_version=22 androidboot.hw_version=28 ddr_manufacture_info=Samsung ddr_row0_info=16 androidboot.pcba_number=001581207316032000009947 androidboot.enable_dm_verity=1 androidboot.secboot=enabled androidboot.angela=disabled androidboot.nobatt=0 androidboot.rpmb_enable=true
[OnePlus 3T Guides, News, & Discussion] Xennet:
These lines need to be deleted....

androidboot.verifiedbootstate=orange androidboot.veritymode=enforcing

The process/cmdline is populated when bootloader pases the commands to the kernel...as such the process/cmdline cannot be edited...it has to be a kernel level patch to remove those lines passed over from the bootloader..

Either post in the exkernel thread to add the patch...or use a kernel which does the patch...I use bluspark and I don't have these lines in my cmdline file....
[OnePlus 3T Guides, News, & Discussion] Yudh:
Even with these lines i am able to pass safety net with this Kernel

But with patched stock kernel i cannot
[OnePlus 3T Guides, News, & Discussion] Xennet:
You are able to pass safetynet as such with exkernel or with magisk installed???

Or are you able to pass safetynet with exkernel + magisk and not with stock kernel + magisk???
[OnePlus 3T Guides, News, & Discussion] Yudh:
I am able to pass safety net

With

1) Ex kernel without magisk

2) patched stock with magisk

3)ex kernel with magisk

4)franco kernel with and without magisk

What i am asking is that can I somehow pass safety net with only patched stock kernel without magisk
[OnePlus 3T Guides, News, & Discussion] Xennet:
That's it...

Can pass safetynet with patched kernel or stock kernel with magisk...

But to pass safetynet with stock kernel and no magisk would be???

May be I will see what I can do to see if the stock kernel can be patched to remove the verified boot state...maybe...

But will that be enough to pass safetynet?? Will see...
[OnePlus 3T Guides, News, & Discussion] Xennet:
Can you just post the process/cmdline contents from:

1) exkernel with magisk

2) patched stock kernel with magisk
[OnePlus 3T Guides, News, & Discussion] Rodger_Rulez:
Hello)

[MENTION=7874870]Xennet[/MENTION]

Beta 37/28 already released

Waiting for update)
[OnePlus 3T Guides, News, & Discussion] Xennet:
Good to hear from more and users that this works!!!
[OnePlus 3T Guides, News, & Discussion] Xennet:
Refer to my thread here:

https://xdaforums.com/oneplus-3t/how-to/rom-dm-verity-force-encryption-disabled-t3618232

Read the post 2...

There is no need to downgrade but it just involves flashing of firmwares...no downgrading..
[OnePlus 3T Guides, News, & Discussion] crian:
thanks for your awesome work.

did a complete wipe and clean flash. and what can i say, im decrypted.
[OnePlus 3T Guides, News, & Discussion] M7ammad.eb:
Well, first of all, thank you for this method, it worked for me flawlessly, my dm-verity was triggered so I used this method you mentioned earlier, and then flashed SuperSU and my dm-verity is good to go.

I actually only have one question, what does this dm-verity do other than that silly message shown every boot (which doesn't annoy me that much)?

And thanks again.
[OnePlus 3T Guides, News, & Discussion] isoladisegnata:
A little info..when I format user data I get less GB in SD card....for example 22 GB on 30..

Has anyone this problem? And how Can I solve ?
[OnePlus 3T Guides, News, & Discussion] Droidcore:
Format data using fastboot?

Same , but after install twrp and format data from twrp my internal back to normal ,

---------- Post added at 01:28 PM ---------- Previous post was at 01:27 PM ----------

Follow instruction from [MENTION=4561671]Chuck Bartowski[/MENTION] work fine , stay unencrypted (y) ?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Unless the TWRP Tree is updated to the OREO Branch I will not officially recommend that in this thread and may lead to data loss. So for the time being format via adb unless TWRP is updated to the OREO tree.
[OnePlus 3T Guides, News, & Discussion] crian:
I formated data on TWRP because if you are doing this via fastboot, data is converted to f2fs.

So I changed it to ext4 via TWRP and all is working fine.
[OnePlus 3T Guides, News, & Discussion] Xennet:
No harm done by triggering it technically...
[OnePlus 3T Guides, News, & Discussion] isoladisegnata:
So..you tell that after formatted via fastboot with command "fastboot format user data" ..I Need format data in twrp again?
[OnePlus 3T Guides, News, & Discussion] Xennet:
No need for that...

I have answered that question already..

For the time being use adb to format user data until TWRP gets OREO tree update..

And for your query,

Try formatting once again and see ...
[OnePlus 3T Guides, News, & Discussion] Droidcore:
I get that problem while flash Oos N , because i want unencrypted ,

Just follow [MENTION=7874870]Xennet[/MENTION] instruction :) ,

If you follow correct procedure you will be fine :)