Category: OnePlus

How to Install Fastboot, ADB and Google USB Drivers on Windows 10

Step 1 – Download and latest Java SDK from the following link: Java SE Development Kit 8 Downloads. Proceed to next step after finishing installation.

Step 2 – Download ADB and Fastboot Installer v1.4.3. The tool is a single “.EXE” application.

Step 3 – Run the “adb-setup-1.4.3.exe” which you downloaded in the preceding step, “Run as Administrator”.

Do you want to install ADB and Fastboot? <Y/N> – Type Y

Install ADB system-wide? <Y/N> – Type Y

4 Files copied.

SUCCESS: Specified value was saved.

Do you want to install device drivers? <Y/N> – Type Y

Once you press enter, the program will automatically detect whether you have a 64-Bit or 32-Bit installation of Windows and launch the driver setup respectively.

Device installation wizard will pop up, then click “Next” in the installation wizard

Click on “Install” when asked by Windows Security.

That’s All Folks! You can now utilize ADB and Fastboot utilities by simply opening up a command window and then executing the desired commands.

Now to test it,

  1. make your phone reboot to bootloader
  2. when your phone is on fastboot mode (screen display “fastboot”)
  3. connect your phone to your computer using USB
  4. Open a command window
  5. Type fastboot devices
  6. If all works then #5 will output the device ID

usage: fastboot [ <option> ] <command>

update <filename> reflash device from
flashall flash boot, system, vendor and if found,
flash <partition> [ <filename> ] write a file to a flash partition
flashing lock locks the device. Prevents flashing partitions
flashing unlock unlocks the device. Allows user to flash any partition except the ones that are related to bootloader
flashing lock_critical Prevents flashing bootloader related partitions
flashing unlock_critical Enables flashing bootloader related partitions
flashing get_unlock_ability Queries bootloader to see if the device is unlocked
erase <partition> erase a flash partition
format[:[<fs type>][:[<size>]] <partition> format a flash partition.
Can override the fs type and/or
size the bootloader reports.
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
continue continue with autoboot
reboot [bootloader] reboot device, optionally into bootloader
reboot-bootloader reboot device into bootloader
help show this help message

-w erase userdata and cache (and format
if supported by partition type)
-u do not first erase partition before
-s <specific device> specify device serial number
or path to device port
-l with “devices”, lists device paths
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address.
default: 0x10000000
-n <page size> specify the nand page size.
default: 2048
-S <size>[K|M|G] automatically sparse files greater
than size. 0 to disable

Categories: OnePlus Tags: Tags: , , ,

Oneplus: Steps to rollback to CM11

Steps to rollback to the stable CM11 in Oneplus one




Files to be downloaded :

1. Google usb driver :

2. Android SDk :
Scroll down to SDK TOOLS ONLY and download installer_r24.2-windows.exe

3. Twrp custom recovery tool :
download version (latest version)

4. CM11 firmware :
download cm 11 firmware

5. CM11 official rom :


Step 1 : Installing adb and fastboot drivers

Installing this drivers allows you to access your phone from your PC command prompt terminal.

Use the google usb driver that you have downloaded.

Step 2 : Unlocking bootloader and installing custom recovery

Install the Android SDK and Install the following packages (there are a total of 4 packages):
– Tools > Android SDK Tools, Android SDK Platform-tools
– Extras > Android Support Library, Google USB Driver

After installing the SDK go to C:\Program Files\Android\android-sdk\platform-tools
And in this window press shift + right click mouse button, you should see a option OPEN COMMAND WINDOW HERE select it.

To confirm that the above steps are indeed working, open a command prompt window and enter the following command in the terminal:

adb version

If it displays “Android Debug Bridge version x.x.xx” it is working. If it is gives an error saying that adb is not a recognized command, it has not been successful. Carefully repeat the steps above if this is the case. Close the command prompt window when you are done.

Now lets unlock bootloader

Unlocking Bootloader: Opens the door to the internal memory of the device to be written on to.This allows you to flash images onto the main partitions of the phone

->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.go to C:\Program Files\Android\android-sdk\platform-tools And in this window press shift + right click mouse button, you should see a option OPEN COMMAND WINDOW HERE select it 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 wipe EVERYTHING off the phone

fastboot oem unlock

After the above command has finished excuting, run the following

fastboot reboot

The phone will reboot. 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
Disable CM Recovery Protection – On your phone go to Settings > Developer options. Then disable the ‘Update recovery with system updates’ option.
Close the command prompt window and proceed onto the next section of the guide.
Installing a Custom Recovery
Turn the phone off. Then boot it into fastboot mode by holding volume up + power.
Rename the recovery file that you downloaded above to twrp-recovery.img .U need to name the twrp file as twrp-recovery.img and not as recovery.img and then run this two things in terminal

fastboot flash recovery twrp-recovery.img

the above command flashes and then

fastboot boot twrp-recovery.img

it boots into recovery from fastboot directly, please note after flashing do not reboot and run this commands back to back.
Now that u are in custom recovery, reboot your phone.

Step 3 : Installing firmware and the OS itself

Here there are two steps :

1. Installing firmware by flashing it using TWRP tool
2.Installing the rom in the FASTBOOT mode using ur PC

Copy the cyanogen firmware file ( 28 MB ) to your phone please remember the location, it is better to copy it directly into root folder.

Now copy the CM11 Rom ( 520 MB ) to C:\Program Files\Android\android-sdk\platform-tools and extract it there using winzip or 7-zip any such tool.

Shutdown your phone.Reboot into twrp recovery by pressing volume down + power.

In twrp recovery

1)Select WIPE->swipe to factory reset and then home
2)Select INSTALL->browse to firmware file ,select it ->swipe to confirm flash

thus the firmware is flashed, for newbies here is video of how to use twrp tool to flash though this video has no relevance w.r.t our scenario it shows how to use twrp.Please see the entire video in particular

After flashing the firmware,turn off your phone and boot into fast boot mode

Now go to C:\Program Files\Android\android-sdk\platform-tools where you have extracted the CM11 rom , hold down shift + right click in the folder with the files and click “open command line here”

Type in all these commands in order one at a time , back to back(some of them may take some time so be patient), your phone must be in fastboot mode (Power button + Volume up) and must be plugged in to your computer:

fastboot flash modem NON-HLOS.bin
fastboot flash sbl1 sbl1.mbn
fastboot flash dbi sdi.mbn
fastboot flash oppostanvbk static_nvbk.bin
fastboot flash aboot emmc_appsboot.mbn
fastboot flash rpm rpm.mbn
fastboot flash tz tz.mbn
fastboot flash LOGO logo.bin
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash userdata userdata.img (or userdata_64G.img)
fastboot reboot

AND VOLA you’ve successfully rolled back to CM11

If you follow this process/steps then you will not BRICK your Oneplus one because you’re doing the right order


2) Flashing WITH ROM

you may have those single click bat files but they did not work for me but I am 100% sure that the above procedure should do the trick.

References :…oader-install-custom-recovery-and-root.64487/