Dhaka Mobile

Dhaka Mobile (http://dhakamobile.com/index.php)
-   Android (http://dhakamobile.com/forumdisplay.php?f=500)
-   -   [OnePlus 3] How to Unlock Bootloader, Flash TWRP, Root, OS (http://dhakamobile.com/showthread.php?t=108381)

Ka N oK 10-11-16 04:49 PM

[OnePlus 3] How to Unlock Bootloader, Flash TWRP, Root, OS
ADB and Fastboot Installation

1. Download the ADB For Windows from here :- adb-setup-1.4.3.exe
2. Run the .exe file downloaded from above as Administrator.
3. Press 'Y' every time the installer asks for.
4. Continue Driver Installation.

Now,ADB and Fastboot have been installed on your PC. Great !


Download a custom recovery and the SuperSU zip below. Place both files on the desktop.



1. Unlocking Bootloader

Turn the phone off. Then boot it into fastboot mode by holding volume up + power. The phone will display "fastboot" text indicating that it has successfully entered fastboot mode.
Plug the phone into your PC, then open a command prompt window on the desktop (Shift + Right Click -> Open Command Window here) and type :-
fastboot devices
This command will list the connected devices. If your phones serial number shows up you are good to go and may continue. If the phone is NOT listed this indicates that your drivers are not installed correctly. In order for you to continue you must fix your drivers so that your phone is listed under fastboot devices.
If the phone has been recognized by the command above, proceed to unlocking the bootloader with the following command: Remember that this step will/should wipe EVERYTHING off the phone
fastboot oem unlock
After the above command has finished excuting, run the following
fastboot reboot

Now, your phone will reboot. Continue to the next step to install Custom Recovery ...

Wait until the phone has fully booted up into android, then adjust the following settings on the phone:
USB Debugging - On your phone go to Settings > About phone > Tap on Build number 7 times. This will enable Developer options. Now go back to Settings > Developer options > Enable USB debugging
Enable OEM Unlocking - On your phone go to Settings > Developer options. Then enable the 'OEM Unlocking' option. Also,a free advice, make sure that from now on,OEM unlocking option is enabled before you reboot. Sometimes,it might get disabled itself. [Most probabaly,it will already be enabled as you did it above.Then,NO NEED to disable and enable it.]
Enable Advanced Reboot - On your phone go to Settings > Developer options. Then enable the 'Advanced Reboot' option.

2. Flashing TWRP

Turn the phone off. Then boot it into fastboot mode by holding volume up + power.
Rename the recovery file that you downloaded above to recovery.img. *Make sure that you rename it to recovery.img NOT recovery.img.img* ,Make sure that this file is placed on the desktop.
Open a new command prompt on desktop and run the following commands:
fastboot flash recovery twrp.img
Once the flash has completed, Don't use the "Fastboot Reboot" Command Instead Unplug Your phone then Manually boot it into recovery by keeping Power + Volume Down button pressed.
In TWRP, select Reboot and then select System. Now your phone will boot into System and you have cleared Steps 2/3 . Grats.

So, now, time has come to do what we want to achieve through all this. The 'ROOT' . Keep following .

But,before that, take a Nandroid Backup.

Ka N oK 10-11-16 04:50 PM

Re: [OnePlus 3] How to Unlock Bootloader, Flash TWRP, Root, OS
4. Rooting

Now that your phone has an unlocked bootloader and a custom recovery installed, you have two options to gain root (Pick one or the other. You don't need to do both. ).

Option A) Flash SuperSU binaries which will give you root with the stock ROM
Confirm that you have downloaded the SuperSU zip from the downloads section above. Connect OP3 to PC and send SuperSU to your phone.
Turn the phone off. Then boot into recovery mode by holding volume down + power. Leave the phone at the main screen of the custom recovery for now.
Install > browse to SuperSU zip and select it
Swipe to confirm the installation. Then reboot.

Option B) Flash a custom rom which will come pre-rooted
Note that not all custom roms will be pre rooted, however the majority of them are. Read the OP of the ROM thread to see what the verdict is.
Copy a custom rom (you can find these in the OnePlus 3 ROMs, Kernels, Recoveries, & Other Development section of XDA or Custom OP3 Software section on OnePlus Forums) onto the phone (remember the location of where you copy it to)
Turn the phone off then boot into recovery mode by holding volume down + power. To install a custom ROM the general procedure to follow is: wipe Dalvik + System + Data + Cache, flash ROM, flash GApps.
Wipe > Advanced Wipe > Select Dalvik + System + Data + Cache > Swipe to Wipe
Install > browse to the location where you previously copied the ROM zip and select it > Swipe to confirm the installation
Install GApps using same process as ROM, then reboot.

Keep in mind that the first boot after installing a custom ROM & wiping the phone may take longer than usual, as the phone will need to rebuild the dalvik cache and initialize other first boot stuff.

Congrats! That is all! Your phone now has an unlocked bootloader, a custom recovery installed and is rooted. Enjoy !

The very first thing we highly recommend you to do now is to take EFS Backup and save it at your cloud and PC. It is very very important.

Ka N oK 10-11-16 04:53 PM

Re: [OnePlus 3] How to Unlock Bootloader, Flash TWRP, Root, OS
5. Making an EFS Backup

All too often, we've seen folks who have a corrupted or missing EFS Partition. This results in your IMEI being lost and no cellular activity on the device at all. This can be a royal PITA to fix, and some folks haven't been able to fix it at all. You can take a precautionary measure to safeguard yourself against this by taking a couple of minutes to back up your modemst files.

1. Open up Terminal Emulator on your phone (if you don't have it you can download it here).
2. Once it's open you'll be greeted with a command line prompt, in which you can enter text commands, the first thing you need to do is enable root access by entering this line (press the enter key on your on-screen keyboard after each command to issue it):

If this is the first time you've used Terminal Emulator a Superuser or SuperSU popup will appear, make sure you grant root access.

3.Now enter these two commands:

dd if=/dev/block/sdf1 of=/sdcard/modemst1.bin bs=512

dd if=/dev/block/sdf2 of=/sdcard/modemst2.bin bs=512

This will place two files (modemst1.bin & modemst2.bin) on your internal storage. Make sure you copy them to your PC and other Clouds immediately so that you have a backup there to use if you need to restore it in future.

That's it !! Incase you ever need to restore Nanroid or EFS Backups, continue.

Ka N oK 10-11-16 04:55 PM

Re: [OnePlus 3] How to Unlock Bootloader, Flash TWRP, Root, OS
7. Restoring an EFS Backup

If by chance you end up with a corrupt EFS partition all you need to do is flash the files back to your device using fastboot.

1.Boot into fastboot mode (power + volume up) and connect your phone to your PC via usb cable.
2.Keep modemst1.bin and modemst2.bin (backed up earlier) on your desktop and open command window there.
3.These fastboot commands will restore the files:

fastboot flash modemst1 modemst1.bin
fastboot flash modemst2 modemst2.bin
fastboot reboot
Now disconnect phone from PC. Hope your IMEI etc is back.

Ka N oK 10-11-16 05:01 PM

Re: [OnePlus 3] How to Unlock Bootloader, Flash TWRP, Root, OS
Flash Instructions

OnePlus 3 OxygenOS 3.5.3 Community Build
V3.5.3 Community Build (2016-09-28)

1.Download the software build for your device at the bottom of this page.
Make sure you have all necessary adb files installed on your computer.

2.Reboot your phone into recovery mode. To do this, shut down your device and turn it back on while holding the power and volume down buttons simultaneously.

3. Choose “Install from USB” option in the recovery screen, tap OK to confirm. A screen with “You are in sideload mode” will be displayed.
If you are not using the original Oxygen Recovery. View instructions for TWRP Recovery to flash OxygenOS Recovery .

4.Connect your device to PC/Mac, run following command in command prompt / terminal
For Windows: “adb sideload <filename>”
For Mac/Linux: “./adb sideload <filename>”

5.Wait a while, your phone should now update to the selected build and reboot automatically to take you into OxygenOS.

Device OnePlus 3
Version 3.5.3 Community Build
Update time 2016-09-28
File size 1.3 GB
MD5 hash a7001c76c5c4b23483bd8de24ac63ff7

All times are GMT +7. The time now is 02:50 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright DhakaMobile.com 2006-2016. All Rights Reserved.