summaryrefslogtreecommitdiff
path: root/AndroidManifest.xml
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-08-12 18:52:38 +0200
committerArne Schwabe <arne@rfc2549.org>2012-08-12 18:52:38 +0200
commit5e7b841c8d5111e6b63e74944903a168939ca723 (patch)
treef782a9d293893393ce9222a7fe9b29ae46ef91d9 /AndroidManifest.xml
parent5438e464aaf326973938fee31d91bfdd7ece8f63 (diff)
Implement starting a VPN on boot. (closes issue #62)
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r--AndroidManifest.xml24
1 files changed, 15 insertions, 9 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 25c3fbdf..f63e6ffe 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -22,8 +22,9 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
- <!-- <uses-permission android:name="com.android.vending.BILLING" /> -->
+ <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
+ <!-- <uses-permission android:name="com.android.vending.BILLING" /> -->
<uses-sdk android:minSdkVersion="14" />
@@ -31,8 +32,9 @@
android:icon="@drawable/icon"
android:label="@string/app" >
<activity android:name=".AboutFragment" />
- <activity android:name=".VPNPreferences"
- android:windowSoftInputMode="stateHidden"/>
+ <activity
+ android:name=".VPNPreferences"
+ android:windowSoftInputMode="stateHidden" />
<activity
android:name=".LogWindow"
android:label="OpenVPN Log" />
@@ -53,8 +55,12 @@
<action android:name="android.net.VpnService" />
</intent-filter>
</service>
+ <receiver android:name=".OnBootReceiver" >
+ <intent-filter>
+ <action android:name="android.intent.action.BOOT_COMPLETED" />
+ </intent-filter>
+ </receiver>
-
<activity
android:name=".ConfigConverter"
android:label="Convert Config File" >
@@ -63,19 +69,19 @@
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
+
<data android:mimeType="application/x-openvpn-profile" />
</intent-filter>
<intent-filter android:label="Import OpenVPN Config" >
- <action android:name="android.intent.action.VIEW" />
-
+ <action android:name="android.intent.action.VIEW" />
+
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="application/ovpn" />
</intent-filter>
<intent-filter android:label="Import OpenVPN Config" >
-
- <action android:name="android.intent.action.VIEW" />
+ <action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
@@ -84,7 +90,7 @@
android:pathPattern=".*\\.ovpn"
android:scheme="content" />
</intent-filter>
- </activity>
+ </activity>
<activity
android:name=".LaunchVPN"
android:label="@string/vpn_launch_title" >