-
Notifications
You must be signed in to change notification settings - Fork 260
/
Copy pathAndroidManifest.xml
75 lines (68 loc) · 3.04 KB
/
AndroidManifest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="auto"
android:versionCode="1"
android:versionName="1.0">
<!--
Copyright (c) 2017-2024, The Khronos Group Inc.
SPDX-License-Identifier: Apache-2.0
-->
<!-- Tell the system this app requires OpenGL ES 3.2. -->
<uses-feature
android:glEsVersion="0x00030002"
android:required="true" />
<!-- Tell the system this app works in either 3dof or 6dof mode -->
<uses-feature
android:name="android.hardware.vr.headtracking"
android:required="false"
android:version="1" />
<!-- Recommended for haptic feedback -->
<uses-permission android:name="android.permission.VIBRATE" />
<!-- If building externally with the OpenXR loader AAR, this would be merged in automatically. -->
<uses-permission android:name="org.khronos.openxr.permission.OPENXR" />
<uses-permission android:name="org.khronos.openxr.permission.OPENXR_SYSTEM" />
<queries>
<!-- to talk to the broker -->
<provider android:authorities="org.khronos.openxr.runtime_broker;org.khronos.openxr.system_runtime_broker" />
<!-- so client-side code of runtime/layers can talk to their service sides -->
<intent>
<action android:name="org.khronos.openxr.OpenXRRuntimeService" />
</intent>
<intent>
<action android:name="org.khronos.openxr.OpenXRApiLayerService" />
</intent>
</queries>
<!-- end of elements normally merged from the OpenXR loader AAR -->
<application
android:allowBackup="true"
android:hasCode="false"
android:icon="@mipmap/ic_helloxr_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_helloxr_launcher">
<!-- The activity is the built-in NativeActivity framework class. -->
<!-- launchMode is set to singleTask because there should never be multiple copies of the app running. -->
<!-- Theme.Black.NoTitleBar.Fullscreen gives solid black instead of a (bad stereoscopic) gradient on app transition. -->
<activity
android:name="android.app.NativeActivity"
android:configChanges="screenSize|screenLayout|orientation|keyboardHidden|keyboard|navigation|uiMode|density"
android:excludeFromRecents="false"
android:launchMode="singleTask"
android:resizeableActivity="false"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
android:exported="true"
tools:ignore="NonResizeableActivity">
<!-- Tell NativeActivity the name of the .so -->
<meta-data
android:name="android.app.lib_name"
android:value="hello_xr" />
<!-- This filter lets the apk show up as a launchable icon. -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="org.khronos.openxr.intent.category.IMMERSIVE_HMD" />
</intent-filter>
</activity>
</application>
</manifest>