# How to enable or remove special permissions for my app?

**URL:** <https://forums.unrealengine.com/t/how-to-enable-or-remove-special-permissions-for-my-app/52571>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [January 16, 2016, 3:39am UTC](https://forums.unrealengine.com/t/how-to-enable-or-remove-special-permissions-for-my-app/52571 "2016-01-16T03:39:19Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spookey0188](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spookey0188](https://forums.unrealengine.com/u/Spookey0188)\
**Post date:** [January 16, 2016, 3:39am UTC](https://forums.unrealengine.com/t/how-to-enable-or-remove-special-permissions-for-my-app/52571/1 "2016-01-16T03:39:19Z")

</div>

My app requires special permissions that my app doesn’t even use for

ex:  
identity find accounts on the device  
read phone status and identity modify or delete the contents of your USB storage  
view Wi-Fi connections  
read phone status and identity

My app doesn’t do any of this, how do i remove these permissions?

---

<div class="post-metadata">

**Author:** ![Amsanity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Amsanity](https://forums.unrealengine.com/u/Amsanity)\
**Post date:** [January 18, 2016, 9:21am UTC](https://forums.unrealengine.com/t/how-to-enable-or-remove-special-permissions-for-my-app/52571/2 "2016-01-18T09:21:01Z")

</div>

Hi, the permissions are set in the AndroidManifest, which is these days accessed via de Project Settings.

Taken from: [Extra Permissions entered twice into AndroidManifest.xml - Mobile - Unreal Engine Forums](https://answers.unrealengine.com/questions/259936/extra-permissions-entered-twice-into-androidmanife.html)

 ![50891-permission.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/a/eaa5aef1de83ca654161d693e82f059effa6c56c.png)

---

<div class="post-metadata">

**Author:** ![Spookey0188](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spookey0188](https://forums.unrealengine.com/u/Spookey0188)\
**Post date:** [January 19, 2016, 2:07am UTC](https://forums.unrealengine.com/t/how-to-enable-or-remove-special-permissions-for-my-app/52571/3 "2016-01-19T02:07:48Z")

</div>

Ya i already know that however there are some special permissions you can’t remove in the project settings found in the AndroidManifest

![permissions.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/4/3/f430abd86a97953bdb0f35a8b7370ba44021ed09.png)

However, I can’t modify the XML file in my project directory because it’ll revert back. How do I remove them?

---

<div class="post-metadata">

**Author:** ![Chris\_Babcock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chris\_Babcock](https://forums.unrealengine.com/u/Chris_Babcock)\
**Post date:** [January 19, 2016, 6:04pm UTC](https://forums.unrealengine.com/t/how-to-enable-or-remove-special-permissions-for-my-app/52571/5 "2016-01-19T18:04:45Z")

</div>

Hi Spookey0188,

You can create an override file for the Requirements section of the XML with just the ones you want. Create a file in your project’s Build/Android called ManifestRequirementsOverride.txt. Everything after the \<!-- Requirements → up to \</manifest\> in AndroidManifest.xml will be replaced with whatever you put in there.

---

<div class="post-metadata">

**Author:** ![Distul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Distul](https://forums.unrealengine.com/u/Distul)\
**Post date:** [January 19, 2016, 10:29pm UTC](https://forums.unrealengine.com/t/how-to-enable-or-remove-special-permissions-for-my-app/52571/6 "2016-01-19T22:29:38Z")

</div>

Speaking of Wake\_Lock, is there a way to actually make this call? The screen times out if they aren’t touching the display.

---

<div class="post-metadata">

**Author:** ![Chris\_Babcock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chris\_Babcock](https://forums.unrealengine.com/u/Chris_Babcock)\
**Post date:** [January 20, 2016, 12:50am UTC](https://forums.unrealengine.com/t/how-to-enable-or-remove-special-permissions-for-my-app/52571/7 "2016-01-20T00:50:03Z")

</div>

Hi Distul,

Yes, use the Control Screensaver BP node, or from code:

```auto

 FPlatformMisc::ControlScreensaver(bAllowScreenSaver ? FPlatformMisc::EScreenSaverAction::Enable : FPlatformMisc::EScreenSaverAction::Disable);

```

---

<div class="post-metadata">

**Author:** ![Distul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Distul](https://forums.unrealengine.com/u/Distul)\
**Post date:** [January 21, 2016, 2:24am UTC](https://forums.unrealengine.com/t/how-to-enable-or-remove-special-permissions-for-my-app/52571/8 "2016-01-21T02:24:10Z")

</div>

> [@Chris Babcock;457382](#):
>
> Hi Distul,
> 
> Yes, use the Control Screensaver BP node, or from code:
> 
> ```auto
> 
> FPlatformMisc::ControlScreensaver(bAllowScreenSaver ? FPlatformMisc::EScreenSaverAction::Enable : FPlatformMisc::EScreenSaverAction::Disable);
> 
> ```

Awesome, thanks.

---

<div class="post-metadata">

**Author:** ![RedSpotSylphina](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redspotsylphina/32/1194674_2.png) [@RedSpotSylphina](https://forums.unrealengine.com/u/RedSpotSylphina)\
**Post date:** [March 3, 2016, 9:58pm UTC](https://forums.unrealengine.com/t/how-to-enable-or-remove-special-permissions-for-my-app/52571/9 "2016-03-03T21:58:17Z")

</div>

Hello.

Should I make ManifestRequirementsOverride.txt file completely empty to remove all permissions, or it has to contain something specific in order to work?

---

<div class="post-metadata">

**Author:** ![Chris\_Babcock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chris\_Babcock](https://forums.unrealengine.com/u/Chris_Babcock)\
**Post date:** [March 3, 2016, 10:58pm UTC](https://forums.unrealengine.com/t/how-to-enable-or-remove-special-permissions-for-my-app/52571/10 "2016-03-03T22:58:20Z")

</div>

You need a minimum set just for it to work; do not just create an empty file.

---

<div class="post-metadata">

**Author:** ![RedSpotSylphina](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redspotsylphina/32/1194674_2.png) [@RedSpotSylphina](https://forums.unrealengine.com/u/RedSpotSylphina)\
**Post date:** [March 4, 2016, 1:36pm UTC](https://forums.unrealengine.com/t/how-to-enable-or-remove-special-permissions-for-my-app/52571/11 "2016-03-04T13:36:09Z")

</div>

> [@Chris Babcock;486414](#):
>
> You need a minimum set just for it to work; do not just create an empty file.

Ok, thanks.

---

<div class="post-metadata">

**Author:** ![liam.vd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@liam.vd](https://forums.unrealengine.com/u/liam.vd)\
**Post date:** [January 25, 2019, 10:45am UTC](https://forums.unrealengine.com/t/how-to-enable-or-remove-special-permissions-for-my-app/52571/12 "2019-01-25T10:45:34Z")

</div>

Don’t work anymore ? I tried now on 4.21.2 version and still have the issues “need permissions read\_phone\_State” but i don’t care about this permissions

---

<div class="post-metadata">

**Author:** ![Jonas\_M](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jonas\_M](https://forums.unrealengine.com/u/Jonas_M)\
**Post date:** [February 7, 2020, 4:26pm UTC](https://forums.unrealengine.com/t/how-to-enable-or-remove-special-permissions-for-my-app/52571/13 "2020-02-07T16:26:34Z")

</div>

I had a similar issue of my own. I’m packaging for the Oculus Go. However, the AndroidManifest.xml was requesting access to the camera. This prevents an upload to the Oculus Go store.

\<uses-permission android:name=“android.permission.CAMERA” /\>  
\<uses-feature android:name=“android.hardware.camera.ar” android:required=“true” /\>

I also tried the ManifestRequirementsOverride.txt. That method doesn’t remove those permission request from the manifest.

It turns out, the google ar plugin was requesting the permission. I disabled that and it no longer asks for permission.

My thought is that plugins have priority over the ManifestRequirementsOverride.txt. I don’t have any proof for that though.

---

<div class="post-metadata">

**Author:** ![gokhanaydal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gokhanaydal](https://forums.unrealengine.com/u/gokhanaydal)\
**Post date:** [February 1, 2023, 6:06pm UTC](https://forums.unrealengine.com/t/how-to-enable-or-remove-special-permissions-for-my-app/52571/14 "2023-02-01T18:06:55Z")

</div>

Hey Guys, I had the same problem and fixed it now with some different site informations.  
What should you do:  
1- Go to your project forder, then build - android:  
Mycase: C:\Users\pc\Desktop\uegame\SpeedBall\_MobileR\Build\Android

2- Add ManifestRequirementsOverride.txt

3-Inside ManifestRequirementsOverride.txt, I wrote the necessary permissions only, without adding beginning requirements and the last manifest

4-Just whatever you need, keep them there, then I realize that My application doesn’t want these permissions anymore now 🙂

5- Then Thank me 🕶  
I hope it will make you save some time…
