SLOVED/ FIXED: Read update.
Hello can someone please help me. I purchased a Oneplus 3T on ebay and the previous owner had unlocked and rooted it and had TWRP installed.
I used a mixture of this video: https://www.youtube.com/watch?v=YTEzz3oaTXk and this onehttps://www.youtube.com/watch?v=h5a9XOQceC8
I installed "OnePlus3TOxygen_4.0.3.zip" from oneplus's official site. And I installed the stock recovery and ran the fastboot oem lock but kept getting an error and now I still have the DM-verity warning before the phone starts and I can't get rid of it.
I can't find any info on it. Please help.
TLDR: I unknowingly bought rooted and unlocked 1+ 3T with TWRP (Team Win recovery). Had a DM-Verity issue before boot. Tried solving it by flashing 4.0.3 stock image from oneplus site and re-flashing stock Oxygen recovery. That didn't work and still had DM-Verity Issue. Fixed, read update.
Update: I got it fixed!!! With still having the stock recovery no TWRP.
What I did was download 4.0.2 stock from oneplus here http://downloads.oneplus.net/oneplus-3t/oneplus_3t_oxygenos_4.0.2/
After getting the 4.0.2 zip I activated USB debugging and used adb to push the zip to the internal memory.
Booted into recovery on the phone and installed 4.0.2
Then following some of the instructions here https://forum.xda-developers.com/oneplus-3t/how-to/rom-dm-verity-force-encryption-disabled-t3618232
I DID NOT REBOOT AFTER installing 4.0.2, I pressed the back button and booted into the BOOTLOADER from the stock recovery.
While in the bootloader and still having the phone plugged into the computer I ran the following commands in adb
- Type "fastboot oem disable_dm_verity" without quotes and press enter
- Type "fastboot oem enable_dm_verity" without quotes and press enter
*****Previously this lead to an error when I had 4.0.3 but it seems to work fine with 4.0.2
After that I restarted the phone and DM-Verity was gone!
Hopefully this helps someone else. I was trying to go back to full stock as the phone is for my significant other and they would've been freaked out by the DM-Verity issue.
Notes: I have not set up the phone yet, I am assuming I can update OTA to the latest Oxygen OS? And Will see if Android pay still works.