diff --git a/framework/src/android/net/ConnectivityManager.java b/framework/src/android/net/ConnectivityManager.java index 66b284036e..586e4b0d6b 100644 --- a/framework/src/android/net/ConnectivityManager.java +++ b/framework/src/android/net/ConnectivityManager.java @@ -963,7 +963,6 @@ public class ConnectivityManager { @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 130143562) private final IConnectivityManager mService; - // LINT.IfChange(firewall_chain) /** * Firewall chain for device idle (doze mode). * Allowlist of apps that have network access in device idle. @@ -1068,7 +1067,6 @@ public class ConnectivityManager { FIREWALL_CHAIN_OEM_DENY_3 }) public @interface FirewallChain {} - // LINT.ThenChange(packages/modules/Connectivity/service/native/include/Common.h) /** * A firewall rule which allows or drops packets depending on existing policy. diff --git a/service/native/include/Common.h b/service/native/include/Common.h index 03f449a56c..b5f5f0adbf 100644 --- a/service/native/include/Common.h +++ b/service/native/include/Common.h @@ -22,25 +22,3 @@ using aidl::android::net::INetd; static_assert(INetd::CLAT_MARK == CLAT_MARK, "must be 0xDEADC1A7"); - -enum FirewallRule { ALLOW = INetd::FIREWALL_RULE_ALLOW, DENY = INetd::FIREWALL_RULE_DENY }; - -// ALLOWLIST means the firewall denies all by default, uids must be explicitly ALLOWed -// DENYLIST means the firewall allows all by default, uids must be explicitly DENYed - -enum FirewallType { ALLOWLIST = INetd::FIREWALL_ALLOWLIST, DENYLIST = INetd::FIREWALL_DENYLIST }; - -// LINT.IfChange(firewall_chain) -enum ChildChain { - NONE = 0, - DOZABLE = 1, - STANDBY = 2, - POWERSAVE = 3, - RESTRICTED = 4, - LOW_POWER_STANDBY = 5, - OEM_DENY_1 = 7, - OEM_DENY_2 = 8, - OEM_DENY_3 = 9, - INVALID_CHAIN -}; -// LINT.ThenChange(packages/modules/Connectivity/framework/src/android/net/ConnectivityManager.java)