• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by elegize · Jun 30, 2015 at 07:24 AM · androidvroculussamsung

Unity on Gear VR with Galaxy S6

For some reason I can't get Unity to work on the Gear VR.

I have two problems:

For starters, I don't get the stereo view when I press play in Unity. It used to give me an error message that the VR runtime wasn't installed or that there wasn't a VR device available. After the 5.1.1p2 patch, I don't get an error at all, but it still doesn't give me the VR view.

The second is exporting. I have no problems when I export an empty Android build with just a cube in it. I see the app on the phone and it opens normally. When I export an Anroid build with the Mobile VR package on the other hand, the S6 gives me an error message. First it tells me to put the phone in the Gear VR, but after a short black screen I get an AKP security error. I looked at some other posts about this, but no matter what signing I use (unsigned/debug or sign file), I keep getting the same error.

Here some additional info:
- Unity 5.1.1p2 (with Oculus Mobile SDK 6.0 package)
- Android Studio (SDK)
- Oculus Runtime 6.0 (eventhough I don't know what this does)
- Gear VR with Samsung Galaxy S6

Thanks,
Ele

Comment
JoeJoe

People who like this

1 Show 0
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

  • Sort: 
avatar image

Answer by Mason84 · Jul 10, 2015 at 09:57 AM

Regarding this security error, as far I know ( but personally not tested i´m still waiting for my Gear VR ) Every Gear VR application need a Unique Signature Code for each Mobile Device (Provided by an Oculus android app what you need to install ). Without this signature code you cant run the apk. The reason behind this is the Samsung Policy. They don't want to let you push your Gear VR app for the public ( at this time ). So because of this you need a unique signature / generated apk for each device (S6+GearVR). This means you cant share whit your friend an apk what you generated for your device. He will became the same error as you. In this video tutorial this guy explain it well somewhere in the middle of the video: Youtube Video Tutorial

Comment

People who like this

0 Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image elegize · Jul 10, 2015 at 11:59 AM 0
Share

Thanks for your comment Mason84. I actually used the same tutorial you mentioned to set up the Gear VR project. Maybe this signiture file is the problem, but I created it just like how it was explained in the video. I don't know if there is a way to find out if the signiture file is correct, but there's not much there can go wrong with copy/pasting the device ID and putting a file in a folder.

EDIT: I gave it another go by downloading a different app to get the device id and it did indeed give me a different ID (the other app only gave me the device GSF ID). Though, sad to say, this still didn't work.

avatar image

Answer by elegize · Jul 14, 2015 at 01:29 PM

Okay, I found the answer to my second problem. The app I used to get my Android device ID, returned the wrong ID number. I found out the right ID number during the build of the OVR export. At the end when it's done compiling it shows the device ID: "Pushing new content to device DEVICE-ID-HERE [MODEL-NUMBER]". This was the correct ID which I then used on the oculus tools page to get the signage file. For those who don't know yet. Put this file in the folder: Assets/Plugins/Android/assets/

Comment

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta on June 13. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

GearVR Recenters view when you take off and put on the headset 1 Answer

VR (Camera Fov & GearVR) question ! 0 Answers

Is Build and Run essential to make a Gear VR app ? 1 Answer

How to stop a video using the OCULUS script MoviePlayerSample.CS. 0 Answers

In android Gear Vr, is it possible to launch an application in normal/phone mode, and then have it transition to Unity/VR when the user clicks the option? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges