+353 897002291

+353 897005369

install TWRP in OnePlus 2

Disclaimer: By attempting any of the processes listed in this thread you accept full responsibility for your actions. I will not be held responsible if your device stops working, catches fire, or turns into a hipster and claims to have been modified before it was cool.

Index

1. Drivers Installation (Oneplus Two, Fastboot & ADB)

2. Unlock Your Bootloader

3. Boot Into Custom Recovery (TWRP) On Your Device

4. Make A Nandroid Backup With TWRP Recovery

5. How To Root Your Stock Rom

6. Making EFS Backup and Backup of Other Partitions

7. Flashing Custom Recovery (TWRP)

8. How To Install A ROM with TWRP Recovery

9. How To Install A Custom Kernel With TWRP Recovery



DRIVERS INSTALLATION GUIDE (WINDOWS)

In order to Root or Install Custom Recovery on your Oneplus Two, you need to have the right set of Drivers to help your computer recognize your device.


Install the driver setup file provided below and you won’t need to go device manager either to manually install the driver

Download OnePlus 2 Toolbox (Credits: @waicool20 & @XQ55)

Download the file (OnePlus_USB_Drivers_Setup.exe) and install.

Go through the setup, and when done, restart your PC. Connect your OnePlus 2 to PC and is shall recognize it.


Set Up Fastboot & ADB Drivers:

What’s ADB? ADB stands for Android Debug Bridge. It works when the device is powered on and booted into OS or Recovery. The tool helps in sending basic linux commands, and a variety Android specific commands from PC to connected Android devices.

What’s Fastboot?Fastboot works only in bootloader/fastboot mode. It allows you to re-flash system partitions on your Android device and requires a device with an unlocked bootloader. It’s particularly useful when you want to update your device manually or in a rare situation when you accidentally soft-brick your device and need to install a clean stock system image.


Thanks to XDA member Snoop05 who has developed a small program to quickly install both ADB and Fastboot files on your PC (system-wide) along with proper drivers.


Downloads and installation instructions below:


HOW TO SETUP ADB AND FASTBOOT IN 15 SECONDS

Download 15 seconds ADB Installer (9.1 MB)


Filename: adb-setup-1.3.exe

1. Download the adb-setup-1.3.exe file from the download link above.

2. Double-click/Run the adb-setup-1.3.exe file.

3. You will see a command prompt window with blue background. Say YES to all the prompts on this screen.
└ To say YES, just typeYand hit enter.
1.jpg
Once ADB, Fastboot and Drivers are installed, the setup window will automatically close and you’ll have a working ADB and Fastboot setup throughout your system.

2. Unlock Your Bootloader

Backup important files stored on your OnePlus 2 before proceeding with the steps below, as unlocking the OnePlus 2 Bootloader will completely wipe/delete all files on the device.

After the installation of drivers (OnePlus 2, Fastboot & ADB drivers) follow the below to proceed with Unlocking the Bootloader of your Oneplus Two

1. Enable USB Debugging:

§ Go to Settings > About phone, and then tap ‘Build number’ 7 times or until you get the message ‘You’re now a developer!’.

§ Go back to Settings, choose ‘Developer options’. Find the ‘USB debugging’ option and use this toggle button to enable it. Accept warning by tapping on OK button.

Also in the ‘Developer options’. Find the ‘OEM Unlocking’ option and use its toggle button to enable it. It asks for your PIN/Screen unlock code, type it. Then accept the warning by tapping on OK button. (Oxygen 2.0.1 onwards)


2. Connect your OnePlus 2 to PC now. You will get a pop-up as shown below on your phone when you connect for the first time after enabling USB debugging. Select ‘Always allow from this computer’ checkbox and then tap on OK button. (You may or may not get this prompt)
3.jpg
Boot your OnePlus Two into Bootloader/Fastboot mode. (Make sure you have backed up all important data as you’ll lose everything on phone in the steps below.)

