Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
acr0mer's avatar
acr0mer
Explorer
2 years ago
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

 

  • 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

Replies have been turned off for this discussion
  • 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. 

     

    • acr0mer's avatar
      acr0mer
      Explorer

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

    • dts.entrenamiento's avatar
      dts.entrenamiento
      Honored Guest

      Hello! I tried using your solution but my app won't open. Can you still use this functionality now?

      • MetaStoreHelp's avatar
        MetaStoreHelp
        Community Manager

        Hi dts.entrenamiento 

         

        Thank you for sharing your experience with us ! We understand that you are having issues with using one of your apps. In order to receive the best help in your situation, you should contact our Developer Support Team, they will be more than happy to assist you with the issue you are encountering! 

         

        If you need further help, please don't hesitate to reach back out to us! 

         

        Keep the conversation going, we love to see the support within our Community!  🙂

  • 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.