Loading core/java/android/os/UserManager.java +6 −4 Original line number Original line Diff line number Diff line Loading @@ -303,10 +303,12 @@ public class UserManager { public static final String DISALLOW_DEBUGGING_FEATURES = "no_debugging_features"; public static final String DISALLOW_DEBUGGING_FEATURES = "no_debugging_features"; /** /** * Specifies if a user is disallowed from configuring VPN. * Specifies if a user is disallowed from configuring a VPN. The default value is * The default value is <code>false</code>. * <code>false</code>. This restriction has an effect when set by device owners and, in Android * This restriction has an effect in a managed profile only from * 6.0 ({@linkplain android.os.Build.VERSION_CODES#M API level 23}) or higher, profile owners. * {@link android.os.Build.VERSION_CODES#M} * <p>This restriction also prevents VPNs from starting. However, in Android 7.0 * ({@linkplain android.os.Build.VERSION_CODES#N API level 24}) or higher, the system does * start always-on VPNs created by the device or profile owner. * * * <p>Key for user restrictions. * <p>Key for user restrictions. * <p>Type: Boolean * <p>Type: Boolean Loading Loading
core/java/android/os/UserManager.java +6 −4 Original line number Original line Diff line number Diff line Loading @@ -303,10 +303,12 @@ public class UserManager { public static final String DISALLOW_DEBUGGING_FEATURES = "no_debugging_features"; public static final String DISALLOW_DEBUGGING_FEATURES = "no_debugging_features"; /** /** * Specifies if a user is disallowed from configuring VPN. * Specifies if a user is disallowed from configuring a VPN. The default value is * The default value is <code>false</code>. * <code>false</code>. This restriction has an effect when set by device owners and, in Android * This restriction has an effect in a managed profile only from * 6.0 ({@linkplain android.os.Build.VERSION_CODES#M API level 23}) or higher, profile owners. * {@link android.os.Build.VERSION_CODES#M} * <p>This restriction also prevents VPNs from starting. However, in Android 7.0 * ({@linkplain android.os.Build.VERSION_CODES#N API level 24}) or higher, the system does * start always-on VPNs created by the device or profile owner. * * * <p>Key for user restrictions. * <p>Key for user restrictions. * <p>Type: Boolean * <p>Type: Boolean Loading