Commit 6d923134 authored by Kenji Bungo's avatar Kenji Bungo
Browse files

static flag enable Iptables --list at end of netd init code from system...

static flag enable Iptables --list at end of netd init code from system server. (defaults to disabled).
parent 2fc30902
......@@ -122,6 +122,7 @@ public class NetworkManagementService extends INetworkManagementService.Stub
private static final boolean DBG = Log.isLoggable(TAG, Log.DEBUG);
private static final String NETD_TAG = "NetdConnector";
private static final String NETD_SOCKET_NAME = "netd";
private static final boolean LIST_IPTABLES = false;
private static final int MAX_UID_RANGES_PER_COMMAND = 10;
......@@ -639,6 +640,15 @@ public class NetworkManagementService extends INetworkManagementService.Stub
setFirewallChainEnabled(FIREWALL_CHAIN_DOZABLE, true);
}
}
if(LIST_IPTABLES)
{
try {
mConnector.execute("list", "filter");
} catch (Exception e) {
//catch anything and eat it. this shoulodn't be breaking EVER
Log.e(TAG, "Eating an iptables list exception!", e);
}
}
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment