Apparently "configuration" is the proper term, not "profile". Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
16 lines
455 B
Java
16 lines
455 B
Java
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));
|
|
}
|
|
}
|