Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Oculus signature file in... Plugins/Android? How do you get Plugins/Android?

Discussion in 'AR/VR (XR) Discussion' started by guru20, Aug 7, 2015.

  1. guru20

    guru20

    Joined:
    Jul 30, 2013
    Posts:
    239
    Okay, I haven't yet released an Android project (and when I did develop one, as a demo, I never needed to access this folder):

    Oculus documentation and everything I find online states that you need to place signature/key into Project/Assets/Plugins/Android...

    I don't have a Plugins folder, and I don't see anything in the steps that would indicate why it is missing for me...?
     
  2. scottunity

    scottunity

    Joined:
    Feb 1, 2014
    Posts:
    72
    You have to create it yourself in latest Unity version for some reason. And no, it's not covered i the documents.
    So create the Assets/Plugins/Android/asset/ folder and place your sig file in there.
     
  3. scottb9239

    scottb9239

    Joined:
    Jan 5, 2013
    Posts:
    107
    Make sure it's Assets/Plugins/Android/assets (with an s on the end, scottunity has a small typo on his message).
     
  4. guru20

    guru20

    Joined:
    Jul 30, 2013
    Posts:
    239
    Yeah, I fixed that (I noticed a Plugins folder seems to be automatically created if I import the Oculus Utilities package)... still no dice, though.

    Is there, like, a sample project file somewhere I can download to test what is going wrong in the Gear VR build process? I have built for Android (non-Oculus, non-VR), Cardboard, Windows-based Oculus all just fine. The only thing giving problems is Gear VR.
     
  5. EdBlais

    EdBlais

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    303
    @guru20 GearVR requires a signature file for the Android Device that you are testing on. So for each S6 or Note4 device that you are testing on, you need to generate a signature file from Oculus here.

    Once you have downloaded all of the signature files you need, they need to be placed in the Plugins/Android/assets (case sensitive) folder in your Unity Project's Assets folder. You can place multiple signatures in this folder and then deploy to all the devices a signature file is included for.

    The Oculus Utilities package generates this folder because it is needed for GearVR. They have placed a donotdelete file in the folder so that the folder is generated by the package. Cardboard and Windows-based Oculus do not need signature files because the signature file is specific to GearVR only. It is also a file that is generated by Oculus based on DeviceID. If you have an incorrect signature or no signature file when deploying for GearVR, you should receive a popup after starting the application on the phone saying signature file missing. You can also see if the signature is missing by checking the logcat.

    @scottunity This is included in the Unity Manual Here. Please review the "Getting Started (GearVR)" section.
     
    davem250 likes this.
  6. JDMulti

    JDMulti

    Joined:
    Jan 4, 2012
    Posts:
    384
    I can report, that there is no popup telling the user the signature file is missing. I'm working with the Gear VR since unity 4.6 up to 5.1.2p3 and this is not the case. All I get is a black screen or it loads the Oculus Gear VR store, but defently no popup with information. This is why lots of people keep asking why there first Gear VR app doesn't load.

    Another notice to @guru20 Not try to make subfolders inside plugins > assets, because I tried and it doesn't work, neither renaming them. We have 16 Gear VR's and it would sound logic to me to change things to make it more organised and only with a simple view notice what's included. But that doesn't work. :) #unitytipoftheday
     
  7. MWNWApps

    MWNWApps

    Joined:
    Jun 27, 2015
    Posts:
    22
    Why don't you guys add a simple pop-up that asks to paste osig file in it?:)
    If it's not there:)
     
  8. EdBlais

    EdBlais

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    303
    I just ran an empty GearVR app on my S6 with 5.1.2p3 and Oculus 0.6.0.1 and no Signature file. I get the popup to connect the Device and after connecting the Device I see an error message on the screen. The message reads: "Thread Priority Security Exception. Make sure the APK is signed." The message is in a 3D scene created by Oculus. If I run the GearVR service in Developer mode, I get the 3D scene as well as a small popup that fades after a second.
     
  9. MWNWApps

    MWNWApps

    Joined:
    Jun 27, 2015
    Posts:
    22
    I meant during the build process:).

    Well, once the Android/assets etc folder is created, it works fine - without OSVR.

    Good stuff.
    Andy
     
  10. guru20

    guru20

    Joined:
    Jul 30, 2013
    Posts:
    239
    Thanks for the responses, still having no luck; I created the sig file based on the IMEI of my phone, placed it into the Plugins/Android/assets folder... I tried this for both my actual project and for a completely new, blank project that had zero packages/assets imported, and was simply a static cube with the camera facing it (just as a test)

    Still won't load at all; black screen followed by Gear VR hub/settings.

    I'm on 5.1.2p2, will try updating to p3 (yet again -- I feel like this is the 5th time I have downloaded and installed patches in the past 2-3 weeks)
     
  11. fabian1986

    fabian1986

    Joined:
    Jun 3, 2015
    Posts:
    33
    Hi,

    Is There a new version for GEAR VR S6 edge working well now?
     
  12. JDMulti

    JDMulti

    Joined:
    Jan 4, 2012
    Posts:
    384
    That's funny, I never ever seen such a popup, but have had quits with missing signature files. However when I find out that I miss a signature file, I do have several others in my project. It might that it doesn't show up the popup if there are more signatures inside project except from the one it's currently ran onto. We included signature files from our own gear VR's and from the customer for who we create an application. Our apps are not in the official Gear VR Appstore, but we have our own store.