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

应用版本信息
应用名称:Соседи
版本号:3.1.3
包名称:by.imlab.sosedi.kupilka

MD5 校验值:52ffe34fa08a87a6cc4bc36d7eb3dad1

反编译源代码说明

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


package vj;

import a1.p;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Build;
import java.io.IOException;
import java.io.InputStream;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import java.security.KeyManagementException;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.cert.CertificateException;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.X509TrustManager;
import org.apache.http.conn.ssl.BrowserCompatHostnameVerifier;
import org.apache.http.conn.ssl.StrictHostnameVerifier;

@Deprecated
public final class b extends SSLSocketFactory {

    @Deprecated
    public static final StrictHostnameVerifier f35352d;

    public static final String f35353e;

    public static volatile b f35354f;

    public SSLContext f35355a;

    public Context f35356b;

    public String[] f35357c;

    static {
        new BrowserCompatHostnameVerifier();
        f35352d = new StrictHostnameVerifier();
        f35353e = b.class.getSimpleName();
        f35354f = null;
    }

    public b(Context context) throws NoSuchAlgorithmException, CertificateException, KeyStoreException, IOException, KeyManagementException {
        SSLContext sSLContext;
        this.f35355a = null;
        if (context == null) {
            f.a.f(f35353e, "SecureSSLSocketFactory: context is null");
            return;
        }
        this.f35356b = context.getApplicationContext();
        if (Build.VERSION.SDK_INT >= 29) {
            sSLContext = SSLContext.getInstance("TLSv1.3");
        } else {
            sSLContext = SSLContext.getInstance("TLSv1.2");
        }
        this.f35355a = sSLContext;
        System.currentTimeMillis();
        if (p.f308h == null) {
            p.f308h = context.getApplicationContext();
        }
        if (d.f35361a == null) {
            synchronized (d.class) {
                if (d.f35361a == null) {
                    InputStream j10 = xj.a.j(context);
                    if (j10 == null) {
                        f.a.g("SecureX509SingleInstance", "get assets bks");
                        j10 = context.getAssets().open("hmsrootcas.bks");
                    } else {
                        f.a.g("SecureX509SingleInstance", "get files bks");
                    }
                    d.f35361a = new e(j10);
                    new xj.b().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, context);
                }
            }
        }
        System.currentTimeMillis();
        this.f35355a.init(null, new X509TrustManager[]{d.f35361a}, null);
    }

    public static void a(Socket socket) {
        String str = f35353e;
        f.a.g(str, "set default protocols");
        a.b((SSLSocket) socket);
        f.a.g(str, "set default cipher suites");
        SSLSocket sSLSocket = (SSLSocket) socket;
        if (sSLSocket != null && !a.c(sSLSocket, a.f35350a)) {
            a.a(sSLSocket, a.f35351b);
        }
    }

    public static b b(Context context) throws IOException, NoSuchAlgorithmException, CertificateException, KeyStoreException, IllegalAccessException, KeyManagementException, IllegalArgumentException {
        System.currentTimeMillis();
        if (context != null && p.f308h == null) {
            p.f308h = context.getApplicationContext();
        }
        if (f35354f == null) {
            synchronized (b.class) {
                if (f35354f == null) {
                    f35354f = new b(context);
                }
            }
        }
        if (f35354f.f35356b == null && context != null) {
            b bVar = f35354f;
            bVar.getClass();
            bVar.f35356b = context.getApplicationContext();
        }
        System.currentTimeMillis();
        return f35354f;
    }

    @Override
    public final Socket createSocket(String str, int i10) throws IOException {
        f.a.g(f35353e, "createSocket: host , port");
        Socket createSocket = this.f35355a.getSocketFactory().createSocket(str, i10);
        if (createSocket instanceof SSLSocket) {
            a(createSocket);
            this.f35357c = (String[]) ((SSLSocket) createSocket).getEnabledCipherSuites().clone();
        }
        return createSocket;
    }

    @Override
    public final String[] getDefaultCipherSuites() {
        return new String[0];
    }

    @Override
    public final String[] getSupportedCipherSuites() {
        String[] strArr = this.f35357c;
        if (strArr != null) {
            return strArr;
        }
        return new String[0];
    }

    @Override
    public final Socket createSocket(InetAddress inetAddress, int i10) throws IOException {
        return createSocket(inetAddress.getHostAddress(), i10);
    }

    @Override
    public final Socket createSocket(String str, int i10, InetAddress inetAddress, int i11) throws IOException, UnknownHostException {
        return createSocket(str, i10);
    }

    @Override
    public final Socket createSocket(InetAddress inetAddress, int i10, InetAddress inetAddress2, int i11) throws IOException {
        return createSocket(inetAddress.getHostAddress(), i10);
    }

    @Override
    public final Socket createSocket(Socket socket, String str, int i10, boolean z10) throws IOException {
        f.a.g(f35353e, "createSocket s host port autoClose");
        Socket createSocket = this.f35355a.getSocketFactory().createSocket(socket, str, i10, z10);
        if (createSocket instanceof SSLSocket) {
            a(createSocket);
            this.f35357c = (String[]) ((SSLSocket) createSocket).getEnabledCipherSuites().clone();
        }
        return createSocket;
    }
}