android: Add networkSecurityConfig to fetch CLRs/OCSP via HTTP
[strongswan.git] / src / frontends / android / app / src / main / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 Copyright (C) 2012-2018 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 package="org.strongswan.android">
20
21 <uses-permission android:name="android.permission.INTERNET" />
22 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
23 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
24 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
25
26 <application
27 android:name=".logic.StrongSwanApplication"
28 android:icon="@mipmap/ic_launcher"
29 android:label="@string/app_name"
30 android:theme="@style/ApplicationTheme"
31 android:networkSecurityConfig="@xml/network_security_config"
32 android:allowBackup="false" >
33 <activity
34 android:name=".ui.MainActivity"
35 android:label="@string/main_activity_name"
36 android:launchMode="singleTop" >
37 <intent-filter>
38 <action android:name="android.intent.action.MAIN" />
39 <category android:name="android.intent.category.LAUNCHER" />
40 </intent-filter>
41 <intent-filter>
42 <action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" />
43 </intent-filter>
44 </activity>
45 <activity
46 android:name=".ui.VpnProfileControlActivity"
47 android:theme="@style/TransparentActivity"
48 android:taskAffinity=""
49 android:excludeFromRecents="true"
50 android:launchMode="singleTask" >
51 <intent-filter>
52 <action android:name="org.strongswan.android.action.START_PROFILE" />
53 <category android:name="android.intent.category.DEFAULT" />
54 </intent-filter>
55 <intent-filter>
56 <action android:name="org.strongswan.android.action.DISCONNECT" />
57 <category android:name="android.intent.category.DEFAULT" />
58 </intent-filter>
59 </activity>
60 <activity
61 android:name=".ui.VpnProfileDetailActivity" >
62 </activity>
63 <activity
64 android:name=".ui.TrustedCertificatesActivity"
65 android:label="@string/trusted_certs_title" >
66 </activity>
67 <activity
68 android:name=".ui.SelectedApplicationsActivity"
69 android:label="@string/profile_select_apps" >
70 </activity>
71 <activity
72 android:name=".ui.LogActivity"
73 android:label="@string/log_title" >
74 </activity>
75 <activity
76 android:name=".ui.SettingsActivity"
77 android:label="@string/pref_title">
78 </activity>
79 <activity
80 android:name=".ui.RemediationInstructionsActivity"
81 android:label="@string/remediation_instructions_title" >
82 </activity>
83 <activity
84 android:name=".ui.VpnProfileSelectActivity"
85 android:label="@string/strongswan_shortcut"
86 android:icon="@mipmap/ic_shortcut" >
87 <intent-filter>
88 <action android:name="android.intent.action.CREATE_SHORTCUT" />
89 <category android:name="android.intent.category.DEFAULT" />
90 </intent-filter>
91 </activity>
92 <activity
93 android:name=".ui.VpnProfileImportActivity"
94 android:label="@string/profile_import"
95 android:taskAffinity=""
96 android:excludeFromRecents="true" >
97 <intent-filter>
98 <action android:name="android.intent.action.VIEW" />
99 <category android:name="android.intent.category.DEFAULT" />
100 <category android:name="android.intent.category.BROWSABLE" />
101 <data android:scheme="http" />
102 <data android:scheme="https" />
103 <data android:scheme="file" />
104 <data android:scheme="content" />
105 <data android:mimeType="application/vnd.strongswan.profile" />
106 </intent-filter>
107 <!-- this matches by file extension if no MIME type is provided -->
108 <intent-filter>
109 <action android:name="android.intent.action.VIEW" />
110 <category android:name="android.intent.category.DEFAULT" />
111 <category android:name="android.intent.category.BROWSABLE" />
112 <data android:scheme="http" />
113 <data android:scheme="https" />
114 <data android:scheme="file" />
115 <data android:scheme="content" />
116 <data android:host="*" />
117 <data android:pathPattern=".*\\..*\\..*\\..*\\.sswan" />
118 <data android:pathPattern=".*\\..*\\..*\\.sswan" />
119 <data android:pathPattern=".*\\..*\\.sswan" />
120 <data android:pathPattern=".*\\.sswan" />
121 </intent-filter>
122 <!-- this matches by file extension if any MIME type (but not ours) is provided -->
123 <intent-filter>
124 <action android:name="android.intent.action.VIEW" />
125 <category android:name="android.intent.category.DEFAULT" />
126 <category android:name="android.intent.category.BROWSABLE" />
127 <data android:scheme="http" />
128 <data android:scheme="https" />
129 <data android:scheme="file" />
130 <data android:scheme="content" />
131 <data android:host="*" />
132 <data android:mimeType="*/*" />
133 <data android:pathPattern=".*\\..*\\..*\\..*\\.sswan" />
134 <data android:pathPattern=".*\\..*\\..*\\.sswan" />
135 <data android:pathPattern=".*\\..*\\.sswan" />
136 <data android:pathPattern=".*\\.sswan" />
137 </intent-filter>
138 </activity>
139 <activity
140 android:name=".ui.TrustedCertificateImportActivity"
141 android:label="@string/import_certificate"
142 android:theme="@style/TransparentActivity" >
143 <intent-filter>
144 <action android:name="android.intent.action.VIEW" />
145 <category android:name="android.intent.category.DEFAULT" />
146 <data android:mimeType="application/x-x509-ca-cert" />
147 <data android:mimeType="application/x-x509-server-cert" />
148 <data android:mimeType="application/x-pem-file" />
149 <data android:mimeType="application/pkix-cert" />
150 </intent-filter>
151 </activity>
152
153 <service
154 android:name=".logic.VpnStateService"
155 android:exported="false" >
156 </service>
157 <service
158 android:name=".logic.CharonVpnService"
159 android:exported="false"
160 android:permission="android.permission.BIND_VPN_SERVICE" >
161 <intent-filter>
162 <action android:name="android.net.VpnService" />
163 </intent-filter>
164 </service>
165 <service
166 android:name=".ui.VpnTileService"
167 android:label="@string/tile_default"
168 android:icon="@drawable/ic_notification"
169 android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
170 <intent-filter>
171 <action android:name="android.service.quicksettings.action.QS_TILE" />
172 </intent-filter>
173 </service>
174
175 <provider
176 android:name=".data.LogContentProvider"
177 android:authorities="org.strongswan.android.content.log"
178 android:exported="true" >
179 <!-- android:grantUriPermissions="true" combined with a custom permission does
180 not work (probably too many indirections with ACTION_SEND) so we secure
181 this provider with a custom ticketing system -->
182 </provider>
183 </application>
184
185 </manifest>