Connect your OnePlus Two — in Bootloader mode — to PC. Let the driver install.

Open a command window on your PC. For this:

Open any folder on PC. Now, left click on empty white space inside the folder.

Hold shift key, right click on empty white space to get a pop-up as shown below.

Choose Open command window here option from that.
2.jpg
You will see a command window open up, with location directed to unlock folder.

Power off your phone then boot into fastboot mode (power + volume up).
Connect your phone to your PC via usb cable.


Confirm whether fastboot is working. With OnePlus 2 connected to PC, run the following command in command window.


Code:

fastboot devices


It should return your device serial number, if not you need to make sure your drivers are installed correctly.
4.jpg
Once you've confirmed your fastboot connection to unlock the bootloader use:

Code:

fastboot oem unlock



The device will now go through the automated unlocking process, just let it do its thing and it'll boot up into Android.
5.jpg
You’ll see a new screen on your device. ChooseYes using Volume button specified and then use Power button to confirm it.

That’s it. The device will reboot automatically.

To confirm unlock status, reboot into bootloader/fastboot mode and you shall see the text unlocked now.

Code:

fastboot oem device-info



It should have a couple of lines there, both with the flag set to true.
6.png
2. How To Install A Custom Recovery On Your Device


Downloads


OnePlus 2 TWRP Recovery | File: Recovery TWRP.img (25.3 MB)

SuperSU


PS: Don’t try this on OnePlus One any other device whatsoever!


> Enable USB debugging from developer options once again.


> Download the TWRP recovery file (Recovery TWRP.img) and SuperSU root package file from above.


> Transfer the root package file (SuperSU) to OnePlus 2.


> On PC, rename the TWRP file to this name: op2-twrp.img


> Boot your OnePlus 2 into bootloader mode. Just follow the first paragraph there. (Make sure you have backed up all important data as you’ll lose everything on phone in the steps below.)


> Connect your OnePlus 2 — in bootloader mode — to PC. Let the driver install.


Open a command window on your PC in the folder where you have the op2-twrp.img file.

You will see a command window open up, with location directed to folder where you have the op2-twrp.img file.


Let’s confirm whether fastboot is working. With OnePlus 2 connected to PC, run the following command in command window. You should get a serial no. with fastboot written after it. If not, you need to reinstall the fastboot drivers from above.

fastboot devices

> Flash TWRP recovery on your OnePlus 2 by running the following command.

fastboot flash recovery op2-twrp.img

> Boot TWRP recovery on your OnePlus 2 now. It is recommended that you do this manually by unplugging the usb cable and then pressin POWER + VOL down until the device boots. When the Oneplus logo shows up, relese the POWER and keep holding down VOL DOWN until TWRP boots. Don't boot the OS on the phone as it will overwrite the recovery
Screenshot_2015-08-19-14-39-05.png
4. How To Root Your Stock Rom

To Root OnePlus 2 > tap on Install menu, and then browse and select your SuperSU > Swipe to confirm the flash
Screenshot_2015-08-19-15-08-22.png Screenshot_2015-08-19-15-09-00.png

Once Done > Wipe Dalvik & Cache > Reboot System To Restart

To Confirm the root status using a root checker app from play store
Screenshot_2015-08-19-17-44-23.png Screenshot_2015-08-19-17-44-56.png

4.
How To Make A Nandroid Backup With TWRP Recovery

A nandroid backup is a very important thing to have before installing any custom software on your device. It's basically a backup of your stock system that you can fall back on if anything goes wrong or if you just want your stock ROM back. You can also use the backup tool to create a backup of your favourite ROM set up exactly the way you like it. The backup you create can be easily restored using the restore tool in TWRP recovery.

All you need to do is enter TWRP recovery, select the backup option from the TWRP home screen, check the system/data/boot boxes, and swipe to backup. The process will take a few minutes.
Screenshot_2015-08-19-14-39-05.png Screenshot_2015-08-19-14-53-24.png Screenshot_2015-08-19-14-55-13.png

