title: How to add permissions to Unity android application?
body: <p>In native android application if I need to declare that my application is going to use any permissions first of all I need to add them to AndroidManifest.xml file, like here</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      package=&quot;com.co.ar&quot;&gt;
  
      &lt;uses-permission android:name=&quot;android.permission.CAMERA&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.RECORD_AUDIO&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.READ_EXTERNAL_STORAGE&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot; /&gt;
  
  ...
  </code></pre>
  <p>And this way I can just open application settings on the phone and see what permissions this application is using.</p>
  <p>In unity I don't see a way to declare permissions that application is going to use. I found out according to this documentation</p>
  <p><a href="https://docs.unity3d.com/2020.1/Documentation/Manual/android-manifest.html" rel="nofollow noreferrer">https://docs.unity3d.com/2020.1/Documentation/Manual/android-manifest.html</a></p>
  <p>There is <code>LibraryManifest.xml</code> that responsible for permissions, I found this file and add there permissions I need, but because of this file is generated so every time I make new build it rewrites.</p>