[OnePlus 2 General] fareed_xtreme:
OFFICIAL ONEPLUS 2 STOCK RESET​

SOURCE : OnePlus L2 Support Team

VERSION : OxygenOS 2.2.0

DOWNLOADS

1. OnePlus2 Stock Reset Oxygen OS 2.2.0 Google Drive | Mediafire

2. Qualcomm Drivers Version 1.00.11 Google Drive | Mediafire

INSTRUCTIONS

You are doing this on your own responsibility. I take no responsibility whatsoever.

(THIS WILL WIPE YOUR ONEPLUS INCLUDING INTERNAL SD)

Download both the files from above and extract them (WinRAR, WinZIP, 7ZIP etc). You should have 2 folders: "OnePlus2_14_A.11_151211" and "qc"

A. Install the Certificates followed by the Qualcomm drivers.

1. Restart your computer with Driver Signature Enforcement Disabled (Advanced Startup) Let me Google it For You

2. Open the folder "qc" and install the Test Certificate in the following Stores: Trusted Root, Trusted Publisher, Third-Party Root and Personal

3. Run the Qualcomm setup wizard (also located in the qc folder)

4. When completed, restart your PC again with Driver Signature Enforcement Disabled (Advanced Startup)

5. Turn off your phone and disconnect the USB cable from the phone.

6. Hold vol-up and plug in the USB(Do not press Power button). The screen will stay black but you will hear a sound from windows that a device is attached.

7. The driver should now automatically install. If not, go to device manager and right click "Unknown Device" and click "Update Driver" Search up the QC folder and press ok. The driver should now install. (Got the RELINK issue? Take a look here: http://xdaforums.com/show...1&postcount=46)

B. Flashing Process

1. Open the OnePlus2_14_A.11_151211 folder and open "MSM8994DownloadTool.exe"

2. Look if your phone is detected in the list. everything is Chinese but you will see one row with different chinese text from the rest within the list. If not, recheck if driver is detected in Device Manager (If not, go back to Step A - Line 4).

3. First click the right square Chinese button. This will perform an integrity check on the downloaded files by verifying the MD5 hash values.

4. The system will seem to hang for a bit but should give you a pop up with the results of the above verification. When everything is ok. Press the start button. and let the progress finish. (If something is not ok, you will have to re-download the images. Google Drive can help extract only the necessary files.)

5. When it's done. Disconnect the USB cable and turn on the device.

C. Reset TAMPER Flag (Optional)

(This may potentially change your SmartPhone to a rather large paperweight and I will just laugh at you bearing no responsibility)

+ This part of the guide is not an Official Procedure and is in no way affiliated to OnePlus

+ It is advisable to do this before any of the above mentioned operations.

+ Prerequisites:

Root

HEX Editor with root features

Root File Manager

+ BEWARE: You are modifying partitions which cannot be restored regardless of what you flash. You have been warned AGAIN

1. In File Manager browse to the devinfo partition (dev/block/bootdevice/by-name/)

2. Open devinfo using the HEX Editor.

3. Modify the TamperBit (attached screenshot) from 01 to 00.

4. Save and reboot to fastboot.

5. Type fastboot oem device-info to confirm.

CREDITS

OnePlus Team for the Files.

[MENTION=3062786]paultje162[/MENTION] for adaptation of Instructions. Refer his thread here if you are looking for an older version of stock reset (2.1.1).

[MENTION=5549875]thedropdead[/MENTION] for his work on Tamper Reset

If this thread has helped you, do press the THANKS button. Should you have issues, questions or doubts, write in this thread.