a0c79875f9d7f531dafbae2140f1c30464107baf
[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 </intent-filter>
93 </activity>
94 <activity
95 android:name=".ui.TrustedCertificateImportActivity"
96 android:label="@string/import_certificate"
97 android:theme="@style/AlertDialogTheme" >
98 <intent-filter>
99 <action android:name="android.intent.action.VIEW" />
100 <category android:name="android.intent.category.DEFAULT" />
101 <data android:mimeType="application/x-x509-ca-cert" />
102 <data android:mimeType="application/x-x509-server-cert" />
103 <data android:mimeType="application/x-pem-file" />
104 <data android:mimeType="application/pkix-cert" />
105 </intent-filter>
106 </activity>
107
108 <service
109 android:name=".logic.VpnStateService"
110 android:exported="false" >
111 </service>
112 <service
113 android:name=".logic.CharonVpnService"
114 android:exported="false"
115 android:permission="android.permission.BIND_VPN_SERVICE" >
116 <intent-filter>
117 <action android:name="android.net.VpnService" />
118 </intent-filter>
119 </service>
120
121 <provider
122 android:name=".data.LogContentProvider"
123 android:authorities="org.strongswan.android.content.log"
124 android:exported="true" >
125 <!-- android:grantUriPermissions="true" combined with a custom permission does
126 not work (probably too many indirections with ACTION_SEND) so we secure
127 this provider with a custom ticketing system -->
128 </provider>
129 </application>
130
131 </manifest>