[OnePlus 3] How to Unlock Bootloader, Flash TWRP, Root, Nandroid Backup and More !

Naman Bhalla

Senior Member
Jan 1, 2014
1,166
3,051
0
22
Here is the OxygenOS 3.1.2 Full Zip :-
https://www.androidfilehost.com/?fid=24591020540821926
Probably just clean flashing it alone might bring back stock recovery which can further be backed up.
Just clean flash it (backup apps using Titanium Backup Pro, wipe dalvik, system, data, cache and flash and then reboot and restore apps via Titanium Backup Pro)

Sent from my OnePlus2 using XDA Labs
 
Last edited:

mauronofrio

Recognized Developer
Jun 29, 2012
4,358
13,419
263
24
Castellana Grotte
toolaio.tk
Here is the OxygenOS 3.1.2 Full Zip :-
https://www.androidfilehost.com/?fid=24591020540821926
Probably just clean flashing it alone might bring back stick recovery which cab further be backed up.
Just clean flash it (backup apps using Titanium Backup Pro, wipe dalvik, system, data, cache and flash and then reboot and restore apps via Titanium Backup Pro)

Sent from my OnePlus2 using XDA Labs
i search in that zip i didnt find recovery
 

UnnamedFile

Member
Jul 19, 2015
22
4
0
There is no recovery and why is it even needed though?
My thought behind that was the possibility to restore the phone completely to stock form, being able to relock the bootloader and have only the original software on it. But since OP released the stock recovery for all their previous devices, I think it will be available for OPT as well.

