Home Tech Android Easily Install the Copperhead OS or Stock Google OS on your Nexus 5x or Nexus 6P
Easily Install the Copperhead OS or Stock Google OS on your Nexus 5x or Nexus 6P

Easily Install the Copperhead OS or Stock Google OS on your Nexus 5x or Nexus 6P

These instructions will show you how to install the Copperhead OS on your Nexus 5x or 6p using a Windows PC. It is tailored for those who have little or no experience flashing Roms. Here is Copperhead’s instructions for reference. If you want to flash the Google OS. Here is one method Here is another.  If your stock Google OS has a flashall.bat file our method below will work. Also note, the Copperhead OS will not work on the Sprint network or Project Fi.
Prepare your Computer

1. Make sure you have the correct drivers installed on your PC for your phone. If you can write files to and from your PC and phone, connected with the USB cable you should be good. If not you can get the drivers here.

2. Download and install the Minimal ADB and Fastboot latest version. Default windows 64bit will install to:

C: Program Files/Minimal ADB and Fastboot folder.

Default installation for 32bit Windows:

C: Program Files (x86)/Minimal ADB and Fastboot

Allow for the shortcut on your Desktop during install, this will make things easier.

3. Download and install 7zip. We will be using this to extract the .tar files.

4. Download the Copperhead OS for the version for your phone. This should be the tar.xz file (latest date). You can also Download the Google stock OS if you want to revert back to stock. This tutorial is assuming you are flashing Copperhead OS over the the stock android OS and is not the method to flash the Google OS. Here is one method to flash the Google OS. Here is another.

5. Now extract all the files using 7zip:

      • Right click on the downloaded Copperhead OS tar.xz file and with 7zip: open archive.
      • You will see a .tar file. Drag that .tar file to your desktop.
      • Now right click on that .tar file and with 7zip: open archive.
      • You will see a folder. Drag that folder to your desktop.
      • Now open the folder, there should be six files in it.
      • Now drag all the files (from inside the folder) and drop them into your:

C:\Program Files (x86)\Minimal ADB and Fastboot folder.

This folder should now look like this below:

Prepare Your Phone


6. Now prepare your phone to be flashed with the new OS. Plug your phone into your computer using its USB cable. On your device, go to Settings, About Phone, scroll down and keep clicking Build Number until is says “You are a developer!“.  Go back, click Developer Options, Turn on USB Debugging.

 Also in Developer Options, Turn on OEM unlocking:

On your phones screen it should now prompt you to allow USB debugging with your computer. Check Always allow from this computer, click OK.

7. Now your phone is ready to be booted into fastboot mode. Power off your phone. With the USB cable still plugged into your phone and your computer, turn on your phone by holding the power and volume down buttons simultaneously. Your phone should show a dead android robot; you are now in Fastboot mode.

Unlock the Bootloader


8. Now you need to unlock the bootloader. Open Minimal ADB and Fastboot  by clicking the shortcut on your desktop or C:\Program Files (x86)\Minimal ADB and Fastboot\MAF32.exe

or in newer versions it will be:

C:\Program Files (x86)\Minimal ADB and Fastboot\cmd-here.exe

Once the command prompt is open,

Type fastboot oem unlock then hit enter.

If that does not work, use the command fastboot flashing unlock

On your phone you will be asked if you want to unlock the bootloader. Use the up and down volume buttons to move and select yes by pressing the power button.

Your DEVICE STATE should now say its unlocked.

(your device might look different)

Flash the ROM


9.  Now you are ready to install the Copperhead OS. Keep the Minimal ADB and Fastboot screen open. Now go to the folder C:\Program Files (x86)\Minimal ADB and Fastboot. Drag and drop the file flash-all.bat on to the Minimal ADB and Fastboot command line screen as seen below. The path should now appear in the Minimal ADB and Fastboot screen. Press ENTER to run the install operation.

10. The OS installation will take approximately 2 minutes. After Copperhead OS is installed, your phone will reboot. This will take approximately one minute.

Lock the Bootloader


11. Once rebooted, shutdown the phone. We need to lock the bootloader. Once more, boot into fastboot mode by holding the power and the volume down button. Open Minimal ADB and Fastboot and type  fastboot oem lock to lock the bootloader. If that does not work use the command fastboot flashing lock. You will be prompted to confirm the lock. Using the volume up and down buttons select Yes and press the power button to accept.

