Note: This question is specific to Unity3D
I have a very clean android manifest file in Unity project under
Plugins/Android/ folder with no
<uses-permissions/> tag at all. I believe that some permissions in final APK comes from Android Player Settings for-example
READ_EXTERNAL_STORAGE. In my Gear VR project I see following lines added in final manifest which can be accessed in
<uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-feature android:name="android.hardware.microphone" android:required="false" />
Now this is definitely coming from one of the plugins that I have in my project (I have many plugins).
My app is getting rejected from Oculus saying
Your app is asking for excessive user permissions for using user permissions inappropriately.
I found a workaround here, but I dont want to do such a thing as this may result in app rejection once again.
Is there a way I can find out that where this permission is coming from?
How to find out if there is some code in my scripts which causes unity to include this permission?