Things I've Figured Out

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
  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/
  10. If you want GApps, sideload that too.
  11. After successful install, reboot!

Categories: Uncategorized

Returning a git log value for use in a script » « Getting Media Keys Working for Your CODE Keyboard for Spotify on OS X


  1. instead of “flash userdata” I did “format userdata”, otherwise I ended up with only 10GB Internal storage on 32GB version.

  2. 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.


    May 4, 2016 — 6:52 pm

    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

Copyright © 2023 Things I've Figured Out

Theme by Anders NorenUp ↑