Add a skeleton VpnManagerService, and start it on boot.
This adds a lot of unused code but this should make it easier to review subsequent CLs. Bug: 173331190 Test: builds, boots, "dumpsys vpnmanager" succeeds Change-Id: Ied379654a0c3ab6242d3125661fe30f322395059
This commit is contained in:
@@ -76,6 +76,12 @@ public class VpnManager {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
public static final int TYPE_VPN_LEGACY = 3;
|
public static final int TYPE_VPN_LEGACY = 3;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Channel for VPN notifications.
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
public static final String NOTIFICATION_CHANNEL_VPN = "VPN";
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
@IntDef(value = {TYPE_VPN_NONE, TYPE_VPN_SERVICE, TYPE_VPN_PLATFORM, TYPE_VPN_LEGACY})
|
@IntDef(value = {TYPE_VPN_NONE, TYPE_VPN_SERVICE, TYPE_VPN_PLATFORM, TYPE_VPN_LEGACY})
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.SOURCE)
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ public class NetworkNotificationManager {
|
|||||||
// server.
|
// server.
|
||||||
public static final String NOTIFICATION_CHANNEL_NETWORK_STATUS = "NETWORK_STATUS";
|
public static final String NOTIFICATION_CHANNEL_NETWORK_STATUS = "NETWORK_STATUS";
|
||||||
public static final String NOTIFICATION_CHANNEL_NETWORK_ALERTS = "NETWORK_ALERTS";
|
public static final String NOTIFICATION_CHANNEL_NETWORK_ALERTS = "NETWORK_ALERTS";
|
||||||
public static final String NOTIFICATION_CHANNEL_VPN = "VPN";
|
|
||||||
|
|
||||||
// The context is for the current user (system server)
|
// The context is for the current user (system server)
|
||||||
private final Context mContext;
|
private final Context mContext;
|
||||||
|
|||||||
Reference in New Issue
Block a user