NetMirror.apk
Download file
package X2;
import android.net.ssl.SSLSockets;
import android.os.Build;
import java.io.IOException;
import java.util.List;
import javax.net.ssl.SSLParameters;
import javax.net.ssl.SSLSocket;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* JADX INFO: loaded from: classes.dex */
public final class c implements m {
/* JADX INFO: renamed from: a, reason: collision with root package name */
public static final a f2759a = new a(null);
public static final class a {
private a() {
}
public final m a() {
if (b()) {
return new c();
}
return null;
}
public final boolean b() {
return W2.j.f2732c.h() && Build.VERSION.SDK_INT >= 29;
}
public /* synthetic */ a(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
}
@Override // X2.m
public boolean a(SSLSocket sSLSocket) {
D2.h.f(sSLSocket, "sslSocket");
return SSLSockets.isSupportedSocket(sSLSocket);
}
@Override // X2.m
public boolean b() {
return f2759a.b();
}
@Override // X2.m
public String c(SSLSocket sSLSocket) {
D2.h.f(sSLSocket, "sslSocket");
String applicationProtocol = sSLSocket.getApplicationProtocol();
if (applicationProtocol == null || (applicationProtocol.hashCode() == 0 && applicationProtocol.equals(""))) {
return null;
}
return applicationProtocol;
}
@Override // X2.m
public void d(SSLSocket sSLSocket, String str, List list) throws IOException {
D2.h.f(sSLSocket, "sslSocket");
D2.h.f(list, "protocols");
try {
SSLSockets.setUseSessionTickets(sSLSocket, true);
SSLParameters sSLParameters = sSLSocket.getSSLParameters();
D2.h.e(sSLParameters, "sslParameters");
Object[] array = W2.j.f2732c.b(list).toArray(new String[0]);
if (array == null) {
throw new NullPointerException("null cannot be cast to non-null type kotlin.Array<T>");
}
sSLParameters.setApplicationProtocols((String[]) array);
sSLSocket.setSSLParameters(sSLParameters);
} catch (IllegalArgumentException e4) {
throw new IOException("Android internal error", e4);
}
}
}
⚠️ This content was hidden by an advertisement filtering extension in your browser. Please disable it and reload the page to access the decompiled content.
We only display one small text ad to keep this service free. Here's what it looks like:
Read the Docs for Business: You write the docs. We do the rest.
Try it today!Ad by EthicalAds
Download file