how to root oneplus 5 unlock bootloader twrp
This post will guide you all the basic steps you need to unlock the bootloader of your OnePlus 5 and root. This guide may be applicable to other devices also, but you need to use different files mentioned on the post below.
Video Demo of this Post
Note
If you are rooting your OnePlus 5 first time then you need to unlock bootloader of your phone. This step will erase all the data on your phone. Be sure to take proper backup before you go ahead. Also rooting may damage or void your phone warranty (Not in the case of OnePlus devices). Try with your own risk.
Basic Requirement
This method needs adb and fastboot setup. You can either install minimal adb and fastboot or you can install complete Android Studio. For rooting purpose, minimal adb and fastboot is just enough. Follow this XDA Forum guide to install the minimal adb and fastboot setup.
- Minimal ADB/Fastboot Setup
- Or you can install Android Studio & SDK
Files Needed
You may need few files too. Get the required files from below. Also files are being updated frequently by developers, so do check with me if you are reading this post at later point of time.
- Magisk Manager 4.3.3
- Magisk v12.0
- TWRP, Download from official TWRP website or use "Official TWRP app" from Play Store
- Magisk Manager 4.3.3
- Magisk v12.0
- TWRP, Download from official TWRP website or use "Official TWRP app" from Play Store
Steps to Root your device
Its recommended to watch the video before you start rooting. Many important points and steps are explained in the video. Follow the below steps now,
- Enable OEM unlock and USB debugging:
- Go toSettings » About phone » and tap “Build number” Seven/Ten times.
- Go to Settings » Developer options » and look for “Enable OEM unlock” option, tick the checkbox next to it.
- Also enable the USB debugging checkbox.
- Now connect your phone to PC and open a command prompt window.
- If it asks for “Allow USB debugging”, accept it by selecting OK/Yes
- Once you are in bootloader, check the device connection status by using fastboot devices command as below,
- Now type the OEM unlock command,
Once you select the yes the phone will completely erase itself and will take you to configure as a fresh phone. After you are all set, you need to again,
- Enable the developer option.
- Turn on the USB Debugging inside the developer options.
- Allow the connection request if asked
- Copy the Magisk v12 zip & the Magisk Manager apk file on your phone.
- Reboot to bootloader again using the below command,
Once you are on the bootloader screen, you need to install TWRP first.
- Execute the fastboot flash command to install the twrp recovery image by executing the command "fastboot flash recovery TWRP_IMAGE_NAME". Also don't forgot to add the .img extension also. See below for details.
- Now go to recovery mode by using Volume up/down keys and selecting the "Recovery Mode" using power button.
- Inside the TWRP select the install button and browse the "Magisk-v12.0.zip" file and select this file and then swipe to confirm flash.
- Once flashed properly don't forgot to "Wipe Dalvik & Cache".
- Click on the reboot button.
After your device is up, don't just yet check for root, see below section for details.
Install and Configure Magisk Manager
Now you need to install magisk manager apk to perform various rooting actions. Navigate to "MagiskManager-v4.3.3.apk" and install it. Now open the app, go to the app setting and make sure to enable below,
- Magisk Core Only Mode
- Enable BusyBox
- Magisk Hide
- Systemless hosts
Reboot the device after this. It is possible that you will see 'CTS Profile Mismatch' error, try to reboot 2 - 3 times it should work properly. See the video demo for exact details and steps.
After rebooting now you should see "SafteyNet Passed"
Now you can use any of the Root checking application and can check whether your device is properly rooted or not.
Labels: Android Tips, IFTTT-Blog-Twitter, Rooting
3 Comments:
thank you for your videos/instructions. it helped me alot :)
to every command line, it says access is denied
Nice information sir....
Thank you
Post a Comment
Subscribe to Post Comments [Atom]
<< Home