diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp index 05ec6571b0d..6a5630c7502 100644 --- a/platform/android/export/export_plugin.cpp +++ b/platform/android/export/export_plugin.cpp @@ -987,14 +987,14 @@ void EditorExportPlatformAndroid::_fix_manifest(const Ref &p if (tname == "meta-data" && attrname == "name" && value == "xr_mode_metadata_name") { // Update the meta-data 'android:name' attribute based on the selected XR mode. - if (xr_mode_index == XR_MODE_OVR || xr_mode_index == XR_MODE_OPENXR) { + if (xr_mode_index == XR_MODE_OVR) { string_table.write[attr_value] = "com.samsung.android.vr.application.mode"; } } if (tname == "meta-data" && attrname == "value" && value == "xr_mode_metadata_value") { // Update the meta-data 'android:value' attribute based on the selected XR mode. - if (xr_mode_index == XR_MODE_OVR || xr_mode_index == XR_MODE_OPENXR) { + if (xr_mode_index == XR_MODE_OVR) { string_table.write[attr_value] = "vr_only"; } } diff --git a/platform/android/export/gradle_export_util.cpp b/platform/android/export/gradle_export_util.cpp index 8cfc28c972f..11cbc4d13e9 100644 --- a/platform/android/export/gradle_export_util.cpp +++ b/platform/android/export/gradle_export_util.cpp @@ -287,7 +287,9 @@ String _get_application_tag(const Ref &p_preset, bool p_has_ bool_to_string(p_has_storage_permission)); if (uses_xr) { - manifest_application_text += " \n"; + if (xr_mode_index == XR_MODE_OVR) { + manifest_application_text += " \n"; + } bool hand_tracking_enabled = (int)(p_preset->get("xr_features/hand_tracking")) > XR_HAND_TRACKING_NONE; if (hand_tracking_enabled) { @@ -297,6 +299,8 @@ String _get_application_tag(const Ref &p_preset, bool p_has_ " \n", hand_tracking_frequency); } + } else { + manifest_application_text += " \n"; } manifest_application_text += _get_activity_tag(p_preset); manifest_application_text += " \n"; diff --git a/platform/android/java/app/AndroidManifest.xml b/platform/android/java/app/AndroidManifest.xml index 8e3103efb0f..4b2bbd489ac 100644 --- a/platform/android/java/app/AndroidManifest.xml +++ b/platform/android/java/app/AndroidManifest.xml @@ -50,6 +50,12 @@ android:name="xr_hand_tracking_metadata_name" android:value="xr_hand_tracking_metadata_value"/> + + + +