Remove unwanted microphone permissions in Unity (Android)

By December 15, 2021Unity

Problem

when submitting a Unity App for Meta Labs (former Oculus Labs) you probably get the feedback that your app is asking for exessive permissions.

Your app is asking for the following excessive or inappropriate user permissions: [Record Audio / Access the microphone] Please remove all unnecessary permissions.

Solution

There are people describing very time consuming “solutions” out there, but this is much easier.

Add this to the beginning of AndroidManifest in plugins/android:

<manifest xmlns:android=”http://schemas.android.com/apk/res/android” android:installLocation=”auto” xmlns:tools=”http://schemas.android.com/tools” package=”com.unity3d.player”>

and this to remove the permissions:

<uses-permission android:name=”android.permission.RECORD_AUDIO” tools:node=”remove” />