WeChat.apk(点击下载) / a.java


package sa4;

import android.os.Build;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import z94.c;

public class a {

    /* renamed from: a  reason: collision with root package name */
    public static final String f299966a = Build.MODEL;

    /* renamed from: b  reason: collision with root package name */
    public static final String f299967b = Build.VERSION.RELEASE;

    /* renamed from: c  reason: collision with root package name */
    public static final String f299968c = e.f299990a;

    /* renamed from: sa4.a$a  reason: collision with other inner class name */
    public static class RunnableC5081a implements Runnable {

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ String f299969d;

        /* renamed from: e  reason: collision with root package name */
        public final /* synthetic */ String f299970e;

        /* renamed from: f  reason: collision with root package name */
        public final /* synthetic */ String f299971f;

        /* renamed from: g  reason: collision with root package name */
        public final /* synthetic */ String f299972g;

        /* renamed from: h  reason: collision with root package name */
        public final /* synthetic */ String f299973h;

        /* renamed from: i  reason: collision with root package name */
        public final /* synthetic */ long f299974i;

        /* renamed from: j  reason: collision with root package name */
        public final /* synthetic */ String f299975j;

        /* renamed from: n  reason: collision with root package name */
        public final /* synthetic */ long f299976n;

        /* renamed from: o  reason: collision with root package name */
        public final /* synthetic */ String f299977o;

        /* renamed from: p  reason: collision with root package name */
        public final /* synthetic */ String f299978p;

        /* renamed from: q  reason: collision with root package name */
        public final /* synthetic */ long f299979q;

        /* renamed from: r  reason: collision with root package name */
        public final /* synthetic */ int f299980r;

        /* renamed from: s  reason: collision with root package name */
        public final /* synthetic */ long f299981s;

        /* renamed from: t  reason: collision with root package name */
        public final /* synthetic */ int f299982t;

        /* renamed from: u  reason: collision with root package name */
        public final /* synthetic */ boolean f299983u;

        /* renamed from: v  reason: collision with root package name */
        public final /* synthetic */ int f299984v;

        /* renamed from: w  reason: collision with root package name */
        public final /* synthetic */ String f299985w;

        /* renamed from: x  reason: collision with root package name */
        public final /* synthetic */ String f299986x;

        public RunnableC5081a(String str, String str2, String str3, String str4, String str5, long j15, String str6, long j16, String str7, String str8, long j17, int i15, long j18, int i16, boolean z15, int i17, String str9, String str10) {
            this.f299969d = str;
            this.f299970e = str2;
            this.f299971f = str3;
            this.f299972g = str4;
            this.f299973h = str5;
            this.f299974i = j15;
            this.f299975j = str6;
            this.f299976n = j16;
            this.f299977o = str7;
            this.f299978p = str8;
            this.f299979q = j17;
            this.f299980r = i15;
            this.f299981s = j18;
            this.f299982t = i16;
            this.f299983u = z15;
            this.f299984v = i17;
            this.f299985w = str9;
            this.f299986x = str10;
        }

        /* JADX WARNING: Removed duplicated region for block: B:13:0x013b  */
        /* JADX WARNING: Removed duplicated region for block: B:17:0x0146  */
        /* JADX WARNING: Removed duplicated region for block: B:20:? A[RETURN, SYNTHETIC] */
        public void run() {
            HttpURLConnection httpURLConnection;
            Throwable th5;
            HttpURLConnection httpURLConnection2 = null;
            try {
                URL url = new URL("https://h.trace.qq.com/kv?attaid=0f500064192&token=4725229671&carrier=" + this.f299969d + "&networkType=" + this.f299970e + "&dnsId=" + this.f299971f + "&encryptType=" + this.f299972g + "&eventName=" + this.f299973h + "&eventTime=" + this.f299974i + "&dnsIp=" + this.f299975j + "&sdkVersion=" + "4.4.0a" + "&deviceName=" + a.f299966a + "&systemName=" + "Andriod" + "&systemVersion=" + a.f299967b + "&spend=" + this.f299976n + "&req_dn=" + this.f299977o + "&req_type=" + this.f299978p + "&req_timeout=" + this.f299979q + "&req_ttl=" + this.f299980r + "&errorCode=" + this.f299981s + "&statusCode=" + this.f299982t + "&sessionId=" + a.f299968c + "&isCache=" + (this.f299983u ? 1 : 0) + "&count=" + this.f299984v + "&ldns=" + this.f299985w + "&hdns=" + this.f299986x);
                StringBuilder sb5 = new StringBuilder();
                sb5.append("开始Atta上报:");
                sb5.append(url);
                c.b(sb5.toString(), new Object[0]);
                httpURLConnection = (HttpURLConnection) url.openConnection();
                try {
                    httpURLConnection.setRequestMethod("GET");
                    httpURLConnection.setConnectTimeout(2000);
                    httpURLConnection.setReadTimeout(2000);
                    httpURLConnection.connect();
                    httpURLConnection.getResponseCode();
                    httpURLConnection.disconnect();
                    c.b("Atta上报关闭", new Object[0]);
                } catch (IOException unused) {
                    httpURLConnection2 = httpURLConnection;
                    if (httpURLConnection2 == null) {
                        httpURLConnection2.disconnect();
                        c.b("Atta上报关闭", new Object[0]);
                    }
                } catch (Throwable th6) {
                    th5 = th6;
                    if (httpURLConnection != null) {
                        httpURLConnection.disconnect();
                        c.b("Atta上报关闭", new Object[0]);
                    }
                    throw th5;
                }
            } catch (IOException unused2) {
                if (httpURLConnection2 == null) {
                }
            } catch (Throwable th7) {
                httpURLConnection = null;
                th5 = th7;
                if (httpURLConnection != null) {
                }
                throw th5;
            }
        }
    }

    public static Runnable a(String str, String str2, String str3, String str4, String str5, long j15, String str6, long j16, String str7, String str8, long j17, int i15, long j18, int i16, boolean z15, int i17, String str9, String str10) {
        return new RunnableC5081a(str, str2, str3, str4, str5, j15, str6, j16, str7, str8, j17, i15, j18, i16, z15, i17, str9, str10);
    }
}