1. Download the ADB For Windows from here.
2. Run as Administrator the .exe file downloaded from above.
3. Press the letter ‘Y’ every time the installer asks for.
4. Continue Driver Installation.
Now, ADB and Fastboot have been installed on your PC and should be working as we expected.
For Show File Extensions
Open a command prompt window and run “Control folders”. Go to the View tab and uncheck the “Hide extensions for known file types” option. This will help avoid confusion when renaming files. Got it? 🙂
For the Battery
Ensure that your phone has at least 80% battery remaining, and that your PC is plugged in and wont shut down during the process. The procedure must not take very long, but its best to have enough charge just in case something will go wrong.
Unlocking the bootloader will completely wipe all data from the device. This includes apps, settings and even the contents of the internal sdcard (It is like a full wipe in the recovery but it includes your Internal sdcard). Copy all important files off the phone into your PC or upload them to your cloud drive.
On your phone then go to Settings > About phone > Tap on Build number 7 times. This will enable Developer options. Now go press the back button to go back to Settings then go to Developer options > Enable USB debugging. Viola!
Enable OEM Unlocking
On your phone then go to Settings > Developer options. Then enable the ‘OEM Unlocking’ option. Also make sure that from now on, OEM unlocking option is enabled before you reboot as sometimes, it might get disabled itself. Got it?
Enable Advanced Reboot
On your phone go to Settings > Developer options. Then enable the ‘Advanced Reboot’ option. 🙂
Good luck! 🙂