UE 5.2 - Add "Category" to "AndroidManifest.xml"

Hi,

I’ve got a big issue trying to add a category to my “AndroidManifest.xml” file.
I’ve added a “ManifestRequirementsOverride.txt” file, but it’s not accepting the “category”. Anything, but not a category.

I tried with an APL.
This is my APL:

> <?xml version="1.0" encoding="utf-8"?>
> <root xmlns:android="http://schemas.android.com/apk/res/android">
>     <androidManifestUpdates>
>         <addTagWhereTag
>             tag="activity"
>             parentTag="application">
>             <intent-filter>
>                 <action android:name="android.intent.action.MAIN" />
>                 <category android:name="android.intent.category.INFO" />
>                 <category android:name="com.oculus.intent.category.VR" />
>             </intent-filter>
>         </addTagWhereTag>
>     </androidManifestUpdates>
> </root>

Still, it does not work.
I believe the APL is not written correctly. But I don’t know how to make it work properly.

Can anyone help me, please?

There’s another forum about this issue, but it’s for Unreal 4.2…it’s outdated.

Hi, you need to update the YourProject.build.cs

you need to include

using System.IO;

var androidRemovePermissions = Path.Combine(ModuleDirectory, “YOURFILE>_UPL.xml”);
AdditionalPropertiesForReceipt.Add(“AndroidPlugin”, androidRemovePermissions);

Hope this helps.

Hi! Thanks for your message!
I had already done that. After all the APL hasn’t helped me out. It was being read, but not doing anything.
An “AndroidManifestOverride.txt” and a check for the Oculus signature solved the problem.
Many thanks for the reply anyways! :slight_smile: