Created
March 19, 2019 08:43
-
-
Save cvan/5f6127820e308c1d71208f6bd4d4d814 to your computer and use it in GitHub Desktop.
capture a sequence of screenshots while Firefox Reality launches
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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