- 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.
$ bash adbscreen.sh a_filename 25
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. Finally the screenshot will be scaled depending on the scale parameter (e.g. down to 25% of its original size)