VMOS Pro v2.9.9版本的 MD5 值为:42f292af86d02c1a08555cf2d3982a52
以下内容为反编译后的 PhoneNumberAuthHelperProxy.java 源代码,内容仅作参考
package com.mobile.auth.gatewayauth;
import android.content.Context;
import android.text.TextUtils;
import androidx.annotation.IntRange;
import com.mobile.auth.BuildConfig;
import com.mobile.auth.gatewayauth.annotations.AuthNumber;
import com.mobile.auth.gatewayauth.annotations.SafeProtector;
import com.mobile.auth.gatewayauth.manager.CrashManager;
import com.mobile.auth.gatewayauth.manager.RequestCallback;
import com.mobile.auth.gatewayauth.manager.SystemManager;
import com.mobile.auth.gatewayauth.manager.TokenMaskManager;
import com.mobile.auth.gatewayauth.manager.VendorSdkInfoManager;
import com.mobile.auth.gatewayauth.manager.compat.ResultCodeProcessor;
import com.mobile.auth.gatewayauth.manager.f;
import com.mobile.auth.gatewayauth.model.LoginPhoneInfo;
import com.mobile.auth.gatewayauth.model.MonitorStruct;
import com.mobile.auth.gatewayauth.model.TokenRet;
import com.mobile.auth.gatewayauth.model.UStruct;
import com.mobile.auth.gatewayauth.utils.EncryptUtils;
import com.mobile.auth.gatewayauth.utils.e;
import com.mobile.auth.gatewayauth.utils.g;
import com.nirvana.tools.core.ComponentSdkCore;
import com.nirvana.tools.core.ExecutorManager;
import com.nirvana.tools.logger.UaidTracker;
import java.util.concurrent.Future;
public class PhoneNumberAuthHelperProxy {
@AuthNumber
public static final int SERVICE_TYPE_AUTH = 1;
@AuthNumber
public static final int SERVICE_TYPE_LOGIN = 2;
public static volatile PhoneNumberAuthHelperProxy f49032a;
private TokenResultListener b;
private SystemManager c;
private com.mobile.auth.gatewayauth.manager.b d;
private VendorSdkInfoManager e;
private TokenMaskManager f;
private com.mobile.auth.gatewayauth.manager.d g;
private CrashManager h;
private f i;
private Future<?> j;
private com.mobile.auth.l.a k;
private String l;
private final ResultCodeProcessor m = new com.mobile.auth.gatewayauth.manager.compat.a();
private final ResultCodeProcessor n = new com.mobile.auth.gatewayauth.manager.compat.b();
private volatile String o;
public class AnonymousClass11 implements TokenResultListener {
public final PreLoginResultListener f49035a;
public final String b;
public AnonymousClass11(PreLoginResultListener preLoginResultListener, String str) {
this.f49035a = preLoginResultListener;
this.b = str;
}
@Override
public void onTokenFailed(String str) {
try {
this.f49035a.onTokenFailed(this.b, str);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onTokenSuccess(String str) {
try {
this.f49035a.onTokenSuccess(this.b);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
}
public class AnonymousClass12 implements Runnable {
public final String f49036a;
public final TokenResultListener b;
public final MonitorStruct c;
public final String d;
public AnonymousClass12(String str, TokenResultListener tokenResultListener, MonitorStruct monitorStruct, String str2) {
this.f49036a = str;
this.b = tokenResultListener;
this.c = monitorStruct;
this.d = str2;
}
@Override
public void run() {
try {
PhoneNumberAuthHelperProxy.b(PhoneNumberAuthHelperProxy.this, "600015", "请求超时", com.mobile.auth.gatewayauth.utils.a.a("600015", "请求超时"), this.f49036a, this.b, PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this), this.c, this.d);
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).e("justPreVerify errorCode = ", "600015", "; errorMsg = ", "请求超时", "; action = ", this.c.getAction());
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
}
public class AnonymousClass13 implements RequestCallback<String, com.mobile.auth.gatewayauth.manager.base.b> {
public final b f49037a;
public final MonitorStruct b;
public final String c;
public final TokenResultListener d;
public final String e;
public final String f;
public AnonymousClass13(b bVar, MonitorStruct monitorStruct, String str, TokenResultListener tokenResultListener, String str2, String str3) {
this.f49037a = bVar;
this.b = monitorStruct;
this.c = str;
this.d = tokenResultListener;
this.e = str2;
this.f = str3;
}
public void a(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
if (this.f49037a.d()) {
this.b.setCache("false");
this.b.setCarrierFailedResultData(bVar.d());
PhoneNumberAuthHelperProxy.b(PhoneNumberAuthHelperProxy.this, bVar.b(), bVar.c(), bVar.g(), this.e, this.d, PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this), this.b, this.f);
}
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public void a(String str) {
try {
if (this.f49037a.d()) {
this.b.setCache(str);
this.b.setAuthSdkCode(PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this).convertCode("8000"));
PhoneNumberAuthHelperProxy.a(PhoneNumberAuthHelperProxy.this, true, true, "", this.c, this.b, this.d);
}
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onError(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
a(bVar);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onSuccess(String str) {
try {
a(str);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
}
public class AnonymousClass16 implements Runnable {
public final RequestCallback f49042a;
public AnonymousClass16(RequestCallback requestCallback) {
this.f49042a = requestCallback;
}
@Override
public void run() {
try {
this.f49042a.onError(com.mobile.auth.gatewayauth.manager.base.b.a("600015", "请求超时"));
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
}
public class AnonymousClass17 implements RequestCallback<com.mobile.auth.gatewayauth.manager.base.b, com.mobile.auth.gatewayauth.manager.base.b> {
public final b f49043a;
public final MonitorStruct b;
public final ResultCodeProcessor c;
public final RequestCallback d;
public AnonymousClass17(b bVar, MonitorStruct monitorStruct, ResultCodeProcessor resultCodeProcessor, RequestCallback requestCallback) {
this.f49043a = bVar;
this.b = monitorStruct;
this.c = resultCodeProcessor;
this.d = requestCallback;
}
public void a(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
if (this.f49043a.d()) {
this.b.setCache(String.valueOf(bVar.e()));
LoginPhoneInfo h = bVar.h();
this.b.setPhoneNumber(h.getPhoneNumber());
PhoneNumberAuthHelperProxy.this.a(h.getPhoneNumber());
this.b.setAuthSdkCode(this.c.convertCode("8000"));
this.d.onSuccess(h);
}
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public void b(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
if (this.f49043a.d()) {
this.b.setCache("false");
this.b.setCarrierFailedResultData(bVar.d());
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).e("justGetLoginPhone failed!", bVar.i());
this.d.onError(bVar);
}
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onError(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
b(bVar);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onSuccess(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
a(bVar);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
}
public class AnonymousClass18 implements TokenResultListener {
public final PreLoginResultListener f49044a;
public final String b;
public AnonymousClass18(PreLoginResultListener preLoginResultListener, String str) {
this.f49044a = preLoginResultListener;
this.b = str;
}
@Override
public void onTokenFailed(String str) {
try {
this.f49044a.onTokenFailed(this.b, str);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onTokenSuccess(String str) {
try {
this.f49044a.onTokenSuccess(this.b);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
}
public class AnonymousClass19 implements Runnable {
public final String f49045a;
public final TokenResultListener b;
public final ResultCodeProcessor c;
public final MonitorStruct d;
public final String e;
public AnonymousClass19(String str, TokenResultListener tokenResultListener, ResultCodeProcessor resultCodeProcessor, MonitorStruct monitorStruct, String str2) {
this.f49045a = str;
this.b = tokenResultListener;
this.c = resultCodeProcessor;
this.d = monitorStruct;
this.e = str2;
}
@Override
public void run() {
try {
PhoneNumberAuthHelperProxy.a(PhoneNumberAuthHelperProxy.this, "600015", "请求超时", com.mobile.auth.gatewayauth.utils.a.a("600015", "请求超时"), this.f49045a, this.b, this.c, this.d, this.e);
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).e("justPreLogin errorCode = ", "600015", "; errorMsg = ", "请求超时", "; action = ", this.d.getAction());
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
}
public class AnonymousClass20 implements RequestCallback<com.mobile.auth.gatewayauth.manager.base.b, com.mobile.auth.gatewayauth.manager.base.b> {
public final b f49047a;
public final MonitorStruct b;
public final ResultCodeProcessor c;
public final String d;
public final TokenResultListener e;
public final String f;
public final String g;
public AnonymousClass20(b bVar, MonitorStruct monitorStruct, ResultCodeProcessor resultCodeProcessor, String str, TokenResultListener tokenResultListener, String str2, String str3) {
this.f49047a = bVar;
this.b = monitorStruct;
this.c = resultCodeProcessor;
this.d = str;
this.e = tokenResultListener;
this.f = str2;
this.g = str3;
}
public void a(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
if (this.f49047a.d()) {
this.b.setCache(String.valueOf(bVar.e()));
this.b.setAuthSdkCode(this.c.convertCode("8000"));
PhoneNumberAuthHelperProxy.a(PhoneNumberAuthHelperProxy.this, true, true, "", this.d, this.b, this.e);
}
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public void b(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
if (this.f49047a.d()) {
this.b.setCache("false");
this.b.setCarrierFailedResultData(bVar.d());
PhoneNumberAuthHelperProxy.a(PhoneNumberAuthHelperProxy.this, bVar.b(), bVar.c(), bVar.g(), this.f, this.e, this.c, this.b, this.g);
}
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onError(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
b(bVar);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onSuccess(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
a(bVar);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
}
public class AnonymousClass3 implements Runnable {
public final String f49058a;
public final TokenResultListener b;
public final ResultCodeProcessor c;
public final MonitorStruct d;
public final String e;
public AnonymousClass3(String str, TokenResultListener tokenResultListener, ResultCodeProcessor resultCodeProcessor, MonitorStruct monitorStruct, String str2) {
this.f49058a = str;
this.b = tokenResultListener;
this.c = resultCodeProcessor;
this.d = monitorStruct;
this.e = str2;
}
@Override
public void run() {
try {
PhoneNumberAuthHelperProxy.a(PhoneNumberAuthHelperProxy.this, "600015", "请求超时", com.mobile.auth.gatewayauth.utils.a.a("600015", "请求超时"), this.f49058a, this.b, this.c, this.d, this.e);
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).e("justGetLoginToken Timeout!");
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
}
public class AnonymousClass4 implements RequestCallback<com.mobile.auth.gatewayauth.manager.base.b, com.mobile.auth.gatewayauth.manager.base.b> {
public final b f49060a;
public final MonitorStruct b;
public final String c;
public final TokenResultListener d;
public final ResultCodeProcessor e;
public final String f;
public AnonymousClass4(b bVar, MonitorStruct monitorStruct, String str, TokenResultListener tokenResultListener, ResultCodeProcessor resultCodeProcessor, String str2) {
this.f49060a = bVar;
this.b = monitorStruct;
this.c = str;
this.d = tokenResultListener;
this.e = resultCodeProcessor;
this.f = str2;
}
public void a(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
if (this.f49060a.d()) {
this.b.setCache(String.valueOf(bVar.e()));
PhoneNumberAuthHelperProxy.a(PhoneNumberAuthHelperProxy.this, true, this.c, this.d, this.e, bVar.d(), this.b, this.f);
}
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public void b(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
if (this.f49060a.d()) {
this.b.setCache("false");
this.b.setCarrierFailedResultData(bVar.d());
PhoneNumberAuthHelperProxy.a(PhoneNumberAuthHelperProxy.this, bVar.b(), bVar.c(), bVar.g(), this.c, this.d, this.e, this.b, this.f);
}
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onError(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
b(bVar);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onSuccess(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
a(bVar);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
}
public class AnonymousClass5 implements Runnable {
public final String f49061a;
public final TokenResultListener b;
public final ResultCodeProcessor c;
public final MonitorStruct d;
public final String e;
public AnonymousClass5(String str, TokenResultListener tokenResultListener, ResultCodeProcessor resultCodeProcessor, MonitorStruct monitorStruct, String str2) {
this.f49061a = str;
this.b = tokenResultListener;
this.c = resultCodeProcessor;
this.d = monitorStruct;
this.e = str2;
}
@Override
public void run() {
try {
PhoneNumberAuthHelperProxy.b(PhoneNumberAuthHelperProxy.this, "600015", "请求超时", com.mobile.auth.gatewayauth.utils.a.a("600015", "请求超时"), this.f49061a, this.b, this.c, this.d, this.e);
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).e("justGetToken Timeout!");
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
}
public class AnonymousClass6 implements RequestCallback<com.mobile.auth.gatewayauth.manager.base.b, com.mobile.auth.gatewayauth.manager.base.b> {
public final b f49062a;
public final MonitorStruct b;
public final String c;
public final ResultCodeProcessor d;
public final TokenResultListener e;
public final String f;
public AnonymousClass6(b bVar, MonitorStruct monitorStruct, String str, ResultCodeProcessor resultCodeProcessor, TokenResultListener tokenResultListener, String str2) {
this.f49062a = bVar;
this.b = monitorStruct;
this.c = str;
this.d = resultCodeProcessor;
this.e = tokenResultListener;
this.f = str2;
}
public void a(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
if (this.f49062a.d()) {
this.b.setCache(String.valueOf(bVar.e()));
PhoneNumberAuthHelperProxy.a(PhoneNumberAuthHelperProxy.this, true, this.c, this.d, this.b, bVar.d(), this.e, this.f);
}
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public void b(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
if (this.f49062a.d()) {
this.b.setCache("false");
this.b.setCarrierFailedResultData(bVar.d());
PhoneNumberAuthHelperProxy.b(PhoneNumberAuthHelperProxy.this, bVar.b(), bVar.c(), bVar.g(), this.c, this.e, this.d, this.b, this.f);
}
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onError(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
b(bVar);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onSuccess(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
a(bVar);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
}
static {
System.loadLibrary("auth_number_product-2.12.3.4-nolog-online-standard-channel_alijtca_plus");
f49032a = null;
}
private PhoneNumberAuthHelperProxy(Context context, TokenResultListener tokenResultListener) {
this.b = tokenResultListener;
ComponentSdkCore.register(context.getApplicationContext());
a(context.getApplicationContext());
}
public static SystemManager a(PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy) {
try {
return phoneNumberAuthHelperProxy.c;
} catch (Throwable th) {
try {
a.a(th);
return null;
} catch (Throwable th2) {
a.a(th2);
return null;
}
}
}
private void a(Context context) {
try {
com.mobile.auth.gatewayauth.manager.d dVar = new com.mobile.auth.gatewayauth.manager.d(context);
this.g = dVar;
this.k = dVar.a();
this.c = new SystemManager(context, this.k);
this.h = CrashManager.a(context);
VendorSdkInfoManager vendorSdkInfoManager = new VendorSdkInfoManager(this.g, this.c);
this.e = vendorSdkInfoManager;
this.d = new com.mobile.auth.gatewayauth.manager.b(context, vendorSdkInfoManager, this.g);
f fVar = new f(this.c, this.g);
this.i = fVar;
this.g.a(fVar);
this.f = new TokenMaskManager(this.d, this.c, this.g, this.i, this.e);
ExecutorManager.getInstance().scheduleFuture(new Runnable() {
@Override
public void run() {
try {
PhoneNumberAuthHelperProxy.a(PhoneNumberAuthHelperProxy.this).getSimCacheKey(false, null);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
});
d();
UaidTracker.getInstance().setKey(EncryptUtils.getSecret5().substring(4, 10) + EncryptUtils.getSecret6().substring(1, 7), EncryptUtils.getSecret5().substring(15) + EncryptUtils.getSecret6().substring(38, 54), EncryptUtils.getSecret6().substring(70, 76) + EncryptUtils.getSecret6().substring(86, 92));
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public static void a(PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy, int i, ResultCodeProcessor resultCodeProcessor, boolean z, TokenResultListener tokenResultListener) {
try {
phoneNumberAuthHelperProxy.justGetToken(i, resultCodeProcessor, z, tokenResultListener);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public static void a(PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy, long j, PreLoginResultListener preLoginResultListener) {
try {
phoneNumberAuthHelperProxy.justPreVerify(j, preLoginResultListener);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public static void a(PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy, long j, PreLoginResultListener preLoginResultListener, ResultCodeProcessor resultCodeProcessor, boolean z, boolean z2) {
try {
phoneNumberAuthHelperProxy.justPreLogin(j, preLoginResultListener, resultCodeProcessor, z, z2);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public static void a(PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy, long j, TokenResultListener tokenResultListener, ResultCodeProcessor resultCodeProcessor) {
try {
phoneNumberAuthHelperProxy.justGetLoginToken(j, tokenResultListener, resultCodeProcessor);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public static void a(PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy, String str, String str2, String str3, String str4, TokenResultListener tokenResultListener, ResultCodeProcessor resultCodeProcessor, MonitorStruct monitorStruct, String str5) {
try {
phoneNumberAuthHelperProxy.a(str, str2, str3, str4, tokenResultListener, resultCodeProcessor, monitorStruct, str5);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public static void a(PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy, boolean z, boolean z2, String str, String str2, MonitorStruct monitorStruct, TokenResultListener tokenResultListener) {
try {
phoneNumberAuthHelperProxy.a(z, z2, str, str2, monitorStruct, tokenResultListener);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
private void a(String str, String str2, String str3, String str4, TokenResultListener tokenResultListener, ResultCodeProcessor resultCodeProcessor, MonitorStruct monitorStruct, String str5) {
try {
this.g.h();
a(false, true, str, str2, str3, str4, monitorStruct, tokenResultListener, resultCodeProcessor, str5);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
private void a(final String str, final boolean z, final MonitorStruct monitorStruct, final boolean z2) {
try {
ExecutorManager.getInstance().scheduleFuture(new Runnable() {
@Override
public void run() {
try {
if (monitorStruct != null) {
long currentTimeMillis = System.currentTimeMillis();
monitorStruct.setSuccess(z);
monitorStruct.setEndTime(currentTimeMillis);
if (!z) {
monitorStruct.setFailRet(str);
}
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).a(PhoneNumberAuthHelperProxy.g(PhoneNumberAuthHelperProxy.this).a(monitorStruct), monitorStruct.getUrgency());
}
if (z2) {
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).b();
}
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
});
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
private void a(final boolean z, final String str, final TokenResultListener tokenResultListener) {
try {
ExecutorManager.getInstance().postMain(new ExecutorManager.SafeRunnable() {
@Override
public void onException(Throwable th) {
try {
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).e("TokenResultListener callback exception!", ExecutorManager.getErrorInfoFromException(th));
} catch (Throwable th2) {
try {
a.a(th2);
} catch (Throwable th3) {
a.a(th3);
}
}
}
@Override
public void safeRun() {
try {
if (z) {
tokenResultListener.onTokenSuccess(str);
} else {
tokenResultListener.onTokenFailed(str);
}
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
});
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
private void a(boolean z, boolean z2, String str, String str2, MonitorStruct monitorStruct, TokenResultListener tokenResultListener) {
if (tokenResultListener != null) {
try {
a(z, str2, tokenResultListener);
} catch (Throwable th) {
try {
a.a(th);
return;
} catch (Throwable th2) {
a.a(th2);
return;
}
}
}
a(str, z, monitorStruct, z2);
}
public static boolean a(PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy, boolean z, String str, TokenResultListener tokenResultListener, ResultCodeProcessor resultCodeProcessor, String str2, MonitorStruct monitorStruct, String str3) {
try {
return phoneNumberAuthHelperProxy.a(z, str, tokenResultListener, resultCodeProcessor, str2, monitorStruct, str3);
} catch (Throwable th) {
try {
a.a(th);
return false;
} catch (Throwable th2) {
a.a(th2);
return false;
}
}
}
public static boolean a(PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy, boolean z, String str, ResultCodeProcessor resultCodeProcessor, MonitorStruct monitorStruct, String str2, TokenResultListener tokenResultListener, String str3) {
try {
return phoneNumberAuthHelperProxy.a(z, str, resultCodeProcessor, monitorStruct, str2, tokenResultListener, str3);
} catch (Throwable th) {
try {
a.a(th);
return false;
} catch (Throwable th2) {
a.a(th2);
return false;
}
}
}
private boolean a(final String str, String str2, final String str3) {
try {
final long currentTimeMillis = System.currentTimeMillis();
boolean z = (str3 == null || str3.equals(str2)) ? false : true;
final long currentTimeMillis2 = System.currentTimeMillis();
final boolean z2 = z;
ExecutorManager.getInstance().scheduleFuture(new Runnable() {
@Override
public void run() {
try {
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).a(PhoneNumberAuthHelperProxy.g(PhoneNumberAuthHelperProxy.this).a(str3, "sdk.cross.carrier.change", UStruct.newUStruct().isCarrierChanged(String.valueOf(z2)).requestId(PhoneNumberAuthHelperProxy.g(PhoneNumberAuthHelperProxy.this).e()).sessionId(str).startTime(currentTimeMillis).endTime(currentTimeMillis2).build(), ""), 2);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
});
return z;
} catch (Throwable th) {
try {
a.a(th);
return false;
} catch (Throwable th2) {
a.a(th2);
return false;
}
}
}
private boolean a(boolean z, String str, TokenResultListener tokenResultListener, ResultCodeProcessor resultCodeProcessor, String str2, MonitorStruct monitorStruct, String str3) {
try {
this.g.h();
if (!TextUtils.isEmpty(str2)) {
a(str2, str, monitorStruct, resultCodeProcessor, tokenResultListener);
return true;
}
this.k.e("GetLoginToken from cache is null!");
if (z) {
monitorStruct.setAuthSdkCode("-10008");
a(false, true, "-10008", "未知异常", com.mobile.auth.gatewayauth.utils.a.a("-10008", "未知异常"), str, monitorStruct, tokenResultListener, resultCodeProcessor, str3);
}
return false;
} catch (Throwable th) {
try {
a.a(th);
return false;
} catch (Throwable th2) {
a.a(th2);
return false;
}
}
}
private boolean a(boolean z, String str, ResultCodeProcessor resultCodeProcessor, MonitorStruct monitorStruct, String str2, TokenResultListener tokenResultListener, String str3) {
try {
this.g.i();
if (!TextUtils.isEmpty(str2)) {
a(str2, str, monitorStruct, resultCodeProcessor, tokenResultListener);
return true;
}
this.k.e("GetVerifyToken from cache is null!");
if (z) {
a(false, true, "-10008", "未知异常", com.mobile.auth.gatewayauth.utils.a.a("-10008", "未知异常"), str, monitorStruct, tokenResultListener, resultCodeProcessor, str3);
}
return false;
} catch (Throwable th) {
try {
a.a(th);
return false;
} catch (Throwable th2) {
a.a(th2);
return false;
}
}
}
public static com.mobile.auth.gatewayauth.manager.b b(PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy) {
try {
return phoneNumberAuthHelperProxy.d;
} catch (Throwable th) {
try {
a.a(th);
return null;
} catch (Throwable th2) {
a.a(th2);
return null;
}
}
}
public static void b(PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy, String str, String str2, String str3, String str4, TokenResultListener tokenResultListener, ResultCodeProcessor resultCodeProcessor, MonitorStruct monitorStruct, String str5) {
try {
phoneNumberAuthHelperProxy.b(str, str2, str3, str4, tokenResultListener, resultCodeProcessor, monitorStruct, str5);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
private void b(String str, String str2, String str3, String str4, TokenResultListener tokenResultListener, ResultCodeProcessor resultCodeProcessor, MonitorStruct monitorStruct, String str5) {
try {
this.g.i();
a(false, true, str, str2, str3, str4, monitorStruct, tokenResultListener, resultCodeProcessor, str5);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public static VendorSdkInfoManager c(PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy) {
try {
return phoneNumberAuthHelperProxy.e;
} catch (Throwable th) {
try {
a.a(th);
return null;
} catch (Throwable th2) {
a.a(th2);
return null;
}
}
}
public static f d(PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy) {
try {
return phoneNumberAuthHelperProxy.i;
} catch (Throwable th) {
try {
a.a(th);
return null;
} catch (Throwable th2) {
a.a(th2);
return null;
}
}
}
private void d() {
try {
this.k.c();
this.k.d();
if (this.d.r()) {
this.g.a(this.d.s());
}
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public static com.mobile.auth.l.a e(PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy) {
try {
return phoneNumberAuthHelperProxy.k;
} catch (Throwable th) {
try {
a.a(th);
return null;
} catch (Throwable th2) {
a.a(th2);
return null;
}
}
}
public static ResultCodeProcessor f(PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy) {
try {
return phoneNumberAuthHelperProxy.m;
} catch (Throwable th) {
try {
a.a(th);
return null;
} catch (Throwable th2) {
a.a(th2);
return null;
}
}
}
public static com.mobile.auth.gatewayauth.manager.d g(PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy) {
try {
return phoneNumberAuthHelperProxy.g;
} catch (Throwable th) {
try {
a.a(th);
return null;
} catch (Throwable th2) {
a.a(th2);
return null;
}
}
}
@AuthNumber
public static PhoneNumberAuthHelperProxy getInstance(Context context, TokenResultListener tokenResultListener) {
try {
if (f49032a == null && context != null) {
synchronized (PhoneNumberAuthHelperProxy.class) {
if (f49032a == null) {
f49032a = new PhoneNumberAuthHelperProxy(context, tokenResultListener);
}
}
}
f49032a.setAuthListener(tokenResultListener);
return f49032a;
} catch (Throwable th) {
try {
a.a(th);
return null;
} catch (Throwable th2) {
a.a(th2);
return null;
}
}
}
@AuthNumber
public static String getVersion() {
return BuildConfig.VERSION_NAME;
}
public static ResultCodeProcessor h(PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy) {
try {
return phoneNumberAuthHelperProxy.n;
} catch (Throwable th) {
try {
a.a(th);
return null;
} catch (Throwable th2) {
a.a(th2);
return null;
}
}
}
public static Future i(PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy) {
try {
return phoneNumberAuthHelperProxy.j;
} catch (Throwable th) {
try {
a.a(th);
return null;
} catch (Throwable th2) {
a.a(th2);
return null;
}
}
}
@SafeProtector
private native void justGetLoginPhone(MonitorStruct monitorStruct, String str, int i, ResultCodeProcessor resultCodeProcessor, boolean z, RequestCallback<LoginPhoneInfo, com.mobile.auth.gatewayauth.manager.base.b> requestCallback, String str2, String str3, int i2);
@SafeProtector
private native void justGetLoginToken(long j, TokenResultListener tokenResultListener, ResultCodeProcessor resultCodeProcessor);
@SafeProtector
private native void justGetToken(int i, ResultCodeProcessor resultCodeProcessor, boolean z, TokenResultListener tokenResultListener);
@SafeProtector
private native void justPreLogin(long j, PreLoginResultListener preLoginResultListener, ResultCodeProcessor resultCodeProcessor, boolean z, boolean z2);
@SafeProtector
private native void justPreVerify(long j, PreLoginResultListener preLoginResultListener);
public SystemManager a() {
try {
return this.c;
} catch (Throwable th) {
try {
a.a(th);
return null;
} catch (Throwable th2) {
a.a(th2);
return null;
}
}
}
public void a(final long j, final TokenResultListener tokenResultListener, final ResultCodeProcessor resultCodeProcessor) {
try {
ExecutorManager.getInstance().scheduleFuture(new e.a(tokenResultListener) {
@Override
public void a() {
try {
PhoneNumberAuthHelperProxy.a(PhoneNumberAuthHelperProxy.this, j, tokenResultListener, resultCodeProcessor);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
});
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public synchronized void a(String str) {
try {
this.o = str;
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public void a(String str, String str2, MonitorStruct monitorStruct, ResultCodeProcessor resultCodeProcessor, TokenResultListener tokenResultListener) {
if (tokenResultListener == null) {
return;
}
try {
TokenRet convertErrorInfo = resultCodeProcessor.convertErrorInfo("8000", "获取token成功", str2);
convertErrorInfo.setToken(str);
convertErrorInfo.setRequestId(monitorStruct.getRequestId());
monitorStruct.setPerformanceTrace(com.mobile.auth.gatewayauth.utils.c.a().a(monitorStruct.getRequestId()));
monitorStruct.setAccessCode(str);
monitorStruct.setAuthSdkCode(convertErrorInfo.getCode());
a(true, true, "", convertErrorInfo.toJsonString(), monitorStruct, tokenResultListener);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public void a(boolean z, boolean z2, String str, String str2, String str3, String str4, MonitorStruct monitorStruct, TokenResultListener tokenResultListener, ResultCodeProcessor resultCodeProcessor, String str5) {
try {
TokenRet convertErrorInfo = resultCodeProcessor.convertErrorInfo(str, str2, str4);
if (monitorStruct != null) {
monitorStruct.setPerformanceTrace(com.mobile.auth.gatewayauth.utils.c.a().a(str5));
monitorStruct.setAuthSdkCode(convertErrorInfo.getCode());
convertErrorInfo.setCarrierFailedResultData(monitorStruct.getCarrierFailedResultData());
}
convertErrorInfo.setRequestId(str5);
a(z, z2, str3, convertErrorInfo.toJsonString(), monitorStruct, tokenResultListener);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@AuthNumber
public void accelerateLoginPage(final int i, final PreLoginResultListener preLoginResultListener, final boolean z) {
try {
ExecutorManager.getInstance().scheduleFuture(new e.a(this.b) {
@Override
public void a() {
try {
PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy = PhoneNumberAuthHelperProxy.this;
PhoneNumberAuthHelperProxy.a(phoneNumberAuthHelperProxy, i, preLoginResultListener, PhoneNumberAuthHelperProxy.h(phoneNumberAuthHelperProxy), true, z);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
});
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@AuthNumber
public void accelerateVerify(final int i, final PreLoginResultListener preLoginResultListener) {
try {
ExecutorManager.getInstance().scheduleFuture(new e.a(new TokenResultListener() {
@Override
public void onTokenFailed(String str) {
try {
PreLoginResultListener preLoginResultListener2 = preLoginResultListener;
if (preLoginResultListener2 != null) {
preLoginResultListener2.onTokenFailed("", str);
}
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onTokenSuccess(String str) {
}
}) {
@Override
public void a() {
try {
PhoneNumberAuthHelperProxy.a(PhoneNumberAuthHelperProxy.this, i, preLoginResultListener);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
});
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public com.mobile.auth.gatewayauth.manager.d b() {
try {
return this.g;
} catch (Throwable th) {
try {
a.a(th);
return null;
} catch (Throwable th2) {
a.a(th2);
return null;
}
}
}
public com.mobile.auth.l.a c() {
try {
return this.k;
} catch (Throwable th) {
try {
a.a(th);
return null;
} catch (Throwable th2) {
a.a(th2);
return null;
}
}
}
@AuthNumber
public void checkEnvAvailable(@IntRange(from = 1, to = 2) final int i, final TokenResultListener tokenResultListener) {
try {
ExecutorManager.getInstance().scheduleFuture(new e.a() {
@Override
public void a() {
MonitorStruct monitorStruct;
char c;
try {
String c2 = PhoneNumberAuthHelperProxy.a(PhoneNumberAuthHelperProxy.this).c();
String j = PhoneNumberAuthHelperProxy.g(PhoneNumberAuthHelperProxy.this).j();
MonitorStruct monitorStruct2 = new MonitorStruct();
monitorStruct2.setAction("sdk.check");
monitorStruct2.setStartTime(System.currentTimeMillis());
monitorStruct2.setApiLevel(PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this).getApiLevel());
monitorStruct2.setVendorKey(c2);
monitorStruct2.setUrgency(2);
monitorStruct2.setRequestId(PhoneNumberAuthHelperProxy.g(PhoneNumberAuthHelperProxy.this).e());
monitorStruct2.putApiParam("type", String.valueOf(i));
TokenRet tokenRet = null;
try {
int i2 = i;
if (i2 != 1 && i2 != 2) {
TokenRet convertErrorInfo = PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this).convertErrorInfo("600025", "参数错误", c2);
if (convertErrorInfo != null) {
PhoneNumberAuthHelperProxy.this.a(false, true, convertErrorInfo.getCode(), convertErrorInfo.getMsg(), com.mobile.auth.gatewayauth.utils.a.a(convertErrorInfo.getCode(), convertErrorInfo.getMsg()), c2, monitorStruct2, tokenResultListener, PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this), j);
return;
}
return;
}
monitorStruct2.setSessionId(1 == i2 ? PhoneNumberAuthHelperProxy.g(PhoneNumberAuthHelperProxy.this).d() : PhoneNumberAuthHelperProxy.g(PhoneNumberAuthHelperProxy.this).c());
TokenRet a2 = PhoneNumberAuthHelperProxy.a(PhoneNumberAuthHelperProxy.this).a(PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this), true, c2);
if (a2 != null) {
try {
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).e("checkEnvAvailable errorCode = ", a2.getCode(), "; errorMsg = ", a2.getMsg());
PhoneNumberAuthHelperProxy.this.a(false, true, a2.getCode(), a2.getMsg(), com.mobile.auth.gatewayauth.utils.a.a(a2.getCode(), a2.getMsg()), c2, monitorStruct2, tokenResultListener, PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this), j);
} catch (Exception e) {
e = e;
monitorStruct = monitorStruct2;
c = 1;
e.printStackTrace();
tokenRet = PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this).convertErrorInfo("600010", ExecutorManager.getErrorInfoFromException(e), c2);
com.mobile.auth.l.a e2 = PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this);
String[] strArr = new String[2];
strArr[0] = "checkEnvAvailable exception:";
strArr[c] = tokenRet.toJsonString();
e2.e(strArr);
PhoneNumberAuthHelperProxy.this.a(false, true, tokenRet.getCode(), tokenRet.getMsg(), com.mobile.auth.gatewayauth.utils.a.a(tokenRet.getCode(), tokenRet.getMsg()), c2, monitorStruct, tokenResultListener, PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this), j);
} catch (Throwable th) {
th = th;
tokenRet = a2;
monitorStruct = monitorStruct2;
if (tokenRet != null) {
}
throw th;
}
} else if (!PhoneNumberAuthHelperProxy.c(PhoneNumberAuthHelperProxy.this).a()) {
TokenRet convertErrorInfo2 = PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this).convertErrorInfo("600017", "AppID Secret解析失败", c2);
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).e("checkEnvAvailable errorCode = ", "600017", "; errorMsg = ", "AppID Secret解析失败");
if (convertErrorInfo2 != null) {
PhoneNumberAuthHelperProxy.this.a(false, true, convertErrorInfo2.getCode(), convertErrorInfo2.getMsg(), com.mobile.auth.gatewayauth.utils.a.a(convertErrorInfo2.getCode(), convertErrorInfo2.getMsg()), c2, monitorStruct2, tokenResultListener, PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this), j);
}
} else if (PhoneNumberAuthHelperProxy.d(PhoneNumberAuthHelperProxy.this).a(c2) == null) {
TokenRet convertErrorInfo3 = PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this).convertErrorInfo("600009", "无法判运营商", c2);
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).e("checkEnvAvailable failed! Unsupported Vendor!");
if (convertErrorInfo3 != null) {
PhoneNumberAuthHelperProxy.this.a(false, true, convertErrorInfo3.getCode(), convertErrorInfo3.getMsg(), com.mobile.auth.gatewayauth.utils.a.a(convertErrorInfo3.getCode(), convertErrorInfo3.getMsg()), c2, monitorStruct2, tokenResultListener, PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this), j);
}
} else {
if (!PhoneNumberAuthHelperProxy.c(PhoneNumberAuthHelperProxy.this).b()) {
PhoneNumberAuthHelperProxy.c(PhoneNumberAuthHelperProxy.this).a("", new RequestCallback<Void, String>() {
public void a(String str) {
try {
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).e("GetVendorList failed!", str);
} catch (Throwable th2) {
try {
a.a(th2);
} catch (Throwable th3) {
a.a(th3);
}
}
}
public void a(Void r1) {
}
@Override
public void onError(String str) {
try {
a(str);
} catch (Throwable th2) {
try {
a.a(th2);
} catch (Throwable th3) {
a.a(th3);
}
}
}
@Override
public void onSuccess(Void r1) {
try {
a(r1);
} catch (Throwable th2) {
try {
a.a(th2);
} catch (Throwable th3) {
a.a(th3);
}
}
}
}, com.mobile.auth.gatewayauth.manager.e.a(PhoneNumberAuthHelperProxy.a(PhoneNumberAuthHelperProxy.this).e(), PhoneNumberAuthHelperProxy.c(PhoneNumberAuthHelperProxy.this), PhoneNumberAuthHelperProxy.b(PhoneNumberAuthHelperProxy.this), PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this)));
}
if (PhoneNumberAuthHelperProxy.i(PhoneNumberAuthHelperProxy.this) != null) {
PhoneNumberAuthHelperProxy.i(PhoneNumberAuthHelperProxy.this).get();
}
if (i == 1) {
if (PhoneNumberAuthHelperProxy.b(PhoneNumberAuthHelperProxy.this).b()) {
TokenRet convertErrorInfo4 = PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this).convertErrorInfo("600013", "系统维护,功能不可用", c2);
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).e("checkEnvAvailable errorCode = ", "600013", "; errorMsg = ", "系统维护,功能不可用");
if (convertErrorInfo4 != null) {
PhoneNumberAuthHelperProxy.this.a(false, true, convertErrorInfo4.getCode(), convertErrorInfo4.getMsg(), com.mobile.auth.gatewayauth.utils.a.a(convertErrorInfo4.getCode(), convertErrorInfo4.getMsg()), c2, monitorStruct2, tokenResultListener, PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this), j);
return;
}
return;
}
} else if (PhoneNumberAuthHelperProxy.b(PhoneNumberAuthHelperProxy.this).c()) {
TokenRet convertErrorInfo5 = PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this).convertErrorInfo("600013", "系统维护,功能不可用", c2);
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).e("checkEnvAvailable errorCode = ", "600013", "; errorMsg = ", "系统维护,功能不可用");
if (convertErrorInfo5 != null) {
PhoneNumberAuthHelperProxy.this.a(false, true, convertErrorInfo5.getCode(), convertErrorInfo5.getMsg(), com.mobile.auth.gatewayauth.utils.a.a(convertErrorInfo5.getCode(), convertErrorInfo5.getMsg()), c2, monitorStruct2, tokenResultListener, PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this), j);
return;
}
return;
}
monitorStruct2.setAuthSdkCode("600024");
PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy = PhoneNumberAuthHelperProxy.this;
c = 1;
monitorStruct = monitorStruct2;
try {
try {
phoneNumberAuthHelperProxy.a(true, true, "600024", "终端支持认证", "", c2, monitorStruct2, tokenResultListener, PhoneNumberAuthHelperProxy.h(phoneNumberAuthHelperProxy), j);
} catch (Exception e3) {
e = e3;
e.printStackTrace();
tokenRet = PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this).convertErrorInfo("600010", ExecutorManager.getErrorInfoFromException(e), c2);
com.mobile.auth.l.a e22 = PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this);
String[] strArr2 = new String[2];
strArr2[0] = "checkEnvAvailable exception:";
strArr2[c] = tokenRet.toJsonString();
e22.e(strArr2);
PhoneNumberAuthHelperProxy.this.a(false, true, tokenRet.getCode(), tokenRet.getMsg(), com.mobile.auth.gatewayauth.utils.a.a(tokenRet.getCode(), tokenRet.getMsg()), c2, monitorStruct, tokenResultListener, PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this), j);
}
} catch (Throwable th2) {
th = th2;
if (tokenRet != null) {
PhoneNumberAuthHelperProxy.this.a(false, true, tokenRet.getCode(), tokenRet.getMsg(), com.mobile.auth.gatewayauth.utils.a.a(tokenRet.getCode(), tokenRet.getMsg()), c2, monitorStruct, tokenResultListener, PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this), j);
}
throw th;
}
}
} catch (Exception e4) {
e = e4;
} catch (Throwable th3) {
th = th3;
}
} catch (Throwable th4) {
try {
a.a(th4);
} catch (Throwable th5) {
a.a(th5);
}
}
}
});
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@AuthNumber
@Deprecated
public boolean checkEnvAvailable() {
int i;
char c;
char c2;
TokenRet tokenRet;
try {
String c3 = this.c.c();
String j = this.g.j();
MonitorStruct monitorStruct = new MonitorStruct();
monitorStruct.setAction("sdk.check");
monitorStruct.setVendorKey(c3);
monitorStruct.setStartTime(System.currentTimeMillis());
monitorStruct.setApiLevel(this.n.getApiLevel());
monitorStruct.setUrgency(2);
monitorStruct.setRequestId(j);
TokenRet tokenRet2 = null;
try {
tokenRet = this.c.a(this.n, true, c3);
if (tokenRet != null) {
a(false, true, tokenRet.getCode(), tokenRet.getMsg(), com.mobile.auth.gatewayauth.utils.a.a(tokenRet.getCode(), tokenRet.getMsg()), c3, monitorStruct, null, this.n, j);
this.k.e("checkEnvAvailable code = ", tokenRet.getCode(), "; msg = ", tokenRet.getMsg());
return false;
}
i = 4;
c = 2;
c2 = 1;
try {
if (!this.e.a()) {
TokenRet convertErrorInfo = this.n.convertErrorInfo("600017", "AppID Secret解析失败", c3);
this.k.e("checkEnvAvailable failed! Has no sceneCode!");
if (convertErrorInfo == null) {
a(true, true, "", "", "", "", monitorStruct, null, this.n, j);
return false;
}
a(false, true, convertErrorInfo.getCode(), convertErrorInfo.getMsg(), com.mobile.auth.gatewayauth.utils.a.a(convertErrorInfo.getCode(), convertErrorInfo.getMsg()), c3, monitorStruct, null, this.n, j);
this.k.e("checkEnvAvailable code = ", convertErrorInfo.getCode(), "; msg = ", convertErrorInfo.getMsg());
return false;
}
if (!this.e.b()) {
this.e.a("", new RequestCallback<Void, String>() {
public void a(String str) {
try {
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).e("GetVendorList failed!", str);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public void a(Void r1) {
}
@Override
public void onError(String str) {
try {
a(str);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onSuccess(Void r1) {
try {
a(r1);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
}, com.mobile.auth.gatewayauth.manager.e.a(this.c.e(), this.e, this.d, this.k));
}
if (this.i.a(c3) != null) {
if (tokenRet != null) {
a(false, true, tokenRet.getCode(), tokenRet.getMsg(), com.mobile.auth.gatewayauth.utils.a.a(tokenRet.getCode(), tokenRet.getMsg()), c3, monitorStruct, null, this.n, j);
this.k.e("checkEnvAvailable code = ", tokenRet.getCode(), "; msg = ", tokenRet.getMsg());
} else {
a(true, true, "", "", "", "", monitorStruct, null, this.n, j);
}
return true;
}
TokenRet convertErrorInfo2 = this.n.convertErrorInfo("600009", "无法判运营商", c3);
this.k.e("checkEnvAvailable failed! Unsupported Vendor!");
if (convertErrorInfo2 == null) {
a(true, true, "", "", "", "", monitorStruct, null, this.n, j);
return false;
}
a(false, true, convertErrorInfo2.getCode(), convertErrorInfo2.getMsg(), com.mobile.auth.gatewayauth.utils.a.a(convertErrorInfo2.getCode(), convertErrorInfo2.getMsg()), c3, monitorStruct, null, this.n, j);
this.k.e("checkEnvAvailable code = ", convertErrorInfo2.getCode(), "; msg = ", convertErrorInfo2.getMsg());
return false;
} catch (Exception e) {
e = e;
tokenRet2 = tokenRet;
try {
e.printStackTrace();
TokenRet convertErrorInfo3 = this.n.convertErrorInfo("600010", ExecutorManager.getErrorInfoFromException(e), c3);
if (convertErrorInfo3 == null) {
a(true, true, "", "", "", "", monitorStruct, null, this.n, j);
return false;
}
a(false, true, convertErrorInfo3.getCode(), convertErrorInfo3.getMsg(), com.mobile.auth.gatewayauth.utils.a.a(convertErrorInfo3.getCode(), convertErrorInfo3.getMsg()), c3, monitorStruct, null, this.n, j);
com.mobile.auth.l.a aVar = this.k;
String[] strArr = new String[i];
strArr[0] = "checkEnvAvailable code = ";
strArr[c2] = convertErrorInfo3.getCode();
strArr[c] = "; msg = ";
strArr[3] = convertErrorInfo3.getMsg();
aVar.e(strArr);
return false;
} catch (Throwable th) {
th = th;
tokenRet = tokenRet2;
if (tokenRet != null) {
a(false, true, tokenRet.getCode(), tokenRet.getMsg(), com.mobile.auth.gatewayauth.utils.a.a(tokenRet.getCode(), tokenRet.getMsg()), c3, monitorStruct, null, this.n, j);
com.mobile.auth.l.a aVar2 = this.k;
String[] strArr2 = new String[i];
strArr2[0] = "checkEnvAvailable code = ";
strArr2[c2] = tokenRet.getCode();
strArr2[c] = "; msg = ";
strArr2[3] = tokenRet.getMsg();
aVar2.e(strArr2);
} else {
a(true, true, "", "", "", "", monitorStruct, null, this.n, j);
}
throw th;
}
} catch (Throwable th2) {
th = th2;
if (tokenRet != null) {
}
throw th;
}
} catch (Exception e2) {
e = e2;
i = 4;
c = 2;
c2 = 1;
} catch (Throwable th3) {
th = th3;
i = 4;
c = 2;
c2 = 1;
tokenRet = tokenRet2;
if (tokenRet != null) {
}
throw th;
}
} catch (Throwable th4) {
try {
a.a(th4);
return false;
} catch (Throwable th5) {
a.a(th5);
return false;
}
}
}
@AuthNumber
public void clearPreInfo() {
try {
this.f.a();
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@AuthNumber
@Deprecated
public void getAuthToken(final int i, final TokenResultListener tokenResultListener) {
try {
ExecutorManager.getInstance().scheduleFuture(new e.a(tokenResultListener) {
@Override
public void a() {
try {
PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy = PhoneNumberAuthHelperProxy.this;
PhoneNumberAuthHelperProxy.a(phoneNumberAuthHelperProxy, i, PhoneNumberAuthHelperProxy.f(phoneNumberAuthHelperProxy), false, tokenResultListener);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
});
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@AuthNumber
public String getCurrentCarrierName() {
try {
return this.c.d();
} catch (Throwable th) {
try {
a.a(th);
return null;
} catch (Throwable th2) {
a.a(th2);
return null;
}
}
}
@AuthNumber
public String getLoginMaskPhone(int i, final String str, final OnLoginPhoneListener onLoginPhoneListener, final boolean z, boolean z2, final String str2) {
try {
final MonitorStruct monitorStruct = new MonitorStruct();
String f = this.g.f();
monitorStruct.setStartTime(System.currentTimeMillis());
justGetLoginPhone(monitorStruct, str, i, this.n, z2, new RequestCallback<LoginPhoneInfo, com.mobile.auth.gatewayauth.manager.base.b>() {
public void a(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
PhoneNumberAuthHelperProxy.g(PhoneNumberAuthHelperProxy.this).h();
PhoneNumberAuthHelperProxy.this.a(false, true, bVar.b(), bVar.c(), bVar.g(), str, monitorStruct, new TokenResultListener() {
@Override
public void onTokenFailed(String str3) {
try {
onLoginPhoneListener.onGetFailed(str3);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onTokenSuccess(String str3) {
}
}, PhoneNumberAuthHelperProxy.h(PhoneNumberAuthHelperProxy.this), str2);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public void a(final LoginPhoneInfo loginPhoneInfo) {
try {
loginPhoneInfo.setVendor(PhoneNumberAuthHelperProxy.a(PhoneNumberAuthHelperProxy.this).b(str));
PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy = PhoneNumberAuthHelperProxy.this;
phoneNumberAuthHelperProxy.a(true, z, "600000", "获取掩码成功", "", str, monitorStruct, null, PhoneNumberAuthHelperProxy.h(phoneNumberAuthHelperProxy), str2);
ExecutorManager.getInstance().postMain(new ExecutorManager.SafeRunnable() {
@Override
public void onException(Throwable th) {
}
@Override
public void safeRun() {
try {
onLoginPhoneListener.onGetLoginPhone(loginPhoneInfo);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
});
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onError(com.mobile.auth.gatewayauth.manager.base.b bVar) {
try {
a(bVar);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onSuccess(LoginPhoneInfo loginPhoneInfo) {
try {
a(loginPhoneInfo);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
}, str2, f, 6);
return str2;
} catch (Throwable th) {
try {
a.a(th);
return null;
} catch (Throwable th2) {
a.a(th2);
return null;
}
}
}
@AuthNumber
public PnsReporter getReporter() {
try {
return this.g.b();
} catch (Throwable th) {
try {
a.a(th);
return null;
} catch (Throwable th2) {
a.a(th2);
return null;
}
}
}
@AuthNumber
public void getVerifyToken(final int i, final TokenResultListener tokenResultListener) {
try {
ExecutorManager.getInstance().scheduleFuture(new e.a(tokenResultListener) {
@Override
public void a() {
try {
PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy = PhoneNumberAuthHelperProxy.this;
PhoneNumberAuthHelperProxy.a(phoneNumberAuthHelperProxy, i, PhoneNumberAuthHelperProxy.h(phoneNumberAuthHelperProxy), true, tokenResultListener);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
});
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@AuthNumber
@Deprecated
public void onDestroy() {
try {
final long currentTimeMillis = System.currentTimeMillis();
this.b = null;
if (f49032a != null) {
f49032a = null;
}
final long currentTimeMillis2 = System.currentTimeMillis();
ExecutorManager.getInstance().scheduleFuture(new Runnable() {
@Override
public void run() {
try {
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).a(PhoneNumberAuthHelperProxy.g(PhoneNumberAuthHelperProxy.this).a("", "sdk.destroy", UStruct.newUStruct().startTime(currentTimeMillis).endTime(currentTimeMillis2).build(), PhoneNumberAuthHelperProxy.f(PhoneNumberAuthHelperProxy.this).getApiLevel()), 2);
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).b();
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
});
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@AuthNumber
@Deprecated
public void preLogin(int i, final PreLoginResultListener preLoginResultListener, final boolean z) {
try {
ExecutorManager.getInstance().scheduleFuture(new e.a(this.b) {
@Override
public void a() {
try {
PreLoginResultListener preLoginResultListener2 = preLoginResultListener;
if (preLoginResultListener2 == null) {
return;
}
PhoneNumberAuthHelperProxy phoneNumberAuthHelperProxy = PhoneNumberAuthHelperProxy.this;
PhoneNumberAuthHelperProxy.a(phoneNumberAuthHelperProxy, 5000L, preLoginResultListener2, PhoneNumberAuthHelperProxy.f(phoneNumberAuthHelperProxy), false, z);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
});
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@AuthNumber
public void setAuthListener(TokenResultListener tokenResultListener) {
try {
this.b = tokenResultListener;
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@AuthNumber
public void setAuthSDKInfo(String str) {
try {
this.k.a("setAuthSDKInfo secretInfo = ", str);
this.c.a(str);
this.e.setLocalVendorSdkInfo(str);
if (this.i.a(this.e)) {
this.e.a("", new RequestCallback<Void, String>() {
public void a(String str2) {
try {
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).e("GetVendorList failed!", str2);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
public void a(Void r2) {
try {
PhoneNumberAuthHelperProxy.d(PhoneNumberAuthHelperProxy.this).a(PhoneNumberAuthHelperProxy.c(PhoneNumberAuthHelperProxy.this));
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onError(String str2) {
try {
a(str2);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@Override
public void onSuccess(Void r1) {
try {
a(r1);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
}, com.mobile.auth.gatewayauth.manager.e.a(this.c.e(), this.e, this.d, this.k));
} else {
this.k.e("VendorSdkFactor update local VendorConfig failed!");
}
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@AuthNumber
@Deprecated
public void setDebugMode(boolean z) {
try {
long currentTimeMillis = System.currentTimeMillis();
g.a(z);
this.k.a(this.g.b("", "sdk.debug.mode", UStruct.newUStruct().startTime(currentTimeMillis).putApiParams("isEnable", String.valueOf(z)).endTime(System.currentTimeMillis()).build(), this.m.getApiLevel()), 2);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@AuthNumber
@Deprecated
public void setLoggerEnable(final boolean z) {
try {
final long currentTimeMillis = System.currentTimeMillis();
g.a(z);
final long currentTimeMillis2 = System.currentTimeMillis();
ExecutorManager.getInstance().scheduleFuture(new Runnable() {
@Override
public void run() {
try {
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).a(PhoneNumberAuthHelperProxy.g(PhoneNumberAuthHelperProxy.this).b("", "sdk.logger.enable", UStruct.newUStruct().startTime(currentTimeMillis).putApiParams("isEnable", String.valueOf(z)).endTime(currentTimeMillis2).build(), PhoneNumberAuthHelperProxy.f(PhoneNumberAuthHelperProxy.this).getApiLevel()), 2);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
});
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
@AuthNumber
@Deprecated
public void setUploadEnable(final boolean z) {
try {
final long currentTimeMillis = System.currentTimeMillis();
g.b(z);
final long currentTimeMillis2 = System.currentTimeMillis();
ExecutorManager.getInstance().scheduleFuture(new Runnable() {
@Override
public void run() {
try {
PhoneNumberAuthHelperProxy.e(PhoneNumberAuthHelperProxy.this).a(PhoneNumberAuthHelperProxy.g(PhoneNumberAuthHelperProxy.this).b("", "sdk.upload.enable", UStruct.newUStruct().startTime(currentTimeMillis).endTime(currentTimeMillis2).putApiParams("isEnable", String.valueOf(z)).build(), PhoneNumberAuthHelperProxy.f(PhoneNumberAuthHelperProxy.this).getApiLevel()), 2);
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
});
} catch (Throwable th) {
try {
a.a(th);
} catch (Throwable th2) {
a.a(th2);
}
}
}
}