Skip to content

Instantly share code, notes, and snippets.

@chipcerio
Created October 6, 2015 03:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chipcerio/b0f87b7ae6dbab346575 to your computer and use it in GitHub Desktop.
Save chipcerio/b0f87b7ae6dbab346575 to your computer and use it in GitHub Desktop.
# WARNING!!!
# flashing factory images using this method erases the user data
# including third-party apps installed
# make sure you have downloaded the Android SDK to perform adb & fastboot commands
$ adb reboot bootloader
# some devices may not have radio.img
$ fastboot flash bootloader bootloader.img
$ fastboot flash radio radio.img
# DO NOT skip this step
$ fastboot reboot-bootloader
$ fastboot flash recovery recovery.img
$ fastboot flash boot boot.img
$ fastboot flash system system.img
# for Nexus 9 only
$ fastboot flash vendor vendor.img
$ fastboot flash cache cache.img
$ fastboot flash userdata userdata.img
# profit!
$ fastboot reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment