Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Support intent preferences for benchmarks #590

Merged
merged 1 commit into from
Oct 1, 2018
Merged

Conversation

MortimerGoro
Copy link
Contributor

Usage:

Ensure that the app is killed (GeckoView doesn't support changing preferences at runtime yet)
adb shell am force-stop org.mozilla.vrbrowser

Launch intent with the desided preference values. We have only exposed vr-user gesture and timer precision for now.

adb shell am start -n org.mozilla.vrbrowser/.VRBrowserActivity --es url "https://aframe.io" --ez dom.vr.require-gesture false --ez privacy.reduceTimerPrecision false

Note, extra parameters don't work when using the android.intent.action.VIEW. That's why I added the optional url parameter.

adb shell am start -a android.intent.action.VIEW -d "https://aframe.io" org.mozilla.vrbrowser/.VRBrowserActivity

@fernandojsg
Copy link

Looking great! thanks :)

@bluemarvin bluemarvin merged commit fbdacaf into master Oct 1, 2018
@bluemarvin bluemarvin deleted the intent_extras branch October 9, 2018 19:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants