Version bump to 5.9.4
[strongswan.git] / src / frontends / android / app / src / main / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 Copyright (C) 2012-2020 Tobias Brunner
4 Copyright (C) 2012 Giuliano Grassi
5 Copyright (C) 2012 Ralf Sager
6 HSR Hochschule fuer Technik Rapperswil
7
8 This program is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 2 of the License, or (at your
11 option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
12
13 This program is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
17 -->
18 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
19 xmlns:tools="http://schemas.android.com/tools"
20 package="org.strongswan.android">
21
22 <uses-permission android:name="android.permission.INTERNET" />
23 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
24 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
25 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
26 <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
27 <!-- necessary to allow users to select ex-/included apps and EAP-TNC -->
28 <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"
29 tools:ignore="QueryAllPackagesPermission" />
30
31 <application
32 android:name=".logic.StrongSwanApplication"
33 android:icon="@mipmap/ic_launcher"
34 android:label="@string/app_name"
35 android:theme="@style/ApplicationTheme"
36 android:networkSecurityConfig="@xml/network_security_config"
37 android:allowBackup="false" >
38 <activity
39 android:name=".ui.MainActivity"
40 android:label="@string/main_activity_name"
41 android:launchMode="singleTop" >
42 <intent-filter>
43 <action android:name="android.intent.action.MAIN" />
44 <category android:name="android.intent.category.LAUNCHER" />
45 </intent-filter>
46 <intent-filter>
47 <action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" />
48 </intent-filter>
49 </activity>
50 <activity
51 android:name=".ui.VpnProfileControlActivity"
52 android:theme="@style/TransparentActivity"
53 android:taskAffinity=""
54 android:excludeFromRecents="true"
55 android:launchMode="singleTask" >
56 <intent-filter>
57 <action android:name="org.strongswan.android.action.START_PROFILE" />
58 <category android:name="android.intent.category.DEFAULT" />
59 </intent-filter>
60 <intent-filter>
61 <action android:name="org.strongswan.android.action.DISCONNECT" />
62 <category android:name="android.intent.category.DEFAULT" />
63 </intent-filter>
64 </activity>
65 <activity
66 android:name=".ui.VpnProfileDetailActivity" >
67 </activity>
68 <activity
69 android:name=".ui.TrustedCertificatesActivity"
70 android:label="@string/trusted_certs_title" >
71 </activity>
72 <activity
73 android:name=".ui.SelectedApplicationsActivity"
74 android:label="@string/profile_select_apps" >
75 </activity>
76 <activity
77 android:name=".ui.LogActivity"
78 android:label="@string/log_title" >
79 </activity>
80 <activity
81 android:name=".ui.SettingsActivity"
82 android:label="@string/pref_title">
83 </activity>
84 <activity
85 android:name=".ui.RemediationInstructionsActivity"
86 android:label="@string/remediation_instructions_title" >
87 </activity>
88 <activity
89 android:name=".ui.VpnProfileSelectActivity"
90 android:label="@string/strongswan_shortcut"
91 android:icon="@mipmap/ic_shortcut" >
92 <intent-filter>
93 <action android:name="android.intent.action.CREATE_SHORTCUT" />
94 <category android:name="android.intent.category.DEFAULT" />
95 </intent-filter>
96 </activity>
97 <activity
98 android:name=".ui.VpnProfileImportActivity"
99 android:label="@string/profile_import"
100 android:taskAffinity=""
101 android:excludeFromRecents="true" >
102 <intent-filter>
103 <action android:name="android.intent.action.VIEW" />
104 <category android:name="android.intent.category.DEFAULT" />
105 <category android:name="android.intent.category.BROWSABLE" />
106 <data android:scheme="http" />
107 <data android:scheme="https" />
108 <data android:scheme="file" />
109 <data android:scheme="content" />
110 <data android:mimeType="application/vnd.strongswan.profile" />
111 </intent-filter>
112 <!-- this matches by file extension if no MIME type is provided -->
113 <intent-filter>
114 <action android:name="android.intent.action.VIEW" />
115 <category android:name="android.intent.category.DEFAULT" />
116 <category android:name="android.intent.category.BROWSABLE" />
117 <data android:scheme="http" />
118 <data android:scheme="https" />
119 <data android:scheme="file" />
120 <data android:scheme="content" />
121 <data android:host="*" />
122 <data android:pathPattern=".*\\..*\\..*\\..*\\.sswan" />
123 <data android:pathPattern=".*\\..*\\..*\\.sswan" />
124 <data android:pathPattern=".*\\..*\\.sswan" />
125 <data android:pathPattern=".*\\.sswan" />
126 </intent-filter>
127 <!-- this matches by file extension if any MIME type (but not ours) is provided -->
128 <intent-filter>
129 <action android:name="android.intent.action.VIEW" />
130 <category android:name="android.intent.category.DEFAULT" />
131 <category android:name="android.intent.category.BROWSABLE" />
132 <data android:scheme="http" />
133 <data android:scheme="https" />
134 <data android:scheme="file" />
135 <data android:scheme="content" />
136 <data android:host="*" />
137 <data android:mimeType="*/*" />
138 <data android:pathPattern=".*\\..*\\..*\\..*\\.sswan" />
139 <data android:pathPattern=".*\\..*\\..*\\.sswan" />
140 <data android:pathPattern=".*\\..*\\.sswan" />
141 <data android:pathPattern=".*\\.sswan" />
142 </intent-filter>
143 </activity>
144 <activity
145 android:name=".ui.TrustedCertificateImportActivity"
146 android:label="@string/import_certificate"
147 android:theme="@style/TransparentActivity" >
148 <intent-filter tools:ignore="AppLinkUrlError">
149 <action android:name="android.intent.action.VIEW" />
150 <category android:name="android.intent.category.DEFAULT" />
151 <data android:mimeType="application/x-x509-ca-cert" />
152 <data android:mimeType="application/x-x509-server-cert" />
153 <data android:mimeType="application/x-pem-file" />
154 <data android:mimeType="application/pkix-cert" />
155 </intent-filter>
156 </activity>
157
158 <service
159 android:name=".logic.VpnStateService"
160 android:exported="false" >
161 </service>
162 <service
163 android:name=".logic.CharonVpnService"
164 android:exported="false"
165 android:permission="android.permission.BIND_VPN_SERVICE" >
166 <intent-filter>
167 <action android:name="android.net.VpnService" />
168 </intent-filter>
169 </service>
170 <service
171 android:name=".ui.VpnTileService"
172 android:label="@string/tile_default"
173 android:icon="@drawable/ic_notification"
174 android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
175 <intent-filter>
176 <action android:name="android.service.quicksettings.action.QS_TILE" />
177 </intent-filter>
178 </service>
179
180 <provider
181 android:name=".data.LogContentProvider"
182 android:authorities="org.strongswan.android.content.log"
183 android:exported="true" >
184 <!-- android:grantUriPermissions="true" combined with a custom permission does
185 not work (probably too many indirections with ACTION_SEND) so we secure
186 this provider with a custom ticketing system -->
187 </provider>
188 </application>
189
190 </manifest>