@@ -0,0 +1,1322 @@
+package adat.receiver;%0A%0Aimport android.content.BroadcastReceiver;%0Aimport android.content.Context;%0Aimport android.content.Intent;%0Aimport android.content.SharedPreferences;%0A%0Aimport android.content.BroadcastReceiver;%0Aimport android.net.ConnectivityManager;%0Aimport android.net.NetworkInfo;%0A%0A%0Aimport adat.utils.Common;%0Aimport adat.utils.ConfigUtils;%0Aimport adat.utils.Exec;%0Aimport stericson.RootTools.RootTools;%0A%0A%0A%0A%0A/**%0A * %E6%A3%80%E6%B5%8B%E7%BD%91%E7%BB%9C%E5%8F%98%E5%8C%96%0A */%0Apublic class ConnectionReceiver extends BroadcastReceiver %7B%0A%0A    @Override%0A    public void onReceive(Context context, Intent intent) %7B%0A%0A        String action = intent.getAction();%0A%0A        if (action == null) %7B%0A            return;%0A        %7D%0A%0A        if (action.equals(%22android.net.conn.CONNECTIVITY_CHANGE%22)) %7B%0A%0A            ConnectivityManager manager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);%0A            NetworkInfo activeNetInfo = manager.getActiveNetworkInfo();%0A%0A            if (activeNetInfo != null) %7B%0A                RootTools.killProcess(%22tcpdump%22);%0A                ConfigUtils configUtils = new ConfigUtils(context);%0A                String fileName = configUtils.getCapDir() + %22/%22%0A                        + Common.getCurrentTime() + %22.pcap%22;%0A                Exec.execRootCmd(Common.TCP_DUMP + fileName + %22%5Cn%22);%0A%0A            %7D%0A%0A        %7D%0A%0A    %7D%0A%7D%0A

add connection