YOU ARE DONE! Post comments or questions below.

Some recommended apps to have:

Yalp Store – A more secure way to update your apps, pulls directly from the Google PlayStore.

Aptoid app market  – Another appstore alternative.

Amazon Underground app store – For functionality in addition to the pre-installed f-droid market. A place to buy paid apps which you would normally buy on the PlayStore.

Kimset Smarter Wifi Manager – Manages your wifi radio. Keeps your wifi turned on or off based on known locations.




    1. For the Radio, I would assume you could use the command: “fastboot flash radio” command. It should look something like this: fastboot flash radio radio-hammerhead-m8974a- for example. Copperhead is good about using the most up to date official radio.

      Properly installing the keys you could flash the Copperhead OS this way, otherwise if you don’t mind the bootloader will display a notice with the fingerprint of the verified boot key since it isn’t the built-in OEM key. The signatures of the OS appear at the bottom of your screen when you boot the device:

      Nexus 5X fingerprint: 0AA1-7043-4D5F
      Nexus 6P fingerprint: 965E-780B-32FC-B686

      See: https://copperhead.co/android/docs/install

      I don’t think you can change the bootloader image without breaking the secure boot feature because you would be replacing files that are not signed. I never tried this either.

    1. In step 5 make sure you have extracted all of the contents from the Copperhead .tar.xz file (there are two extractions). Your Minal ADB & fastboot folder should look exactly like the image in step 5 where all the blue highlighted folders and files are the extracted contents (see image). Then from step 9, when you drag the flash-all.bat file over to the command line make sure the generated file path is correct.

      1. Thanks for the reply. The Minimal ADB and Fastboot folder is in C: Program files ( it’s a 64bit machine) and the path name when dragging and dropping the .batch file looks fine.

        Specifically the error messages are:

        error: cannot load ‘bootloader-angler-angler-03.78.img’

        error: cannot load ‘radio-angler-angler-03.85.img’

        W/ ( 3080): Unable to open ‘image-angler-opm1.171019.011.zip’ : No such file or directory

        error: failed to open zip file ‘image-angler-opm1.171019.011.zip’ : I/O Error

        All the image files are in the correct folder in the correct directory so I don’t know why they can’t be found?

  1. Hello, it appears that I do not have the latest drivers for my Nexus 5X installed, because I cannot copy files from my phone (for example pictures). However I already installed the latest drivers as you described it, but get an error stating that the device cannot be started (code 10). What am I doing wrong?

    1. Copperhead recently released their installation images for the Pixel devices for non commercial use(they romved it from downloads). I have not tried to install it on a Pixel at this point, only on a 5x and 6p. Looking at Copperheads instructions it appears you have to add an extra step when flashing the ROM on a Pixel by setting a custom key for boot. So, in our instructions, right after you Flash the ROM and right before you Lock the Bootloader you have to complete this step:

      Set custom AVB key:

      On the Pixel 2 and Pixel 2 XL, the public key needs to be set for Android Verified Boot 2.0 before locking the bootloader again:

      fastboot flash avb_custom_key avb_pkmd.bin
      To confirm that the key is set, verify that avb_user_settable_key_set is yes:

      fastboot getvar avb_user_settable_key_set

      Either way let us know if it works.

  2. ETP it did not worked for Pixel and Pixel XL:S problem i couldn’t download ROM for Pixels and Building CopperheadOS from source is really hard for beginners like me :S how about make a youtube video i heared lots of people facing problems for install copperhead on pixels

  3. I emailed Copperhead OS about their releasing the Pixel OS images for download. Here is what they said:

    Thank you for supporting Copperhead, it truly means a lot to us. At this time, Pixel factory images are restricted to Copperhead solely. We are looking in to licensing options in order to make CopperheadOS images available for purchase and download sometime in the near future.

    We are also in the midst of reopening a service to the general public once again that allows individuals to send us their own devices for flashing and should be ready to receive devices sometime this month. Prices have not been finalized just yet. Stay tuned as we are poised to make this announcement real soon.

    Please subscribe to our newsletter for more details and announcements.