Skip to content

Instantly share code, notes, and snippets.

@cvan
Created March 19, 2019 08:43
Show Gist options
  • Save cvan/5f6127820e308c1d71208f6bd4d4d814 to your computer and use it in GitHub Desktop.
Save cvan/5f6127820e308c1d71208f6bd4d4d814 to your computer and use it in GitHub Desktop.
capture a sequence of screenshots while Firefox Reality launches
# Stop FxR.
adb shell am force-stop org.mozilla.vrbrowser
# Launch FxR.
adb shell am start -a android.intent.action.VIEW -n org.mozilla.vrbrowser/org.mozilla.vrbrowser.VRBrowserActivity
# Capture a bunch of screenshots so we can be sure that we get the frame we want.
for i in `seq 1 20`; do (adb exec-out screencap -p > /opt/mozillareality/fxr-screen-saves/screenshots/$(date +%F_%T)_$(LC_CTYPE=C tr -dc A-Za-z0-9_\!\@\#\$\%\^\&\*\(\)-+= < /dev/urandom | head -c 32 | xargs).png); done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment