Skip to main content
New Participant
May 24, 2021

"Please remove all unnecessary permissions:"

I'm using Unity - I've submitted several versions of my app and haven't run into this before. I haven't added plugins. My Android Manifest doesn't show anything about camera permissions (or any other permissions). It says my build has a test failure but it doesn't show any test failures when I click through (just a warning). My latest build has gone live even with the note - but my other requests to the app have not been updated (app name change and pricing change). So I'm a bit confused about what to do with this:
 
Your build has a test failure, please address it before resubmitting
Please remove all unnecessary permissions:
"android.permission.CAMERA"

    2 replies

    New Participant
    June 12, 2021

    Hi, I think, problem is the same as this thread. In that case, i advice you to check up your third party assets imported first. --> https://forums.oculusvr.com/t5/Unity-Development/This-app-uses-permission-s-that-are-not-compatible-with-this/m-p/819464

    New Participant
    June 12, 2021

    Of course, there is always a wrong dirty working way. OVRManifestPreprocessor, function PatchAndroidManifest,  and add this code

     

    AddOrRemoveTag(doc,
    androidNamepsaceURI,
    "/manifest",
    "uses-permission",
    "android.permission.CAMERA",
    false,
    modifyIfFound: true);