[QUOTE As far as I know, you can flash OTA from twrp unless you are rooted.[/QUOTE]
So when you're rooted, is there a way to flash the firmware to an updated version without losing all data on the device? I still haven't completely understood that point yet (which is basically what prevents me from starting the procedure of setting it up, since my main concern is about having root while being able to get new firmware releases without having to backup/restore the whole phone).
 

Naman Bhalla

Senior Member
Jan 1, 2014
1,166
3,051
0
22
My thought behind that was the possibility to restore the phone completely to stock form, being able to relock the bootloader and have only the original software on it. But since OP released the stock recovery for all their previous devices, I think it will be available for OPT as well.

[QUOTE As far as I know, you can flash OTA from twrp unless you are rooted.
So when you're rooted, is there a way to flash the firmware to an updated version without losing all data on the device? I still haven't completely understood that point yet (which is basically what prevents me from starting the procedure of setting it up, since my main concern is about having root while being able to get new firmware releases without having to backup/restore the whole phone).[/QUOTE]
Just flash the updated full ROM zip using TWRP. No data etc will be lost. Internal storage is never gone and if you want to wipe apps and app data, you can backup them using Titanium Backup Pro

Sent from my OnePlus2 using XDA Labs
 

PhoenixAG

Senior Member
Jul 25, 2006
254
22
0
Hi Naman,

I unlocked, flashed twrp and rooted using your guide. Phone works fine. The first time I flashed recovery, it didn't stick and it kept taking me back to the stock recovery.

I had to flash it a second time and rooted. Haven't checked if it has stuck for now but everything works fine. I get the "this phone isnt trusted anymore" messages too when I start up.
 

Ravikirancg

Senior Member
May 3, 2012
778
1,112
0
Bangalore
Ok.. I just had a very very odd experience.. I just received my device a few moments ago. I wanted to unlock it initially itself so that I wouldn't have to go through the setup all over again.. I went ahead and did the standard stuff. Once I unlocked and it rebooted itself, instead of the expected android welcome screen, I got a very strange screen. It was completely dark with one input which asked for a password. Other than that it would let me make emergency calls. That did not make sense. The phone was supposed to have been factory reset. And moreover, I never even setup a password. I restarted the phone a couple of times. The issue still persisted. I freaked out a bit and decided to try and lock it back. Once I locked it back and rebooted, it worked just fine. I wanted to get a pic of this to post here so I figured I would unlock it again. But this time, the unlocking went just fine. I just booted back into android setup.

Has this happened to anyone else? Do you know what happened? And why the unlocking worked just fine the second time but not the first?
 

HatRiGt

Senior Member
May 28, 2013
969
601
123
Chennai
Here is the OxygenOS 3.1.2 Full Zip :-
https://www.androidfilehost.com/?fid=24591020540821926
Probably just clean flashing it alone might bring back stock recovery which can further be backed up.
Just clean flash it (backup apps using Titanium Backup Pro, wipe dalvik, system, data, cache and flash and then reboot and restore apps via Titanium Backup Pro)

Sent from my OnePlus2 using XDA Labs
Shall I flash it as update over stock rom?
Or I hav to wipe ol and flash this?
 

City Slicker

New member
Jun 17, 2016
2
0
0
Recovery and rooting failure

I've been thru the recovery image installation/rooting process described at the top of the thread and it's ended in tears.

The critical piece of information is that if you opted to start your phone with a pin number, this probably encrypts the phone - I say probably because at the moment I'm waiting on a stock rom and recovery to test whether the phone is supplied encrypted (as some other posts here and elsewhere suggest) or whether it is at that point in the initial setup this takes place.

Any way round, TWRP recovery prompts for a password to the encrypted part of the system -this is not the PIN numbers typed when setting up. Without the PIN you can't proceed to root the phone or install zips .

So at this point I had a phone with stock rom, custom recovery not working, and a normal boot which demanded a password when os was loaded - the same problem as in TWRP recovery.
I was still able to fastboot though, so I re-locked the bootloader with the 'fastboot oem lock' command. I was then able to boot normally.

In the absence of a stock rom for the phone, first I used 'fastboot oem unlock' to unlock bootloader again, I wiped the user partition by starting TWRP and using it in read only mode, from which I was able to use the advanced wipe functions. TWRP then functioned properly without demanding a password. I used adb sideload to install CM13, gapps and supersu with commands like 'adb sideload D:\Data\Desktop\cm-13.0-20160614-UNOFFICIAL-oneplus3.zip'.

My phone is now rooted but with an OS I didn't particularly want. I'm currently waiting for OP tech support to hold my hand to restore the stock firmware (they kindly sent this to me in a password encrypted zip file in prep for the ts call, so at the moment I can't pass this along). Will keep you posted.

---------- Post added at 12:29 PM ---------- Previous post was at 12:23 PM ----------

Here is the OxygenOS 3.1.2 Full Zip <snip>
Thanks for posting this, just what I have been looking for. OP tech support sent me a stock rom titled 'OnePlus3_16_A.07_160606.rar' which is earlier than the one you have.
 

Naman Bhalla

Senior Member
Jan 1, 2014
1,166
3,051
0
22
I've been thru the recovery image installation/rooting process described at the top of the thread and it's ended in tears.

The critical piece of information is that if you opted to start your phone with a pin number, this probably encrypts the phone - I say probably because at the moment I'm waiting on a stock rom and recovery to test whether the phone is supplied encrypted (as some other posts here and elsewhere suggest) or whether it is at that point in the initial setup this takes place.

Any way round, TWRP recovery prompts for a password to the encrypted part of the system -this is not the PIN numbers typed when setting up. Without the PIN you can't proceed to root the phone or install zips .

So at this point I had a phone with stock rom, custom recovery not working, and a normal boot which demanded a password when os was loaded - the same problem as in TWRP recovery.
I was still able to fastboot though, so I re-locked the bootloader with the 'fastboot oem lock' command. I was then able to boot normally.

In the absence of a stock rom for the phone, first I used 'fastboot oem unlock' to unlock bootloader again, I wiped the user partition by starting TWRP and using it in read only mode, from which I was able to use the advanced wipe functions. TWRP then functioned properly without demanding a password. I used adb sideload to install CM13, gapps and supersu with commands like 'adb sideload D:\Data\Desktop\cm-13.0-20160614-UNOFFICIAL-oneplus3.zip'.

My phone is now rooted but with an OS I didn't particularly want. I'm currently waiting for OP tech support to hold my hand to restore the stock firmware (they kindly sent this to me in a password encrypted zip file in prep for the ts call, so at the moment I can't pass this along). Will keep you posted.

---------- Post added at 12:29 PM ---------- Previous post was at 12:23 PM ----------



Thanks for posting this, just what I have been looking for. OP tech support sent me a stock rom titled 'OnePlus3_16_A.07_160606.rar' which is earlier than the one you have.
Yes. Oneplus 3 comes encrypted by default and do decrypt it, you need to fastboot format userdata

Sent from my OnePlus2 using XDA Labs
 

HatRiGt

Senior Member
May 28, 2013
969
601
123
Chennai
Here is the OxygenOS 3.1.2 Full Zip :-
https://www.androidfilehost.com/?fid=24591020540821926
Probably just clean flashing it alone might bring back stock recovery which can further be backed up.
Just clean flash it (backup apps using Titanium Backup Pro, wipe dalvik, system, data, cache and flash and then reboot and restore apps via Titanium Backup Pro)

Sent from my OnePlus2 using XDA Labs
It's more than 1Gb.. Wats in it?
 

City Slicker

New member
Jun 17, 2016
2
0
0
Yes. Oneplus 3 comes encrypted by default and do decrypt it, you need to fastboot format userdata

Sent from my OnePlus2 using XDA Labs
I've now reflashed using the file 'OnePlus3Oxygen_16_OTA_008_all_1606122244_e0cfc5ffc8bf411a.zip'. The device is encrypted by default, but this did not prevent me from rooting the phone using the procedure in this post.

What caused my problems is having a pin registered at boot up. This would have been set when I set lock screen PIN and checked 'Require PIN to start device'.

The fact that this wasn't set this time round solved my issues. I am informed that if you want to remove this protection, you can change the lock screen security to 'none', repeat the procedure to use a PIN, this time you decline the additional security step.

Still waiting for news regarding OP tech support. Don't need it but I'd like to unlock their stock image for everyone's benefit in case it has some nice goodies in it (stock recovery.img anyone?)
 

Naman Bhalla

Senior Member
Jan 1, 2014
1,166
3,051
0
22
I've now reflashed using the file 'OnePlus3Oxygen_16_OTA_008_all_1606122244_e0cfc5ffc8bf411a.zip'. The device is encrypted by default, but this did not prevent me from rooting the phone using the procedure in this post.

What caused my problems is having a pin registered at boot up. This would have been set when I set lock screen PIN and checked 'Require PIN to start device'.

The fact that this wasn't set this time round solved my issues. I am informed that if you want to remove this protection, you can change the lock screen security to 'none', repeat the procedure to use a PIN, this time you decline the additional security step.

Still waiting for news regarding OP tech support. Don't need it but I'd like to unlock their stock image for everyone's benefit in case it has some nice goodies in it (stock recovery.img anyone?)
It not only has stock recovery.img but a hard brick unbrick tool too. ;)

Sent from my OnePlus2 using XDA Labs
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone