Installing Cyanogenmod 13 NIGHTLY (CM13) on a Nexus 5X

I had some issues getting Cyanogenmod running/booting on my Nexus 5X. After reading through a bunch of forum posts and some trial and error, I got it running.

Here are the steps:

  1. Download a factory image (version didn’t matter for me)
  2. Extract the tar and image-bullhead-XXXXXX.zip
  3. Rename bootloader-bullhead-XXXXXX.img to bootloader.img and radio-bullhead-XXXXXX.img to radio.img and move them in with the rest of the .img files
  4. Reboot Nexus 5X into the bootloader (power + vol down)
  5. Run the following commands in terminal in the directory where your extracted files are:
    fastboot flash bootloader bootloader.img;
    
    fastboot reboot-bootloader;
    echo "Waiting 5 seconds for bootloader to reboot";
    sleep 5;
    
    fastboot flash radio radio.img;
    
    fastboot reboot-bootloader;
    echo "Waiting 5 seconds for bootloader to reboot";
    sleep 5;
    
    fastboot flash system system.img;
    fastboot flash vendor vendor.img;
    fastboot flash userdata userdata.img;  # See comments 
    
    fastboot flash boot boot.img;
    fastboot erase cache;
    fastboot flash cache cache.img;
  6. Install TWRP (fastboot flash recovery /path/to/twrp.img)
  7. At the bootloader, go into recovery mode
  8. Once in TWRP, click Advanced, then ADB Sideload, Swipe to start Sideload
  9. In terminal, run the command: adb sideload /path/to/cyanogenmod.zip
  10. If you want GApps, sideload that too.
  11. After successful install, reboot!

4 Comments

  1. dweebs0r

    Thank you, thank you, thank you! I was unable to use cyanogenmod with my new nexus 5x until I found this guide. I really appreciate you posting this. I thought my inability to boot had something to do with updating to the userpreview N image.

  2. JONATAN RINCKUS

    Thanks, Dan. And about the userdata, i did what you said and I ended up with only 10GB like the other guy, i did that he said and work.

Leave a Reply