MOD-EDIT: The boot command was wrong, so that is now fixed
 

Attached Files:

Last edited by a moderator: Tuesday at 9:24 AM
Time2, Patman75, Accolon and 88 others like this.

Naman Bhalla

Naman Bhalla Level: KitKat

Making EFS Backup and Backup of Other Partitions

Step 1 :- Download Partitions Backup And Restore App from here :- https://play.google.com/store/apps/details?id=ma.wanam.partitions


Step 2 :- Open the app and grant it root access.


Step 3 :- Click On the Settings icon above and select preference to .img


Step 4 :- Select the partitions marked in yellow and backup them by clicking on the download like button at the bottom right.


Step 5 :- Go to the storage and search for the Partitions Backup folder.There you will three .img files (modem,modemst1,modemst2) . Save them to your cloud and as many places as you want as they are very important files.

This way you can backup all other partitions too .. (I recommend backing up all those that are not found in a factory image (See OPO factory image for that)





Flashing Custom Recovery (TWRP)


METHOD 1

1. Put the recovery you downloaded in the step 3 in your device ....

2. Download Flashify app from here :-https://play.google.com/store/apps/details?id=com.cgollner.flashify

3. Open it and Grant Root Access

4. Click on "Recovery image"

5. Click "Choose a File"

6. Select the recovery image.

7. Click Yup!

8. Reboot

Done !!!


METHOD 2

1. Put the recovery image you downloaded in Step 3 into any folder on PC.

2. Rename the recovery image to op2-twrp.img (Make sure you don't rename it as op2-twrp.img.img)

3. After completing above step,on your OnePlus Two,go into Settings -> About and find the Build Number and tap on it 7 times to enable developer settings.

4. Press back and go into Developer Options and enable USB debugging.

5. From your computer, in the folder you placed the recovery, open a command prompt (Shift+Right Click anywhere in the folder -> Open command window here) .

6. Type:


Code:
	adb reboot bootloader

Press Enter

7. The phone would now be in the fastboot mode.

8. In the command prompt,now type :


Code:
	fastboot flash recovery op2-twrp.img

Press Enter

9. In the command prompt,now type :


Code:
	fastboot reboot

Press Enter

DONE!!!!



How To Install A ROM with TWRP Recovery

Installing a ROM is a pretty straight forward and easy process. Before you install anything you should make a nandroid backup (instructions above).

-Perform a full wipe.


-Select the wipe option from the TWRP home screen.

-Select advanced wipe.

-Check the Dalvik, System, Data, Cache Options.

-Swipe to Wipe.


-Install the ROM.


-Select the install option from the TWRP home screen.

-Navigate to where you have the ROM zip stored on your sd card and select it.

-Swipe to install.


-You will also need to install the appropriate gapps package directly after installing the ROM.

-Once you've installed all necessary zips you'll have an option to wipe cache/dalvik and an option to reboot system. Wipe the cache/dalvik, hit the back button, and hit the reboot system button.





How To Install A Custom Kernel With TWRP Recovery


A custom kernel can open up a new level of control over your device, such as overclocking/underclocking, undervolting, changing governors, changing I/O schedulers, adjusting colour calibrations, adjusting sound calibrations, and many other options.

-Download a kernel that is compatible with your current ROM.

-Enter TWRP recovery.

-Select the install option from the TWRP home screen.

-Navigate to the kernel and select it.

-Swipe to install.

-You'll have an option to wipe cache/dalvik and an option to reboot system. Wipe the cache/dalvik, hit the back button, and hit the reboot system button.


Once your phone has booted up you can use a kernel tuning app to change governors, I/O scheduler, clock speed, and other options. Some of the popular kernel apps are Trickster Mod, No Frills, Kernel Tuner, Kernel Auditor, and many more.