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