- Android SDK in $PATH
- ImageMagick (Ubuntu: sudo apt-get install imagemagick)
$ bash adbscreen.sh a_filename
Takes a screenshot (e.g. a_filename.png) from the connected android device (or emulator, depending on what adb selects) and puts it into the working directory. The script will repaint the left part of the notification bar so that any pending notifications will be hidden.