Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
pedrosense's avatar
pedrosense
Explorer
3 years ago

Issues with the APK during validation

I'm having problems with my app's Manifest, I want to publish it on the ALPHA channel, but when building I get errors, even using "Create store-compatible AndroidManifest.xml"

I tried to debug, I added: |android:exported="true"| and |android:installLocation="auto"| in the Manifest, I was able to build it, but I couldn't upload it.

OVR Platform Tool log:

 

 

 

NOTE:
Your manifest includes the following permissions restricted by Oculus:
  - android.permission.RECORD_AUDIO
  - android.permission.MODIFY_AUDIO_SETTINGS
Please remove these permissions if they are not needed by your application. If they are needed, you must include justification in the “Notes for the Reviewer” field when submitting your application for review. Failure to provide justification will result in the rejection of your application.
This app contains both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) libraries. This consumes extra storage and increases download times. Consider updating your build to target 64-bit only.
Preparing for upload...
Uploading APK...
Uploading...
Waiting for processing to begin...
rebuilding uploaded file (1/3)
validating package contents (2 / 3)
ERROR: We found issues with the APK during validation. Please check that the APK meets the `Application Manifest Requirements` and then resubmit your app.
* APK install location must be "automatic" (android:installLocation in AndroidManifest.xml). Read the documentation at: https://developer.oculus.com/distribute/publish-mobile-manifest/

 

 

 

Even with |android:installLocation="auto"| I still get this error.

What can I do? I need the microphone because I'm using Photon Voice

My Manifest:

 

 

 

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto">
  <application android:label="@string/app_name" android:icon="@mipmap/app_icon" android:allowBackup="false">
    <activity android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" android:configChanges="locale|fontScale|keyboard|keyboardHidden|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" android:launchMode="singleTask" android:name="com.unity3d.player.UnityPlayerActivity" android:excludeFromRecents="true" android:exported="true">
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
    </activity>
    <meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="false" />
    <meta-data android:name="com.samsung.android.vr.application.mode" android:value="vr_only" />
  </application>
  <uses-feature android:name="android.hardware.vr.headtracking" android:version="1" android:required="true" />
  <uses-feature android:name="com.oculus.feature.PASSTHROUGH" android:required="true" />
</manifest>

 

 

 

UPDATE:

It looks like it's a bug from Unity, I was able to upload my APK using the workaround in the comments of this post:

https://issuetracker.unity3d.com/issues/android-install-location-changes-when-exporting-project