APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:GENIEX Service
版本号:2.2.062
包名称:com.geniex.vsimhelper

MD5 校验值:13dc6b335e0f136597784161f314cd8e

反编译源代码说明

c.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package t0;

import android.os.Message;
import android.util.Log;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.UnknownHostException;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocketFactory;

public final class c extends e0<m2.e> {

    public static final String[] f3642g = {"https://time1.google.com", "https://time.cloudflare.com", "https://www.pool.ntp.org"};

    public int f3643f = 0;

    @Override
    public final m2.e a() {
        Exception e4;
        HttpURLConnection httpURLConnection;
        m2.e eVar;
        int responseCode;
        SSLContext a4;
        Message obtainMessage = this.f3665d.obtainMessage(503);
        obtainMessage.obj = 0L;
        while (true) {
            int i4 = this.f3643f;
            HttpURLConnection httpURLConnection2 = null;
            if (i4 >= 3) {
                break;
            }
            String str = f3642g[i4];
            SSLSocketFactory sSLSocketFactory = h0.f3678a;
            try {
                URL url = new URL(str);
                httpURLConnection = (HttpURLConnection) url.openConnection();
                try {
                    try {
                        if (httpURLConnection instanceof HttpsURLConnection) {
                            if (h0.f3678a == null && (a4 = b0.a()) != null) {
                                h0.f3678a = a4.getSocketFactory();
                            }
                            SSLSocketFactory sSLSocketFactory2 = h0.f3678a;
                            if (sSLSocketFactory2 != null) {
                                ((HttpsURLConnection) httpURLConnection).setSSLSocketFactory(sSLSocketFactory2);
                                ((HttpsURLConnection) httpURLConnection).setHostnameVerifier(b0.f3640a);
                            }
                        }
                        httpURLConnection.setReadTimeout(10000);
                        httpURLConnection.setConnectTimeout(10000);
                        responseCode = httpURLConnection.getResponseCode();
                        s.f3733a.c("url:" + url);
                    } catch (Throwable th) {
                        th = th;
                        httpURLConnection2 = httpURLConnection;
                        if (httpURLConnection2 != null) {
                            httpURLConnection2.disconnect();
                        }
                        throw th;
                    }
                } catch (Exception e5) {
                    e4 = e5;
                    if (e4 instanceof UnknownHostException) {
                        s.f3733a.b(e4.getMessage());
                    } else {
                        s.f3733a.b(Log.getStackTraceString(e4));
                    }
                }
            } catch (Exception e6) {
                e4 = e6;
                httpURLConnection = null;
            } catch (Throwable th2) {
                th = th2;
            }
            if (responseCode >= 200 && responseCode < 400) {
                eVar = new m2.e(0, Long.valueOf(httpURLConnection.getDate()));
                httpURLConnection.disconnect();
                if (eVar.f3118a != 0) {
                    obtainMessage.obj = eVar.f3119b;
                    break;
                }
                this.f3643f++;
            }
            httpURLConnection.disconnect();
            eVar = new m2.e(-1, 0L);
            if (eVar.f3118a != 0) {
            }
        }
        this.f3665d.sendMessageAtFrontOfQueue(obtainMessage);
        return null;
    }

    @Override
    public final String b() {
        return "BaseTime";
    }
}