# Remove Permissions Android Manifest

**URL:** <https://forums.unrealengine.com/t/remove-permissions-android-manifest/490305>\
**Category:** Mobile\
**Tags:** Android-Packaging, removal, permission, unreal-engine, Android, question\
**Created:** [October 27, 2021, 1:04pm UTC](https://forums.unrealengine.com/t/remove-permissions-android-manifest/490305 "2021-10-27T13:04:13Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![AquaRex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AquaRex](https://forums.unrealengine.com/u/AquaRex)\
**Post date:** [October 27, 2021, 1:04pm UTC](https://forums.unrealengine.com/t/remove-permissions-android-manifest/490305/1 "2021-10-27T13:04:13Z")

</div>

Hello!

I need help removing certain permissions from an Android Packaged game for release on Oculus Quest. I have been unable to find any reliable solution anywhere guiding me in any valuable direction on how to do this simple and required task before any publishing.

I created a ManifestRequirementsOverride.txt, that includes NO permissions, but AndroidManifest is not being updated and still includes these permissions. Modifying AndroidManifest doesn’t work and is not recommended, so how the hell are we supposed to do this? Why does Unreal Engine not include a field to enter permissions to REMOVE or EXCLUDE from the Packaged app, instead of the entirely useless “Extra Permissions” field, considering I seem to already have all concievable permissions enabled by default.

How do you REMOVE permissions from a Packaged App…  
This app is being published for Oculus Quest.  
I need NO permissions, and the permissions that are preventing me from publishing are:  
READ\_EXTERNAL\_STORAGE and ACCESS\_MEDIA\_STORAGE

If you are able to help in any way, THANK YOU!

---

<div class="post-metadata">

**Author:** ![AquaRex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AquaRex](https://forums.unrealengine.com/u/AquaRex)\
**Post date:** [November 1, 2021, 1:39pm UTC](https://forums.unrealengine.com/t/remove-permissions-android-manifest/490305/2 "2021-11-01T13:39:01Z")

</div>

I managed to find the solution to this based on help from Unity people.

By adding this to your Extra Tags for manifest node:

```
xmlns:tools="http://schemas.android.com/tools"

```

(ignore the trailing “\>” at the end in this picture: )  
 ![351421-extratags.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/7/40742aa0f3c24ae4b056f8b2387cb345fbe9deb3.png)

You can use the “tools” attributes in your RequirementsManifestOverride.txt.  
This allows you to add attributes such as: tools:node=“remove”.

Then add this in your RequirementsManifestOverride.txt:

```
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" tools:node="remove" />
<uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" tools:node="remove" />

```

This worked in removing the permissions in my case.

Since I could find little helpful information on this myself.  
I’m leaving this here in case it helps someone else!

---

<div class="post-metadata">

**Author:** ![BigBankHankster](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bigbankhankster/32/1021263_2.png) [@BigBankHankster](https://forums.unrealengine.com/u/BigBankHankster)\
**Post date:** [March 17, 2022, 6:48pm UTC](https://forums.unrealengine.com/t/remove-permissions-android-manifest/490305/3 "2022-03-17T18:48:28Z")

</div>

Does this work with Blueprint projects?

---

<div class="post-metadata">

**Author:** ![AquaRex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AquaRex](https://forums.unrealengine.com/u/AquaRex)\
**Post date:** [March 21, 2022, 2:22pm UTC](https://forums.unrealengine.com/t/remove-permissions-android-manifest/490305/4 "2022-03-21T14:22:37Z")

</div>

Yes

---

<div class="post-metadata">

**Author:** ![lbowes\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lbowes\_1](https://forums.unrealengine.com/u/lbowes_1)\
**Post date:** [December 16, 2022, 2:16am UTC](https://forums.unrealengine.com/t/remove-permissions-android-manifest/490305/5 "2022-12-16T02:16:01Z")

</div>

For anyone else just blindly copying what they see in the first code box, **remove the trailing \>**! The contents of the Extra Tags box should read:

```auto
xmlns:tools="http://schemas.android.com/tools"

```

Hopefully this saves someone 10 minutes.

---

<div class="post-metadata">

**Author:** ![chuklov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chuklov](https://forums.unrealengine.com/u/chuklov)\
**Post date:** [November 26, 2023, 1:52am UTC](https://forums.unrealengine.com/t/remove-permissions-android-manifest/490305/7 "2023-11-26T01:52:15Z")

</div>

@lbowes_1@AquaRex Where the txt file should be located?

---

<div class="post-metadata">

**Author:** ![chuklov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chuklov](https://forums.unrealengine.com/u/chuklov)\
**Post date:** [November 26, 2023, 5:01pm UTC](https://forums.unrealengine.com/t/remove-permissions-android-manifest/490305/8 "2023-11-26T17:01:05Z")

</div>

None of that worked for me, I had to change AndroidManifest manually and use gradle build bat to compile APK with changes. Only this way it works with Unreal Engine 5.3

---

<div class="post-metadata">

**Author:** ![xSpeedy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xSpeedy](https://forums.unrealengine.com/u/xSpeedy)\
**Post date:** [December 18, 2023, 5:07pm UTC](https://forums.unrealengine.com/t/remove-permissions-android-manifest/490305/10 "2023-12-18T17:07:00Z")

</div>

Can you post a tutorial?

---

<div class="post-metadata">

**Author:** ![chuklov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chuklov](https://forums.unrealengine.com/u/chuklov)\
**Post date:** [December 19, 2023, 8:54pm UTC](https://forums.unrealengine.com/t/remove-permissions-android-manifest/490305/11 "2023-12-19T20:54:29Z")

</div>

I will try to make it for you, but not sure this is suitable for publishing purposes.

---

<div class="post-metadata">

**Author:** ![xSpeedy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xSpeedy](https://forums.unrealengine.com/u/xSpeedy)\
**Post date:** [December 19, 2023, 9:36pm UTC](https://forums.unrealengine.com/t/remove-permissions-android-manifest/490305/12 "2023-12-19T21:36:00Z")

</div>

I managed to make it work with UPL, and the permissions I couldn’t get rid of were aded by another UPL from admob goodies plugin. So I had to modify that.

---

<div class="post-metadata">

**Author:** ![chuklov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chuklov](https://forums.unrealengine.com/u/chuklov)\
**Post date:** [December 20, 2023, 2:05am UTC](https://forums.unrealengine.com/t/remove-permissions-android-manifest/490305/13 "2023-12-20T02:05:49Z")

</div>

> [@xSpeedy](#):
>
> UPL, and the permissions I couldn’t get rid of were aded by another UPL from admob goodies plugin. So I had to modify that.

Can you please share with me how have you managed to work with UPL? I cannot find any working tutorial or instruction for that matter.

Thanks.

---

<div class="post-metadata">

**Author:** ![xSpeedy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xSpeedy](https://forums.unrealengine.com/u/xSpeedy)\
**Post date:** [December 21, 2023, 10:51am UTC](https://forums.unrealengine.com/t/remove-permissions-android-manifest/490305/14 "2023-12-21T10:51:30Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/1/ee1e0a50d8aba5d948fe295f6883e71ecfadeb67.jpeg "Unreal Engine 4 Tutorials: How to Remove Unwanted Android Permissions using UPL (needed for Oculus)") ](https://www.youtube.com/watch?v=vMBwlkoCf_o&t=171s)

Do what it’s in this tutorial, and change var manifestfile to string manifestfile.

If you have permissions that you removed in UPL still appear in AndroidManifest.XML your UPL gets merged with another UPL from a plugin most likely or unreal source code.

Search from where that permission is getting added, you need to search every UPL file and rebuild the plugin with your changes or unreal from source.

I don’t think it’s from the engine’s code it’s 99% from a plugin.
