Custom Android Manifest File in Unity

The Android manifest file describes essential information about your app to the Android build tools, the Android operating system, and Google Play. Every Android app or unity app running on the Android platform must have a Manifest file. The manifest file contains information about package name, permissions, application name, icon, activities, services, providers and much more.

This post was originally posted at https://agrawalsuneet.github.io/blogs/custom-android-manifest-file-in-unity/ and reposted on Medium on 5th June 2021.

Usually, Unity takes care of this manifest file generation and putting it in the right place but sometimes we need to add some custom tags to the final generated manifest file like adding intent-filters to the activity tag.

We can add a custom manifest file and Unity will generate a merged manifest file at the end which will be shipped along with the final apk generated.

We can copy a basic structure of the custom manifest file from /Temp/StagingArea/AndroidManifest.xml
And can paste the modified AndroidManifest.xml at Assests/Plugins/Android/AndroidManifest.xml

Please note that if this file doesn’t exist for you, change the target platform to Android and build the Unity project once. It will generate the Temp folder and this file inside it. This is a temporary file that is created by Unity but we can copy it.

Please continue reading at https://agrawalsuneet.github.io/blogs/custom-android-manifest-file-in-unity/

That’s all for now. You can read my other interesting posts here or you can enjoy my games or apps listed here. Feel free to use my open-source Android components in your app listed here. Or drop an email, if you didn’t find what you are looking for and need some help.