Forum Discussion
sansonimauro
4 years agoHonored Guest
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
- V4DER_INH4LEExplorer
Any luck on this??
- Bigbankhank99Protege
Any word on this? I have the same issue
- pro_zacMeta Employee
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.
- Bigbankhank99Protege
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
- Bigbankhank99Protege
Never mind I see the screenshot now!
so under extra tags for application node just put the two things
Android:allowbackup=“False”
Android:usescleartexttraffic=“False”
and this will get rid of the read and write to external storage permissions and also the media permission? I still don’t even see the media one ANYWHERE in the manifests
- pro_zacMeta Employee
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.
- Bigbankhank99Protege
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”
- Bigbankhank99Protege
There are 2 different people offering solutions in the form link you sent me. Lee17 and VintageGreen. Which one should I use? Vintagegreens way looks super easy the other one not so much.
- pro_zacMeta Employee
Lee17 is the one I linked directly. It's really pretty straight forward. You add the AndroidSanitizePermissions_UPL.xml file, add a few lines to your .Build.cs, and then repackage your project. This is the technique I use for my own projects.
- pro_zacMeta Employee
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.
- Bigbankhank99Protege
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?
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device