Skip to content

Commit

Permalink
add example scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarl committed Jul 24, 2016
1 parent 15be618 commit 45045df
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/android-screengrab.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
rem change to the system temp directory
cd /D %temp%

rem capture screenshot, copy to local then delete from device
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
adb shell rm /sdcard/screen.png

rem frame the screenshot
device-art --input-image=screen.png --device=nexus_6

rem open explorer and select the output file
explorer /select,%temp%\output.png
9 changes: 9 additions & 0 deletions scripts/android-screengrab.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

#capture screenshot, copy to local then delete from device
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
adb shell rm /sdcard/screen.png

#frame the screenshot
device-art --input-image=screen.png --device=nexus_6

0 comments on commit 45045df

Please sign in to comment.