# How do i override android:icon tags in application node in android manifest

**URL:** <https://forums.unrealengine.com/t/how-do-i-override-android-icon-tags-in-application-node-in-android-manifest/426622>\
**Category:** Mobile\
**Tags:** manifest, unreal-engine, Android, question\
**Created:** [June 4, 2018, 4:41am UTC](https://forums.unrealengine.com/t/how-do-i-override-android-icon-tags-in-application-node-in-android-manifest/426622 "2018-06-04T04:41:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shukenmg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shukenmg](https://forums.unrealengine.com/u/shukenmg)\
**Post date:** [June 4, 2018, 4:41am UTC](https://forums.unrealengine.com/t/how-do-i-override-android-icon-tags-in-application-node-in-android-manifest/426622/1 "2018-06-04T04:41:36Z")

</div>

I have a make some android icons but its blurry.

> <https://stackoverflow.com/questions/16271491/android-application-icon-goes-blurry>

The first answer here says that a mipmap icon is better.

So i renamed the app icons folders to mipmap instead of drawable.  
But now i can’t change the android manifest android:icon tags in application node.

How can i override it?

Thanks.

---

<div class="post-metadata">

**Author:** ![An\_Angry\_Torkoal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@An\_Angry\_Torkoal](https://forums.unrealengine.com/u/An_Angry_Torkoal)\
**Post date:** [December 28, 2023, 7:13pm UTC](https://forums.unrealengine.com/t/how-do-i-override-android-icon-tags-in-application-node-in-android-manifest/426622/2 "2023-12-28T19:13:13Z")

</div>

This is how I solved this for Unreal Engine 5.1:

I used [Unreal Plugin Language](https://docs.unrealengine.com/4.27/en-US/SharingAndReleasing/Mobile/UnrealPluginLanguage/) (UPL) to edit the AndroidManifest.xml at build time. To figure this out myself, I mostly followed [this article](https://www.unrealengine.com/en-US/tech-blog/adding-adaptive-icons-to-a-ue4-project-for-android); specifically the section “Using a Round Icon”.

To summarize: create a .xml file next to your Build.cs file (often at Source/{Project}/{Project}.Build.cs). I named mine AddAdaptiveIcon\_UPL.xml. The contents should look something like this:

```auto
<?xml version="1.0" encoding="utf-8"?>
<root xmlns:android="http://schemas.android.com/apk/res/android">
	<!-- init section is always evaluated once per architecture -->
	<init>
	</init>

	<androidManifestUpdates>
		<!-- remove existing android:icon attribute -->
		<removeAttribute tag="application" name="android:icon"/>
		<!-- add desired android:icon attribute -->
		<addAttribute tag="application" name="android:icon" value="@mipmap/ic_launcher"/>
	</androidManifestUpdates>
</root>

```

Of course, my icon xml file is called ic\_launcher.xml and is in **Build/Android/res/mipmap-anydpi-v26/** , but edit your UPL script to point to yours.

Then, once you’ve done this, you need to tell unreal engine to actually run your UPL script. To do this, add the following lines to your Build.cs file:

```auto
if (Target.Platform == UnrealTargetPlatform.Android)
{
    // Add UPL to add configrules.txt to our APK
    string PluginPath = Utils.MakePathRelativeTo(ModuleDirectory, Target.RelativeEnginePath);
    AdditionalPropertiesForReceipt.Add("AndroidPlugin", System.IO.Path.Combine(PluginPath, "AddAdaptiveIcon_UPL.xml"));
}

```

I should add, I copied these lines for Build.cs from the article I posted above and don’t know the nuances of how it works, especially the pathing stuff. It worked the first time and now I’m afraid to touch it =)

Anyway, now when you build and package your android project, it should work like you expect.

---

<div class="post-metadata">

**Author:** ![HeroCode](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HeroCode](https://forums.unrealengine.com/u/HeroCode)\
**Post date:** [January 21, 2024, 1:50am UTC](https://forums.unrealengine.com/t/how-do-i-override-android-icon-tags-in-application-node-in-android-manifest/426622/3 "2024-01-21T01:50:40Z")

</div>

This reply saved me so much time and worked perfectly. Thank you so much!

---

<div class="post-metadata">

**Author:** ![Kakeb141](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kakeb141](https://forums.unrealengine.com/u/Kakeb141)\
**Post date:** [March 27, 2024, 3:49pm UTC](https://forums.unrealengine.com/t/how-do-i-override-android-icon-tags-in-application-node-in-android-manifest/426622/4 "2024-03-27T15:49:44Z")

</div>

Thanks a lot for sharing this!
