Skip to main content
New Participant
November 11, 2021

Upload an app - oculus developer hub problem

Hello
I am trying to upload a virtual reality app for architecture in the oculus store via oculus developer hub.
When I try to upload the app I get a banner with the following errors:

 

*********************************************************************************
* Your copy of Oculus Platform Command Line Utility is old. *
* Version 1.67.0.000001 was released on Thu Oct 07 2021. *
* Please use the following command to update it: *
> ..\...\NUsersUsuario\NAppData\Roaming\Nodh\ovr-platform-util.exe self-update *
*********************************************************************************
[1m
Validating the compilation...[0m
NOTE:
Your manifest includes the following permissions restricted by Oculus:
- android.permission.READ_EXTERNAL_STORAGE.
- android.permission.ACCESS_MEDIA_LOCATION
Please remove these permissions if they are not necessary for your application. If they are required, you must include a justification in the "Notes to reviewer" field when you submit your application for review. Failure to do so will result in your application being rejected.
[1m
Preparing for upload...[0m
[1m
Uploading the APK...[0m
Uploading...
Waiting for the processing to start...
rebuilding uploaded file (1 / 3)
validating package contents (2 / 3)
ERROR: There were problems validating the APK. Check that it meets the app manifest requirements, then resubmit the app.
* APK screen orientation is not horizontal (android:screenOrientation in AndroidManifest.xml).
Build Upload Error - an error has occurred.

 

 

I tried by a lot of means to remove those two permissions but I can't get it.
If someone can help me I would really appreciate it.

I am developing the project in unreal using blueprints, not c++ (I have no programming knowledge).
Regards.

19 replies

Up and Coming
November 13, 2021

Any luck on this??

Up and Coming
March 15, 2022

Any word on this? I have the same issue

prozac
Meta Employee
March 15, 2022

There are a few threads on similar issues. The problem is related to android manifest permissions generated by Unreal. The accepted solution is posted here.

 

You can update the .xml file in the instructions to only remove the two permissions from the output of your upload attempt. 

Up and Coming
March 15, 2022

so open the .xml file in my project folder delete the lines that have the read and write from external storage permissions. Then just re-package the game to APK and it should be fine? Also I’ve looked everywhere in the manifests and I didn’t see anything about a access to media permission? Is this hidden? Also my game has a auto save function so Does it need to read and write to external storage? Thanks for all your help. Attached is a image of the first rejection I got when trying to upload my first build 

prozac
Meta Employee
March 15, 2022

Autosave should work if configured to use "app-scoped persistent storage". This is how the Oculus VRC describes it. 

 

Don't just edit the generated manifest file. You need to modify your Build.cs (as described in the other forum post I linked) and add the referenced AndroidSanitizePermissions_UPL.xml. Modify that xml to match your needs.

Up and Coming
March 15, 2022

so just putting these 2 things under extra tags for application node won’t work? At the end of the post you send me there is a guy that says this is all I would have to do to make it compliant with oculus. 

 

Android:allowbackup=“False”

Android:usescleartexttraffic=“False”

prozac
Meta Employee
March 17, 2022

You must convert your blueprint only project to C++ to use the .Build.cs method. You can convert by going to File > New C++ Class and adding an empty class. For a walkthrough, check out this video.

 

 

Up and Coming
March 17, 2022

Did you convert yours? I’ve tried converting it during a build in the past and it had errors…I found some other unreal documentation that shows another way to do it. Here https://forums.unrealengine.com/t/remove-permissions-android-manifest/490305 do you think this would work?