Skip to content

Instantly share code, notes, and snippets.

@EmbeddedAndroid
Created November 21, 2014 06:25
Show Gist options
  • Save EmbeddedAndroid/360ca494b5743fc5a9f0 to your computer and use it in GitHub Desktop.
Save EmbeddedAndroid/360ca494b5743fc5a9f0 to your computer and use it in GitHub Desktop.
Nexus 9 flashing script. Use when encountering 'fastboot data length is too large' errors.
#!/bin/sh
apt-get install android-tools-fastboot unzip
fastboot flash bootloader $1
fastboot reboot-bootloader
sleep 5
unzip $2
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash cache cache.img
fastboot flash vendor vendor.img
fastboot reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment