This section will provide information on how to set up your supported Gear VR device for running, debugging, and testing your mobile application.
Please review the System and Hardware Requirements above for the list of supported devices for this SDK release.
In order to test and debug applications on your Android device, you will need to enable specific developer options on the device:
Note: Depending on which mobile device you are using, options and menu names may vary slightly.
Android developer options may be found under: Settings -> Developer options.
Developer options may be hidden by default. If so, you can expose these options with the following steps:
Locate Build number option in Settings. For Android M and later: Go to Settings -> About phone -> Software information.
Earlier Android Versions: Go to Settings -> System -> About device.
You should be informed that Developer options has been enabled.
Once you have found Developer options, enable the following:
USB Debugging: This will allow the tools to install and launch deployed apps over USB.
You should see the screen shown on the accompanying figure.
Note: If the above screen does not appear, ensure that your computer recognizes the device when it is connected. If not, you may need to pull down the notifications bar on your phone and find the USB connection setting, and set USB to Software installation (it may be set to Charging by default). If you still do not see the pictured screen, try a different USB cable. If your phone is recognized by your computer but you do not see the above screen, try toggling USB Debugging off then back on.
Check Always allow this computer and hit OK.
To purge the authorized whitelist for USB Debugging, press Revoke USB debugging authorizations from the Developer options menu and press OK.
Allow mock locations: This will allow you to send mock location information to the device (convenient for apps which use Location Based Services).
Verify apps via USB: This will check installed apps from ADB/ADT for harmful behavior.
It is often convenient during development to run VR applications without needing to insert your device into the Gear VR headset, which can be a time-consuming process during development.
When VR developer mode is enabled, any Oculus application on your mobile device will launch with distortion and stereoscopic rendering applied without inserting the device into a headset. Devices in Developer Mode implement limited orientation tracking using phone sensors. Orientation tracking may be disabled with the appropriate setting to System Properties or Local Preferences (see Android System Properties for details).
To enable VR developer mode, you must provide an Oculus signature file (osig) to access protected functionality on the Samsung device. You can do this in two ways:
Install and run an APK signed with an osig on the phone you want to run in VR developer mode. If you have already done this, then no further action is necessary.
Alternatively, you may download an osig from the Oculus Signature File Generator and copy it to the phone directory /phone/oculus/ or /sdcard/oculus/ (whichever is applicable for your phone).
Once you have provided an osig, follow these steps to set your phone to VR developer mode:
Note: If you do not see the Developer Mode toggle switch after tapping VR Service Version several times, close Gear VR Service and relaunch, and you should see it.
The following display options are found in: Home -> Apps -> Settings -> Sound and Display.
Lock screen/Screen Security/Screen lock: Set to None to make the Home screen is instantly available, without swipe or password. Useful to quickly get in and out of the phone.
Display/Screen timeout: Set the time to your desired duration. Useful if you are not actively accessing the device but wish to keep the screen awake longer than the default 30 seconds.
See Android Debugging for more information.