Saturday, November 29, 2014

How-to flash Nexus devices back to a particular Android version

Link and how-to to flash Nexus devices back to factory specs;  Includes direct links to download factory images for various versions:

https://developers.google.com/android/nexus/images


Saturday, November 8, 2014

Extract sets of compressed tarballs within each respective folder

$ for i in *.gz;  do mkdir `echo $i | cut -d '.' -f1`;  tar xvfz $i -C ./`echo $i | cut -d '.' -f1`; done

The above will:
1) Build a list of all .gz files within the current folder (assuming .tar.gz files)
2) If the tarball filename is tarballfile.tar.gz, create a folder called tarballfile/
3) Extract the contents of tarballfile.tar.gz into folder ./tarballfile/
4) Continue iterating through the other tarball files until the loop has completed.