Search Unity

Minimal AndroidManifest.xml to enable a permission

Discussion in 'Android' started by IcaroDLima, Dec 30, 2019.

  1. IcaroDLima

    IcaroDLima

    Joined:
    Aug 6, 2019
    Posts:
    25
    Is there an AndroidManifest template that I can only change one permission without causing any other side effects on existing AndroidManifests?

    For example, let's suppose that this is my AndroidManifest.xml:
    Code (XML):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.Example.Test" xmlns:tools="http://schemas.android.com/tools" android:installLocation="preferExternal">
    3. ...
    4. </manifest>
    Whenever I change my app's package name, will I have to remember to change my AndroidManifest.xml package name? Whenever I change installLocation, do I need to update on my AndroidManifest.xml?
     
  2. IcaroDLima

    IcaroDLima

    Joined:
    Aug 6, 2019
    Posts:
    25
    I think I solved my problem, getting AndroidManifest.xml from this place seems to be the most ideal:
    Code (CSharp):
    1. C:\Program Files\Unity\Hub\Editor\2018.4.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\Apk