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

应用版本信息
应用名称:JioFiberPartner
版本号:5.2.0
包名称:com.jfp.prod

MD5 校验值:7cd346351ab05a28e42aff65173e0141

反编译源代码说明

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


package s8;

import android.util.Log;
import com.leptonsoftware.fibernet.jsonparser.WebApi;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.security.cert.Certificate;
import java.security.cert.X509Certificate;
import java.util.List;
import javax.net.ssl.SSLPeerUnverifiedException;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.X509TrustManager;
import l8.x;

public class a extends e {

    private final d<Socket> f12503c;

    private final d<Socket> f12504d;

    private final d<Socket> f12505e;

    private final d<Socket> f12506f;

    private final b f12507g = b.b();

    static final class C0212a extends u8.b {

        private final Object f12508a;

        private final Method f12509b;

        C0212a(Object obj, Method method) {
            this.f12508a = obj;
            this.f12509b = method;
        }

        @Override
        public List<Certificate> a(List<Certificate> list, String str) {
            try {
                return (List) this.f12509b.invoke(this.f12508a, (X509Certificate[]) list.toArray(new X509Certificate[list.size()]), "RSA", str);
            } catch (IllegalAccessException e10) {
                throw new AssertionError(e10);
            } catch (InvocationTargetException e11) {
                SSLPeerUnverifiedException sSLPeerUnverifiedException = new SSLPeerUnverifiedException(e11.getMessage());
                sSLPeerUnverifiedException.initCause(e11);
                throw sSLPeerUnverifiedException;
            }
        }

        public boolean equals(Object obj) {
            return obj instanceof C0212a;
        }

        public int hashCode() {
            return 0;
        }
    }

    static final class b {

        private final Method f12510a;

        private final Method f12511b;

        private final Method f12512c;

        b(Method method, Method method2, Method method3) {
            this.f12510a = method;
            this.f12511b = method2;
            this.f12512c = method3;
        }

        static b b() {
            Method method;
            Method method2;
            Method method3 = null;
            try {
                Class<?> cls = Class.forName("dalvik.system.CloseGuard");
                Method method4 = cls.getMethod(WebApi.GET, new Class[0]);
                method2 = cls.getMethod("open", String.class);
                method = cls.getMethod("warnIfOpen", new Class[0]);
                method3 = method4;
            } catch (Exception unused) {
                method = null;
                method2 = null;
            }
            return new b(method3, method2, method);
        }

        Object a(String str) {
            Method method = this.f12510a;
            if (method != null) {
                try {
                    Object invoke = method.invoke(null, new Object[0]);
                    this.f12511b.invoke(invoke, str);
                    return invoke;
                } catch (Exception unused) {
                }
            }
            return null;
        }

        boolean c(Object obj) {
            if (obj == null) {
                return false;
            }
            try {
                this.f12512c.invoke(obj, new Object[0]);
                return true;
            } catch (Exception unused) {
                return false;
            }
        }
    }

    a(Class<?> cls, d<Socket> dVar, d<Socket> dVar2, d<Socket> dVar3, d<Socket> dVar4) {
        this.f12503c = dVar;
        this.f12504d = dVar2;
        this.f12505e = dVar3;
        this.f12506f = dVar4;
    }

    public static e n() {
        Class<?> cls;
        d dVar;
        d dVar2;
        try {
            try {
                cls = Class.forName("com.android.org.conscrypt.SSLParametersImpl");
            } catch (ClassNotFoundException unused) {
                return null;
            }
        } catch (ClassNotFoundException unused2) {
            cls = Class.forName("org.apache.harmony.xnet.provider.jsse.SSLParametersImpl");
        }
        Class<?> cls2 = cls;
        d dVar3 = new d(null, "setUseSessionTickets", Boolean.TYPE);
        d dVar4 = new d(null, "setHostname", String.class);
        try {
            Class.forName("android.net.Network");
            dVar = new d(byte[].class, "getAlpnSelectedProtocol", new Class[0]);
        } catch (ClassNotFoundException unused3) {
            dVar = null;
        }
        try {
            dVar2 = new d(null, "setAlpnProtocols", byte[].class);
        } catch (ClassNotFoundException unused4) {
            dVar2 = null;
            return new a(cls2, dVar3, dVar4, dVar, dVar2);
        }
        return new a(cls2, dVar3, dVar4, dVar, dVar2);
    }

    @Override
    public u8.b c(X509TrustManager x509TrustManager) {
        try {
            Class<?> cls = Class.forName("android.net.http.X509TrustManagerExtensions");
            return new C0212a(cls.getConstructor(X509TrustManager.class).newInstance(x509TrustManager), cls.getMethod("checkServerTrusted", X509Certificate[].class, String.class, String.class));
        } catch (Exception unused) {
            return super.c(x509TrustManager);
        }
    }

    @Override
    public void e(SSLSocket sSLSocket, String str, List<x> list) {
        if (str != null) {
            this.f12503c.e(sSLSocket, Boolean.TRUE);
            this.f12504d.e(sSLSocket, str);
        }
        d<Socket> dVar = this.f12506f;
        if (dVar == null || !dVar.g(sSLSocket)) {
            return;
        }
        this.f12506f.f(sSLSocket, e.d(list));
    }

    @Override
    public void f(Socket socket, InetSocketAddress inetSocketAddress, int i10) {
        try {
            socket.connect(inetSocketAddress, i10);
        } catch (AssertionError e10) {
            if (!m8.c.s(e10)) {
                throw e10;
            }
            throw new IOException(e10);
        } catch (SecurityException e11) {
            IOException iOException = new IOException("Exception in connect");
            iOException.initCause(e11);
            throw iOException;
        }
    }

    @Override
    public String i(SSLSocket sSLSocket) {
        byte[] bArr;
        d<Socket> dVar = this.f12505e;
        if (dVar == null || !dVar.g(sSLSocket) || (bArr = (byte[]) this.f12505e.f(sSLSocket, new Object[0])) == null) {
            return null;
        }
        return new String(bArr, m8.c.f10814i);
    }

    @Override
    public Object j(String str) {
        return this.f12507g.a(str);
    }

    @Override
    public boolean k(String str) {
        try {
            Class<?> cls = Class.forName("android.security.NetworkSecurityPolicy");
            return ((Boolean) cls.getMethod("isCleartextTrafficPermitted", String.class).invoke(cls.getMethod("getInstance", new Class[0]).invoke(null, new Object[0]), str)).booleanValue();
        } catch (ClassNotFoundException | NoSuchMethodException unused) {
            return super.k(str);
        } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException unused2) {
            throw new AssertionError();
        }
    }

    @Override
    public void l(int i10, String str, Throwable th) {
        int min;
        int i11 = i10 != 5 ? 3 : 5;
        if (th != null) {
            str = str + '\n' + Log.getStackTraceString(th);
        }
        int i12 = 0;
        int length = str.length();
        while (i12 < length) {
            int indexOf = str.indexOf(10, i12);
            if (indexOf == -1) {
                indexOf = length;
            }
            while (true) {
                min = Math.min(indexOf, i12 + 4000);
                Log.println(i11, "OkHttp", str.substring(i12, min));
                if (min >= indexOf) {
                    break;
                } else {
                    i12 = min;
                }
            }
            i12 = min + 1;
        }
    }

    @Override
    public void m(String str, Object obj) {
        if (this.f12507g.c(obj)) {
            return;
        }
        l(5, str, null);
    }
}