aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/AndroidManifest.xml
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-07-30 02:01:38 -0500
committerSamuel Holland <samuel@sholland.org>2017-07-30 02:01:38 -0500
commit773190f57d707264586f8e19fbe22ef284dd4e1e (patch)
tree2f2f462ccd28044e779dfb5db9cce550954e89c2 /app/src/main/AndroidManifest.xml
parentProfileService: Only load from files ending with .conf (diff)
downloadwireguard-android-773190f57d707264586f8e19fbe22ef284dd4e1e.tar.xz
wireguard-android-773190f57d707264586f8e19fbe22ef284dd4e1e.zip
ProfileService: Add a listener to start it on boot
This will allow automatically starting profiles on boot. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/AndroidManifest.xml')
-rw-r--r--app/src/main/AndroidManifest.xml11
1 files changed, 10 insertions, 1 deletions
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 02a8b7fa..2c02aa95 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.wireguard.android">
+ package="com.wireguard.android"
+ android:installLocation="internalOnly">
+
+ <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
android:allowBackup="false"
@@ -17,6 +20,12 @@
</intent-filter>
</activity>
+ <receiver android:name=".BootCompletedReceiver">
+ <intent-filter>
+ <action android:name="android.intent.action.BOOT_COMPLETED" />
+ </intent-filter>
+ </receiver>
+
<service
android:name=".ProfileService"
android:exported="false" />