Add deny firewall chain for OEM
Bug: 207773349 Bug: 208371987 Test: atest CtsNetTestCases:android.net.cts.ConnectivityManagerTest#testFirewallBlocking --iterations 50 && atest ConnectivityServiceTest --iterations 10 Change-Id: I60d5540821abcced03356f366775f16ee369d7f9
This commit is contained in:
@@ -992,6 +992,20 @@ public class ConnectivityManager {
|
||||
*/
|
||||
public static final int FIREWALL_CHAIN_LOCKDOWN_VPN = 6;
|
||||
|
||||
/**
|
||||
* Firewall chain used for OEM-specific application restrictions.
|
||||
* Denylist of apps that will not have network access due to OEM-specific restrictions.
|
||||
* @hide
|
||||
*/
|
||||
public static final int FIREWALL_CHAIN_OEM_DENY_1 = 7;
|
||||
|
||||
/**
|
||||
* Firewall chain used for OEM-specific application restrictions.
|
||||
* Denylist of apps that will not have network access due to OEM-specific restrictions.
|
||||
* @hide
|
||||
*/
|
||||
public static final int FIREWALL_CHAIN_OEM_DENY_2 = 8;
|
||||
|
||||
/** @hide */
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@IntDef(flag = false, prefix = "FIREWALL_CHAIN_", value = {
|
||||
@@ -1000,7 +1014,9 @@ public class ConnectivityManager {
|
||||
FIREWALL_CHAIN_POWERSAVE,
|
||||
FIREWALL_CHAIN_RESTRICTED,
|
||||
FIREWALL_CHAIN_LOW_POWER_STANDBY,
|
||||
FIREWALL_CHAIN_LOCKDOWN_VPN
|
||||
FIREWALL_CHAIN_LOCKDOWN_VPN,
|
||||
FIREWALL_CHAIN_OEM_DENY_1,
|
||||
FIREWALL_CHAIN_OEM_DENY_2
|
||||
})
|
||||
public @interface FirewallChain {}
|
||||
// LINT.ThenChange(packages/modules/Connectivity/service/native/include/Common.h)
|
||||
|
||||
Reference in New Issue
Block a user