正在查看: 95爱播免登录版 v3.1.9 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 95爱播免登录版 v3.1.9 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.mobile.auth.t;
import android.annotation.TargetApi;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.Network;
import android.net.NetworkInfo;
import android.net.NetworkRequest;
import android.os.Build;
import android.text.TextUtils;
import com.mobile.auth.aj.h;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
public class d implements h<com.mobile.auth.z.d> {
private Context a;
private com.mobile.auth.s.a b;
public d(Context context, com.mobile.auth.s.a aVar) {
this.a = context;
this.b = aVar;
}
@TargetApi(21)
private void a(Context context, final com.mobile.auth.z.d dVar) {
try {
try {
ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService("connectivity");
NetworkRequest.Builder builder = new NetworkRequest.Builder();
builder.addTransportType(0);
builder.addCapability(12);
NetworkRequest build = builder.build();
final CountDownLatch countDownLatch = new CountDownLatch(1);
connectivityManager.requestNetwork(build, new ConnectivityManager.NetworkCallback() {
@Override
public void onAvailable(Network network) {
try {
super.onAvailable(network);
dVar.a(true);
dVar.a(com.mobile.auth.gatewayauth.utils.f.b());
countDownLatch.countDown();
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
}
}
});
countDownLatch.await(5L, TimeUnit.SECONDS);
} catch (Exception unused) {
dVar.a(false);
this.b.d("Get sim key failed, because change to 4G failed!");
}
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
}
}
private boolean a(Context context, String str) {
try {
Class<?> cls = Class.forName("android.net.ConnectivityManager");
ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService("connectivity");
if (connectivityManager == null) {
this.b.a("ConnectivityManager is null, cannot try to force a mobile connection");
return false;
}
NetworkInfo.State state = connectivityManager.getNetworkInfo(5).getState();
this.b.a("TYPE_MOBILE_HIPRI network state: ", String.valueOf(state));
if (state.compareTo(NetworkInfo.State.CONNECTED) != 0 && state.compareTo(NetworkInfo.State.CONNECTING) != 0) {
int intValue = ((Integer) cls.getMethod("startUsingNetworkFeature", Integer.TYPE, String.class).invoke(connectivityManager, 0, "enableHIPRI")).intValue();
this.b.a("startUsingNetworkFeature for enableHIPRI result: ", String.valueOf(intValue));
if (-1 == intValue) {
this.b.a("Wrong result of startUsingNetworkFeature, maybe problems");
return false;
}
if (intValue == 0) {
this.b.a("No need to perform additional network settings");
return true;
}
String b = com.mobile.auth.ap.f.b(str);
this.b.a("Source address: " + str);
this.b.a("Destination host address to route: " + b);
if (!TextUtils.isEmpty(b)) {
str = b;
}
int c = com.mobile.auth.ap.f.c(str);
if (-1 == c) {
this.b.a("Wrong host address transformation, result was -1");
return false;
}
for (int i2 = 0; i2 < 3; i2++) {
try {
if (connectivityManager.getNetworkInfo(5).getState().compareTo(NetworkInfo.State.CONNECTED) == 0) {
break;
}
Thread.sleep(1000L);
} catch (InterruptedException unused) {
}
}
Class<?> cls2 = Integer.TYPE;
boolean booleanValue = ((Boolean) cls.getMethod("requestRouteToHost", cls2, cls2).invoke(connectivityManager, 5, Integer.valueOf(c))).booleanValue();
this.b.b("requestRouteToHost result: " + booleanValue);
if (!booleanValue) {
this.b.b("Wrong requestRouteToHost result: expected true, but was false");
}
this.b.a("TYPE_MOBILE_HIPRI network state after routing: ", String.valueOf(connectivityManager.getNetworkInfo(5).getState()));
return booleanValue;
}
return true;
} catch (Exception unused2) {
return false;
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
return false;
}
}
public com.mobile.auth.z.d a() {
try {
return new com.mobile.auth.z.d(true, false);
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
return null;
}
}
public com.mobile.auth.z.d b() throws Exception {
try {
com.mobile.auth.z.d dVar = new com.mobile.auth.z.d(false, false);
if (Build.VERSION.SDK_INT >= 21) {
a(this.a, dVar);
} else if (a(this.a, "https://id6.me/auth/preauth.do")) {
com.mobile.auth.d.d.a(this.a, "https://id6.me/auth/preauth.do", null, null, "");
dVar.a(true);
dVar.a(com.mobile.auth.gatewayauth.utils.f.b());
} else {
dVar.a(false);
}
return dVar;
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
return null;
}
}
@Override
public Object call() throws Exception {
try {
return b();
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
return null;
}
}
@Override
public com.mobile.auth.z.d f() {
try {
return a();
} catch (Throwable th) {
com.mobile.auth.gatewayauth.a.a(th);
return null;
}
}
}