04-28-2022 01:54 AM
hi, I'm trying to publish an app in the oculus shop and I can't. I'm not able to publish it.
I am using unity.
I get the following errors when I try to publish:
NOTE:
Your manifest includes the following permissions restricted by Oculus:
- android.permission.RECORD_AUDIO
- android.permission.READ_EXTERNAL_STORAGE
- android.permission.ACCESS_MEDIA_LOCATION
- android.permission.CAMERA
- android.permission.WRITE_EXTERNAL_STORAGE
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.
any solution?
05-04-2022 10:00 AM
04-21-2023 11:01 PM
This one is a pain, but here it goes. Basically code inside Unity is adding those permissions after the build. So even if you remove the permissions on the manifest it would not work. What you need is to download apktool and decompress your program's apk, then remove the lines from the manifest. Use Apk tool to compress the folder and make another apk, this other apk needs to be aligned with zipalign, and then signed with apksigner. After that upload the app. I got it working with Oculus Integration 50 and Unity 2022.2.16f1.
Don't ask how I came to this conclusion, but a lot of help from chatgtp4.