Skip to main content
Inspiring
April 24, 2024
Solved

Disable guardian at runtime in Mixed Reality Apps (Unreal)

Hi, as you know we don't need guardian any more with mixed reality 

While looking for a solution for this I found this code under unity topic 

<uses-feature android:name="com.oculus.feature.CONTEXTUAL_BOUNDARYLESS_APP" android:required="true" />

They just adding this to AndroidManifest.xml for unity 

Problem is Unreal documention say "You should never edit the AndroidManifest.xml file under any circumstances. Any edits that need to be made to the AndroidManifest.xml file should be done inside the UE Editor in the Advanced APK Packing section."
I couldn't figure out how to add the code to that section. 
when i add as a extra setting (code line) i couldnt build it i can try as a tag but  i dont know how does it work
any idea would help

 

    This topic has been closed for replies.
    swang81Answer
    Inspiring
    April 24, 2024

    1. go to project\build\Android\, add a empty new file "ManifestRequirementsOverride.txt", add the line 

    <uses-feature android:name="com.oculus.feature.CONTEXTUAL_BOUNDARYLESS_APP" android:required="true" />

    2. build the package and install it into headset. 

    3.  when you open the app,  it will give you some tips about no guardian. 

     

    7 replies

    swang81Answer
    Inspiring
    April 24, 2024

    1. go to project\build\Android\, add a empty new file "ManifestRequirementsOverride.txt", add the line 

    <uses-feature android:name="com.oculus.feature.CONTEXTUAL_BOUNDARYLESS_APP" android:required="true" />

    2. build the package and install it into headset. 

    3.  when you open the app,  it will give you some tips about no guardian. 

     

    acr0merAuthor
    Inspiring
    May 4, 2024

    I can't thank you enough This answer is very valuable to me. 🙏

    Inspiring
    November 27, 2024

    Definitely. I have two apps in the Meta Store (PozeAR and SprintAR) using this feature.

    New Participant
    January 12, 2025

    The accepted solution here involving ManifestRequirementsOverride.txt causes my MR Template app to crash on launch.

    Luckily, I found that I can just turn on these two checkboxes to do this.