Skip to content

Instantly share code, notes, and snippets.

@Gioyik
Created November 26, 2013 18:51
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gioyik/7663722 to your computer and use it in GitHub Desktop.
Save Gioyik/7663722 to your computer and use it in GitHub Desktop.
Script to flash Android and Android based devices using fastboot.
#!/bin/bash
adb reboot bootloader
fastboot flash boot boot.img
fastboot flash userdata userdata.img
fastboot flash system system.img
fastboot flash recovery recovery.img
fastboot erase cache
fastboot reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment