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>
This commit is contained in:
1 parent
d8a5ec3f19
commit
773190f57d
2 files changed
+24
-1
No files matched your search
@@ -0,0 +1,14 @@
|
||||
package com.wireguard.android;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
||||
public class BootCompletedReceiver extends BroadcastReceiver {
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
Intent startServiceIntent = new Intent(context, ProfileService.class);
|
||||
context.startService(startServiceIntent);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user