Forum Discussion

ortegacasadojavier's avatar
ortegacasadojavier
Honored Guest
4 years ago

Your manifest includes the following permissions restricted by Oculus

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?

3 Replies

  • 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.

     

  • This is still a thing, 2 and a half years later.
    I wrote up here how I got around the AndroidManifest Unity bug if it helps anyone. It is easier than the other APK tool method described here, but still a pain an should be fixed by Unity & Meta.
    https://www.stornaway.io/tech-tip-when-meta-quest-developer-hub-objects-to-android-permission-read_p...

    For search: The error reported by Meta Quest Developer Hub says:
    ERROR:
    • The upload could not be completed because your application contains the following Android permissions that are not supported:
    – android.permission.READ_PHONE_STATE
    Please remove the following permissions and upload your application binary again.

    It also contains the following complaint for permissions currently added by Unity despite using a custom manifest:
    Your manifest includes the following permissions restricted by Oculus:
    – android.permission.WRITE_EXTERNAL_STORAGE
    – android.permission.READ_EXTERNAL_STORAGE
    – android.permission.READ_MEDIA_AUDIO
    – android.permission.READ_MEDIA_VIDEO
    – android.permission.READ_MEDIA_IMAGES
    – android.permission.ACCESS_MEDIA_LOCATION
    – android.permission.READ_MEDIA_IMAGE
    These are not blocked up front in the same way as READ_PHONE_STATE above, but with a standard app you will need to remove these before submitting to the store in order for your app to be accepted.