VMOS Pro v2.9.9版本的 MD5 值为:42f292af86d02c1a08555cf2d3982a52
以下内容为反编译后的 VendorSdkInfoManager.java 源代码,内容仅作参考
package com.mobile.auth.gatewayauth.manager;
import android.text.TextUtils;
import android.util.SparseArray;
import com.mobile.auth.gatewayauth.annotations.SafeProtector;
import com.mobile.auth.gatewayauth.model.VendorConfig;
import com.nirvana.tools.jsoner.JsonType;
import java.util.UUID;
public class VendorSdkInfoManager {
private String c;
private String d;
private d e;
private SystemManager f;
private com.mobile.auth.l.a g;
private SparseArray<VendorConfig> f49109a = new com.mobile.auth.gatewayauth.manager.base.a(3);
private SparseArray<VendorConfig> b = new com.mobile.auth.gatewayauth.manager.base.a(3);
private boolean h = false;
public class AnonymousClass1 extends JsonType<VendorConfig> {
public AnonymousClass1() {
}
}
static {
System.loadLibrary("auth_number_product-2.12.3.4-nolog-online-standard-channel_alijtca_plus");
}
public VendorSdkInfoManager(d dVar, SystemManager systemManager) {
this.e = dVar;
this.g = dVar.a();
this.f = systemManager;
}
private void a(String[] strArr) {
if (strArr == null) {
return;
}
try {
if (strArr.length <= 8 || !"1".equals(strArr[8])) {
return;
}
this.h = true;
} catch (Throwable th) {
try {
com.mobile.auth.gatewayauth.a.a(th);
} catch (Throwable th2) {
com.mobile.auth.gatewayauth.a.a(th2);
}
}
}
private void a(String[] strArr, SparseArray<VendorConfig> sparseArray) {
if (strArr != null) {
try {
if (strArr.length >= 6 && sparseArray != null) {
for (int i = 0; i < 3; i++) {
VendorConfig vendorConfig = new VendorConfig();
int i2 = i * 2;
vendorConfig.setVendorAccessId(strArr[i2]);
vendorConfig.setVendorAccessSecret(strArr[i2 + 1]);
if (i == 0) {
vendorConfig.setVendorKey("cm_zyhl");
sparseArray.put(1, vendorConfig);
} else if (i != 1) {
vendorConfig.setVendorKey("ct_sjl");
sparseArray.put(3, vendorConfig);
} else {
vendorConfig.setVendorKey("cu_xw");
sparseArray.put(2, vendorConfig);
}
}
}
} catch (Throwable th) {
try {
com.mobile.auth.gatewayauth.a.a(th);
} catch (Throwable th2) {
com.mobile.auth.gatewayauth.a.a(th2);
}
}
}
}
private void b(String[] strArr) {
if (strArr == null) {
return;
}
try {
if (strArr.length >= 8) {
String str = strArr[6];
this.c = str;
this.e.a(str);
}
} catch (Throwable th) {
try {
com.mobile.auth.gatewayauth.a.a(th);
} catch (Throwable th2) {
com.mobile.auth.gatewayauth.a.a(th2);
}
}
}
private void c(String[] strArr) {
if (strArr == null) {
return;
}
try {
if (strArr.length >= 10) {
this.d = strArr[9];
}
} catch (Throwable th) {
try {
com.mobile.auth.gatewayauth.a.a(th);
} catch (Throwable th2) {
com.mobile.auth.gatewayauth.a.a(th2);
}
}
}
@SafeProtector
private native void loadVendorConfigsBySceneCodeFromDisk(String str);
@SafeProtector
private native void storeVendorConfigsBySceneCodeToDisk(String str);
public VendorConfig a(int i) {
try {
VendorConfig vendorConfig = this.b.get(i);
return vendorConfig != null ? vendorConfig : this.f49109a.get(i);
} catch (Throwable th) {
try {
com.mobile.auth.gatewayauth.a.a(th);
return null;
} catch (Throwable th2) {
com.mobile.auth.gatewayauth.a.a(th2);
return null;
}
}
}
public String a(boolean z) {
if (z) {
return "SceneCode";
}
try {
String str = this.c;
return str == null ? UUID.randomUUID().toString() : str;
} catch (Throwable th) {
try {
com.mobile.auth.gatewayauth.a.a(th);
return null;
} catch (Throwable th2) {
com.mobile.auth.gatewayauth.a.a(th2);
return null;
}
}
}
public void a(String str, RequestCallback<Void, String> requestCallback, e eVar) {
if (requestCallback == null) {
return;
}
try {
requestCallback.onSuccess(null);
this.g.e("getVendorList isUploadMode = false");
} catch (Throwable th) {
try {
com.mobile.auth.gatewayauth.a.a(th);
} catch (Throwable th2) {
com.mobile.auth.gatewayauth.a.a(th2);
}
}
}
public boolean a() {
try {
return !TextUtils.isEmpty(this.c);
} catch (Throwable th) {
try {
com.mobile.auth.gatewayauth.a.a(th);
return false;
} catch (Throwable th2) {
com.mobile.auth.gatewayauth.a.a(th2);
return false;
}
}
}
public boolean a(String str, e eVar) {
try {
b();
return b();
} catch (Throwable th) {
try {
com.mobile.auth.gatewayauth.a.a(th);
return false;
} catch (Throwable th2) {
com.mobile.auth.gatewayauth.a.a(th2);
return false;
}
}
}
public boolean b() {
try {
if (this.b.size() <= 0) {
return this.f49109a.size() > 0;
}
return true;
} catch (Throwable th) {
try {
com.mobile.auth.gatewayauth.a.a(th);
return false;
} catch (Throwable th2) {
com.mobile.auth.gatewayauth.a.a(th2);
return false;
}
}
}
public String c() {
try {
return this.c;
} catch (Throwable th) {
try {
com.mobile.auth.gatewayauth.a.a(th);
return null;
} catch (Throwable th2) {
com.mobile.auth.gatewayauth.a.a(th2);
return null;
}
}
}
public boolean d() {
try {
return this.h;
} catch (Throwable th) {
try {
com.mobile.auth.gatewayauth.a.a(th);
return false;
} catch (Throwable th2) {
com.mobile.auth.gatewayauth.a.a(th2);
return false;
}
}
}
@SafeProtector
public native void setLocalVendorSdkInfo(String str);
}