Created
July 20, 2016 09:20
-
-
Save yachi/e9615d6c087edb2e9fffca6f755d8390 to your computer and use it in GitHub Desktop.
flash base and vendor.img
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
#!/usr/bin/env bash | |
curl -s https://developers.google.com/android/nexus/images | pup 'a attr{href}' | grep '/angler-' | tail -n1 | aria2c -c -i - | |
rm -r angler-*/ | |
tar xzvf "$(find . -iname 'angler-*-factory-*'|tail -n1)" | |
cd angler-* || exit | |
unzip image-angler-*.zip | |
./flash-base.sh | |
fastboot flash vendor vendor.img | |
cd - || exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment