Skip to content

Instantly share code, notes, and snippets.

@yachi
Created July 20, 2016 09:20
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 yachi/e9615d6c087edb2e9fffca6f755d8390 to your computer and use it in GitHub Desktop.
Save yachi/e9615d6c087edb2e9fffca6f755d8390 to your computer and use it in GitHub Desktop.
flash base and vendor.img
#!/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