Created
November 21, 2014 06:25
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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