Skip to main content
Participant
August 10, 2018

AndroidManifest.xml for Oculus Go (APK signed in debug mode error)

Hey everyone,

I am trying to upload a version of my game to my dashboard, and then come the pleasure to deal with the AndroidManifest.xml...

When I generate mine through Unity I got one that does not work.

So on the documentation they give some specification :
https://developer.oculus.com/distribute/latest/concepts/publish-mobile-manifest/

Like to use this one :
https://developer.oculus.com/documentation/mobilesdk/latest/concepts/mobile-native-manifest/

And add that android:debuggable must be false.

Except that on the example file there is no line for debuggable, why is that?

I added it to my file + other lines I had to add to pass different errors while importing and here is now my manifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="myGameName" android:versionCode="1" android:versionName="1.0" android:installLocation="auto">
<application>
<meta-data android:name="com.samsung.android.vr.application.mode" android:value="vr_only"/>
<activity 
android:screenOrientation="landscape" 
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
android:configChanges="density|keyboard|keyboardHidden|navigation|orientation|screenLayout|screenSize|uiMode"
android:launchMode="singleTask"
android:name="myGameName"
android:resizeableActivity="false"
android:debuggable="false"
android:excludeFromRecents="true">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.INFO"/>
</intent-filter>
</activity>
</application> 
<uses-sdk android:minSdkVersion="21"/>
<uses-feature android:glEsVersion="0x00030001" />
</manifest>

Now I have this error when I try to import :
APK signed in debug mode (translated from french)

Could it be possible to give an example of this file working for Oculus Go?
    This topic has been closed for replies.

    2 replies

    IndieCedAuthor
    Participant
    August 10, 2018
    To let you know the AndroidManifest.xml was finally Ok, so you can use it on your Oculus Go stuff.

    The problem from the signed APK is related to the Keystore, you can find it in PlayerSettings / Publishing settings.

    There you have to Create a new keystore.

    This discussion can be closed.
    Up and Coming
    May 11, 2019
    To add to this answer, this page explains how to set up the new keystore. Crucially, it's not enough to create a new keystore but we also have to create a new key using the "Key / alias" dropdown.