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

SOURCE : OnePlus L2 Support Team

VERSION : OxygenOS 3.0.2

DOWNLOADS

1. OnePlus2 Stock Reset Oxygen 3.0.2 Google Drive | Mediafire

2. Qualcomm Drivers Version 1.00.14 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.19_160604" and "qc"

A. Install the Certificates followed by the Qualcomm drivers.

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

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

3. When setup completes, launch Command Prompt as an Administrator and type bcdedit /set testsigning on

4. Restart your computer. (Once it gets on, you should see a watermark stating Test Mode in the bottom right corner. If not, type bcdedit in Command Prompt as an Administrator to check if testsigning shows on. If not, repeat step 3.)

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.19_160604 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 3).

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.

6. Launch Command Prompt as an Administrator and type bcdedit /set testsigning off and reboot. Your system should no longer be in Test Mode.

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=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.