GoooBet v1.0版本的 MD5 值为:ff9748f16167bfd7735b669c0a9931c5

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


package com.appodeal.ads.services.crash_hunter.internal;

import com.appodeal.ads.Appodeal;
import com.google.android.exoplayer2.C;
import java.io.DataOutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.Charset;
import java.util.Iterator;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONObject;

final class f implements Runnable {

    private final e f1213a;

    public f(e eVar) {
        this.f1213a = eVar;
    }

    URL a() {
        return new URL("https://mds-api.appodeal.com/v2/crash/android/" + Appodeal.getVersion());
    }

    @Override
    public void run() {
        try {
            List<String> a2 = this.f1213a.a(false);
            JSONArray jSONArray = new JSONArray();
            Iterator<String> it = a2.iterator();
            while (it.hasNext()) {
                jSONArray.put(new JSONObject(it.next()));
            }
            HttpURLConnection httpURLConnection = null;
            try {
                HttpURLConnection httpURLConnection2 = (HttpURLConnection) a().openConnection();
                try {
                    httpURLConnection2.setConnectTimeout(10000);
                    httpURLConnection2.setReadTimeout(10000);
                    httpURLConnection2.setRequestProperty("Content-Type", "application/json; charset=UTF-8");
                    httpURLConnection2.setDoOutput(true);
                    httpURLConnection2.setRequestMethod("POST");
                    DataOutputStream dataOutputStream = new DataOutputStream(httpURLConnection2.getOutputStream());
                    dataOutputStream.write(jSONArray.toString().getBytes(Charset.forName(C.UTF8_NAME)));
                    dataOutputStream.flush();
                    dataOutputStream.close();
                    int responseCode = httpURLConnection2.getResponseCode();
                    com.appodeal.ads.services.crash_hunter.a.a("ExceptionTask", "finished", "responseCode: " + responseCode);
                    if (responseCode == 200) {
                        this.f1213a.a(a2);
                    } else if (responseCode == 503) {
                        this.f1213a.b(httpURLConnection2.getHeaderField("Retry-After"));
                    }
                    if (httpURLConnection2 != null) {
                        httpURLConnection2.getInputStream().close();
                        httpURLConnection2.disconnect();
                    }
                } catch (Throwable th) {
                    th = th;
                    httpURLConnection = httpURLConnection2;
                    try {
                        com.appodeal.ads.services.crash_hunter.a.a(th);
                        if (httpURLConnection != null) {
                            httpURLConnection.getInputStream().close();
                            httpURLConnection.disconnect();
                        }
                    } catch (Throwable th2) {
                        if (httpURLConnection != null) {
                            httpURLConnection.getInputStream().close();
                            httpURLConnection.disconnect();
                        }
                        throw th2;
                    }
                }
            } catch (Throwable th3) {
                th = th3;
            }
        } catch (Throwable th4) {
            com.appodeal.ads.services.crash_hunter.a.a(th4);
        }
    }
}