blob: 68cb5f1f36e05d9fee54939320efdac8fa6614d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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(final Context context, final Intent intent) {
if (!intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED))
return;
context.startService(new Intent(context, VpnService.class));
}
}
|