android: Handle profile file names with dots in them
[strongswan.git] / src / frontends / android / app / src / main / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 Copyright (C) 2012-2015 Tobias Brunner
4 Copyright (C) 2012 Giuliano Grassi
5 Copyright (C) 2012 Ralf Sager
6 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.READ_EXTERNAL_STORAGE" />
24
25 <application
26 android:name=".logic.StrongSwanApplication"
27 android:icon="@drawable/ic_launcher"
28 android:label="@string/app_name"
29 android:theme="@style/ApplicationTheme"
30 android:allowBackup="false" >
31 <activity
32 android:name=".ui.MainActivity"
33 android:label="@string/main_activity_name"
34 android:launchMode="singleTop" >
35 <intent-filter>
36 <action android:name="android.intent.action.MAIN" />
37 <category android:name="android.intent.category.LAUNCHER" />
38 </intent-filter>
39 <intent-filter>
40 <action android:name="org.strongswan.android.action.START_PROFILE" />
41 <category android:name="android.intent.category.DEFAULT" />
42 </intent-filter>
43 </activity>
44 <activity
45 android:name=".ui.VpnProfileDetailActivity" >
46 </activity>
47 <activity
48 android:name=".ui.TrustedCertificatesActivity"
49 android:label="@string/trusted_certs_title" >
50 </activity>
51 <activity
52 android:name=".ui.LogActivity"
53 android:label="@string/log_title" >
54 </activity>
55 <activity
56 android:name=".ui.RemediationInstructionsActivity"
57 android:label="@string/remediation_instructions_title" >
58 </activity>
59 <activity
60 android:name=".ui.VpnProfileSelectActivity"
61 android:label="@string/strongswan_shortcut" >
62 <intent-filter>
63 <action android:name="android.intent.action.CREATE_SHORTCUT" />
64 <category android:name="android.intent.category.DEFAULT" />
65 </intent-filter>
66 </activity>
67 <activity
68 android:name=".ui.VpnProfileImportActivity"
69 android:label="@string/profile_import"
70 android:taskAffinity=""
71 android:excludeFromRecents="true" >
72 <intent-filter>
73 <action android:name="android.intent.action.VIEW" />
74 <category android:name="android.intent.category.DEFAULT" />
75 <category android:name="android.intent.category.BROWSABLE" />
76 <data android:scheme="http" />
77 <data android:scheme="https" />
78 <data android:scheme="file" />
79 <data android:scheme="content" />
80 <data android:mimeType="application/vnd.strongswan.profile" />
81 </intent-filter>
82 <intent-filter>
83 <action android:name="android.intent.action.VIEW" />
84 <category android:name="android.intent.category.DEFAULT" />
85 <category android:name="android.intent.category.BROWSABLE" />
86 <data android:scheme="http" />
87 <data android:scheme="https" />
88 <data android:scheme="file" />
89 <data android:scheme="content" />
90 <data android:host="*" />
91 <data android:pathPattern=".*\\..*\\..*\\..*\\.sswan" />
92 <data android:pathPattern=".*\\..*\\..*\\.sswan" />
93 <data android:pathPattern=".*\\..*\\.sswan" />
94 <data android:pathPattern=".*\\.sswan" />
95 </intent-filter>
96 </activity>
97 <activity
98 android:name=".ui.TrustedCertificateImportActivity"
99 android:label="@string/import_certificate"
100 android:theme="@style/AlertDialogTheme" >
101 <intent-filter>
102 <action android:name="android.intent.action.VIEW" />
103 <category android:name="android.intent.category.DEFAULT" />
104 <data android:mimeType="application/x-x509-ca-cert" />
105 <data android:mimeType="application/x-x509-server-cert" />
106 <data android:mimeType="application/x-pem-file" />
107 <data android:mimeType="application/pkix-cert" />
108 </intent-filter>
109 </activity>
110
111 <service
112 android:name=".logic.VpnStateService"
113 android:exported="false" >
114 </service>
115 <service
116 android:name=".logic.CharonVpnService"
117 android:exported="false"
118 android:permission="android.permission.BIND_VPN_SERVICE" >
119 <intent-filter>
120 <action android:name="android.net.VpnService" />
121 </intent-filter>
122 </service>
123
124 <provider
125 android:name=".data.LogContentProvider"
126 android:authorities="org.strongswan.android.content.log"
127 android:exported="true" >
128 <!-- android:grantUriPermissions="true" combined with a custom permission does
129 not work (probably too many indirections with ACTION_SEND) so we secure
130 this provider with a custom ticketing system -->
131 </provider>
132 </application>
133
134 </manifest>