TopTV v3.0.1版本的 MD5 值为:0fc1b9ce94885bc92edd11a6ee3e5932

以下内容为反编译后的 c.java 源代码,内容仅作参考


package c.k.a.g.n;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import me.zhanghai.android.materialprogressbar.BuildConfig;
public class c extends Thread {
    public HashMap<Integer, String> f17290b = new HashMap<>();
    public HashMap<Integer, List<String>> f17291c = new HashMap<>();
    public double f17292d = 0.0d;
    public double f17293e = 0.0d;
    public boolean f17294f = false;

    public HashMap<Integer, String> a() {
        return this.f17290b;
    }

    public double b() {
        return this.f17292d;
    }

    public double c() {
        return this.f17293e;
    }

    public HashMap<Integer, List<String>> d() {
        return this.f17291c;
    }

    public boolean e() {
        return this.f17294f;
    }

    @Override
    public void run() {
        try {
            HttpURLConnection httpURLConnection = (HttpURLConnection) new URL("https://www.speedtest.net/speedtest-config.php").openConnection();
            httpURLConnection.getContentLength();
            char c2 = 0;
            char c3 = 1;
            if (httpURLConnection.getResponseCode() == 200) {
                BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()));
                while (true) {
                    String readLine = bufferedReader.readLine();
                    if (readLine != null) {
                        if (readLine.contains("isp=")) {
                            this.f17292d = Double.parseDouble(readLine.split("lat=\"")[1].split(" ")[0].replace("\"", BuildConfig.FLAVOR));
                            this.f17293e = Double.parseDouble(readLine.split("lon=\"")[1].split(" ")[0].replace("\"", BuildConfig.FLAVOR));
                            break;
                        }
                    } else {
                        break;
                    }
                }
                bufferedReader.close();
            }
            try {
                HttpURLConnection httpURLConnection2 = (HttpURLConnection) new URL("https://www.speedtest.net/speedtest-servers-static.php").openConnection();
                if (httpURLConnection2.getResponseCode() == 200) {
                    BufferedReader bufferedReader2 = new BufferedReader(new InputStreamReader(httpURLConnection2.getInputStream()));
                    int i2 = 0;
                    while (true) {
                        String readLine2 = bufferedReader2.readLine();
                        if (readLine2 == null) {
                            break;
                        } else if (readLine2.contains("<server url")) {
                            String str = readLine2.split("server url=\"")[c3].split("\"")[c2];
                            String str2 = readLine2.split("lat=\"")[c3].split("\"")[c2];
                            String str3 = readLine2.split("lon=\"")[c3].split("\"")[c2];
                            String str4 = readLine2.split("name=\"")[c3].split("\"")[c2];
                            String str5 = readLine2.split("country=\"")[c3].split("\"")[c2];
                            String str6 = readLine2.split("cc=\"")[c3].split("\"")[c2];
                            String str7 = readLine2.split("sponsor=\"")[c3].split("\"")[c2];
                            c2 = 0;
                            List<String> asList = Arrays.asList(str2, str3, str4, str5, str6, str7, readLine2.split("host=\"")[c3].split("\"")[0]);
                            this.f17290b.put(Integer.valueOf(i2), str);
                            this.f17291c.put(Integer.valueOf(i2), asList);
                            i2++;
                            c3 = 1;
                        }
                    }
                    bufferedReader2.close();
                }
            } catch (Exception e2) {
                e2.printStackTrace();
            }
            this.f17294f = true;
        } catch (Exception e3) {
            e3.printStackTrace();
        }
    }
}