Skip to content

Instantly share code, notes, and snippets.

@miketaylr
Last active August 7, 2018 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miketaylr/b3cd357cc6194538aee702dfff37a757 to your computer and use it in GitHub Desktop.
Save miketaylr/b3cd357cc6194538aee702dfff37a757 to your computer and use it in GitHub Desktop.

https://mozilla.slack.com/files/U4EH1NHFW/FC3LW5KRV/firefoxreality-oculusvr-uastring-debug.apk

setua.sh "blah blah blah (not chrome) blah blah blah"

setua.sh
#!/bin/bash
UASTR=$1

if [ -z "$UASTR" ] ; then
echo Must set a UA string
else
exec adb shell am start -a android.intent.action.VIEW --es ua_string \"$UASTR\" org.mozilla.vrbrowser/org.mozilla.vrbrowser.VRBrowserActivity
fi

vrbopen.sh some.url.com

#!/bin/bash
url=$1



if [ -z "$url" ] ; then

exec adb shell am start -a android.intent.action.LAUNCH org.mozilla.vrbrowser/org.mozilla.vrbrowser.VRBrowserActivity

else

exec adb shell am start -a android.intent.action.VIEW -d "$url" org.mozilla.vrbrowser/org.mozilla.vrbrowser.VRBrowserActivity

fi

Uninstall the browser: adb uninstall org.mozilla.vrbrowser

Force kill it: adb shell am force-stop org.mozilla.vrbrowser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment