1
[Guide] Back to Stock all in one - enable dm-verity, lock bootloader, flash latest OOS

  1. roor7
    Honeycomb Apr 2, 2018

    roor7 , Apr 2, 2018 :
    I wanted to create a guide which is as simple as rooting a OnePlus 3T. I don’t know if it will work with the OnePlus 3. I’m not responsible for anything. You’re doing it on your own risk, so only do it if you know what you will do, now! It may brick your device.

    This is the way it worked for me. I do not guarantee it will work for you!

    READ THE WHOLE INSTRUCTIONS FIRST BEFORE YOU DO ANYTHING

    What we do:
    - Flash TWRP
    - Flash an old version of OOS
    - Enable dm verity
    - Relock the bootloader
    - Flash the latest stock rom

    What you need:
    - Computer (Windows 7 or 10)
    - USB Cable
    - about 1 hour of your lifetime

    YOU WILL LOOSE ALL YOUR DATA - ALSO THE INTERNAL STORAGE WILL BE DELETED (pics, music and all the stuff stored there)​

    Download to your computer:
    Latest TWRP for OnePlus 3T
    https://build.nethunter.com/twrp/oneplus/

    and

    latest OOS from OnePlus for your 3T
    http://downloads.oneplus.net/

    THE USB DRIVERS MUST BE INSTALLED ON YOUR COMPUTER

    Download to the phone:
    4.0.2 OOS Stock rom
    http://otafsc.h2os.com/patch/amazon...s3TOxygen_28_OTA_039_all_1701140132_400a7.zip

    Flash TWRP:
    1. Boot your phone into fastboot mode (don’t connect to your PC yet!)
    2. Open CMD as Admin (Windows start-menu - type “cmd”, right-click, run as administrator)
    3. connect your phone
    4. rename the file to “recovery” (don’t type “recovery.img” manually, only “recovery”)
    5. type command “fastboot devices” -> device will be listed
    6. command “fastboot flash recovery C:\Users\...\recovery.img” (the path where it’s stored)
    7. done -> boot to recovery
    8. disconnect your phone - leave CMD open

    Flash OOS 4.0.2
    1. Go into TWRP
    2. wipe “System, Data, Cache, Dalvik”
    3. Install OOS 4.0.2
    4. reboot into fastboot

    Enable dm-verity:
    1. connect your 3T when it’s back in fastboot
    2. type in CMD “enable dm-verity”
    3. done - keep CMD open and the phone connected

    Relock the bootloader:
    1. type in CMD “fastboot OEM lock”
    2. Warning message on your phone will pop up -> choose “yes” on your phone by using the volume buttons to lock the bootloader (keep CMD open)

    Update to the newest OOS via “sideload”:
    1. VOL down to boot into recovery
    2. choose “Install from ADB”
    3. “Upgrade Android from USB?” -> “Ok”
    4. rename the OOS zip file to "update"
    5. type in CMD “adb sideload C:\Users\...update.zip”
    6. done
    7. reboot the device - it will take about 10 minutes, DO NOT INTERRUPT THE PROCESS

    Finish :)

    Take your time! Don't do it if you're in a rush.

    Please give me feedback if it worked for you or if I have to change something.
     

    #1
    Sun90 likes this.
  2. krzysztofwisniewski
    Cupcake May 30, 2019

    krzysztofwisniewski , May 30, 2019 :
    Hi,
    My phone is oneplus 3t pie 9.0.2 stable version
    I am unable to lock my boot loader.
    I do same thing as it is written on this post:

    Relock the bootloader:
    1. type in CMD “fastboot OEM lock”
    2. Warning message on your phone will pop up -> choose “yes” on your phone by using the volume buttons to lock the bootloader (keep CMD open)

    When I click yes my phone just restarts normally for some reasons
     

    #2
    Nick0669 likes this.
  3. Nick0669
    Donut Sep 23, 2019

    Nick0669 , Sep 23, 2019 :
    I have the same problem as well. mine is on 9.0.5
    were you able to fix it?
     

    #3