我要上王者 v1.1版本的 MD5 值为:b7d3566522def961cabeb92cb17f5db9
以下内容为反编译后的 r.java 源代码,内容仅作参考
package verifysdk;
import android.content.Context;
import android.net.Uri;
import android.support.v7.widget.ActivityChooserView;
import android.text.TextUtils;
import android.util.Log;
import com.baidu.mobads.sdk.api.IAdInterListener;
import com.baidu.mobads.sdk.internal.am;
import com.facebook.stetho.dumpapp.Framer;
import com.ss.android.socialbase.downloader.constants.MonitorConstants;
import com.umeng.analytics.pro.bw;
import com.xmbz.up7723.sdk.verify.utils.ServiceImpl;
import java.io.UnsupportedEncodingException;
import java.lang.ref.WeakReference;
import java.lang.reflect.Array;
import java.lang.reflect.Type;
import java.security.MessageDigest;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import kotlin.Pair;
import kotlin.Result;
import kotlin.coroutines.CoroutineContext;
import org.json.JSONObject;
import verifysdk.t1;
public class r implements j8, v2 {
public static u5 j;
public static final byte[] f7062a = {65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, Framer.EXIT_FRAME_PREFIX, 121, 122, 48, Framer.STDOUT_FRAME_PREFIX, Framer.STDERR_FRAME_PREFIX, 51, 52, 53, 54, 55, 56, 57, 43, 47};
public static final byte[] f7063b = {65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, Framer.EXIT_FRAME_PREFIX, 121, 122, 48, Framer.STDOUT_FRAME_PREFIX, Framer.STDERR_FRAME_PREFIX, 51, 52, 53, 54, 55, 56, 57, Framer.STDIN_FRAME_PREFIX, Framer.STDIN_REQUEST_FRAME_PREFIX};
public static final Object[] c = new Object[0];
public static String d = "http://m.gateway.7723api.com/v3/";
public static final int[] e = new int[0];
public static final Object[] f = new Object[0];
public static final sa g = new sa(4, "UNDEFINED");
public static final sa h = new sa(4, "REMOVED_TASK");
public static final sa i = new sa(4, "CLOSED_EMPTY");
public static final sa k = new sa(4, "COMPLETING_ALREADY");
public static final sa l = new sa(4, "COMPLETING_WAITING_CHILDREN");
public static final sa m = new sa(4, "COMPLETING_RETRY");
public static final sa n = new sa(4, "TOO_LATE_TO_CANCEL");
public static final sa o = new sa(4, "SEALED");
static {
new t2();
}
public static String b(String str) {
char[] cArr = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
try {
byte[] bytes = str.getBytes();
MessageDigest messageDigest = MessageDigest.getInstance("MD5");
messageDigest.update(bytes);
byte[] digest = messageDigest.digest();
char[] cArr2 = new char[digest.length * 2];
int i2 = 0;
for (byte b2 : digest) {
int i3 = i2 + 1;
cArr2[i2] = cArr[(b2 >>> 4) & 15];
i2 = i3 + 1;
cArr2[i3] = cArr[b2 & bw.m];
}
return new String(cArr2);
} catch (Exception unused) {
return null;
}
}
public static final void c(Throwable th, Throwable th2) {
g6.d(th, "<this>");
g6.d(th2, "exception");
if (th != th2) {
m9.f7006a.a(th, th2);
}
}
public static final String d(Number number, Number number2) {
g6.d(number, "from");
g6.d(number2, "until");
return "Random range is empty: [" + number + ", " + number2 + ").";
}
public static void e(boolean z) {
if (!z) {
throw new IllegalArgumentException();
}
}
public static final Result.Failure f(Throwable th) {
g6.d(th, "exception");
return new Result.Failure(th);
}
public static int g(Context context, float f2) {
try {
return (int) ((f2 * context.getResources().getDisplayMetrics().density) + 0.5f);
} catch (Exception unused) {
return 0;
}
}
public static String h(byte[] bArr, byte[] bArr2) {
byte[] bArr3 = new byte[((bArr.length + 2) / 3) * 4];
int length = bArr.length - (bArr.length % 3);
int i2 = 0;
for (int i3 = 0; i3 < length; i3 += 3) {
int i4 = i2 + 1;
bArr3[i2] = bArr2[(bArr[i3] & 255) >> 2];
int i5 = i4 + 1;
int i6 = i3 + 1;
bArr3[i4] = bArr2[((bArr[i3] & 3) << 4) | ((bArr[i6] & 255) >> 4)];
int i7 = i5 + 1;
int i8 = i3 + 2;
bArr3[i5] = bArr2[((bArr[i6] & bw.m) << 2) | ((bArr[i8] & 255) >> 6)];
i2 = i7 + 1;
bArr3[i7] = bArr2[bArr[i8] & 63];
}
int length2 = bArr.length % 3;
if (length2 == 1) {
int i9 = i2 + 1;
bArr3[i2] = bArr2[(bArr[length] & 255) >> 2];
int i10 = i9 + 1;
bArr3[i9] = bArr2[(bArr[length] & 3) << 4];
bArr3[i10] = 61;
bArr3[i10 + 1] = 61;
} else if (length2 == 2) {
int i11 = i2 + 1;
bArr3[i2] = bArr2[(bArr[length] & 255) >> 2];
int i12 = i11 + 1;
int i13 = length + 1;
bArr3[i11] = bArr2[((bArr[i13] & 255) >> 4) | ((bArr[length] & 3) << 4)];
bArr3[i12] = bArr2[(bArr[i13] & bw.m) << 2];
bArr3[i12 + 1] = 61;
}
try {
return new String(bArr3, com.anythink.expressad.exoplayer.b.i);
} catch (UnsupportedEncodingException e2) {
throw new AssertionError(e2);
}
}
public static la i(Context context, ServiceImpl serviceImpl, HashMap hashMap, e7 e7Var) {
String str;
new WeakReference(e7Var);
hashMap.put("params_version_code", Integer.valueOf(h9.f6941b));
Object obj = hashMap.get("page");
HashMap hashMap2 = new HashMap();
v8.a(serviceImpl, hashMap2);
LinkedHashMap m2 = m(hashMap, hashMap2);
hashMap2.put("sign", (String) m2.remove("sign"));
String str2 = "";
if (obj != null) {
if (obj instanceof String) {
str = (String) obj;
} else {
str = ((Integer) obj).intValue() + "";
}
e7Var.f7119b = str;
}
e7Var.f7118a = v8.b(serviceImpl);
e7Var.c = n(hashMap);
e7Var.d = serviceImpl;
String str3 = e7Var.f7118a + "_" + e7Var.c + "_" + e7Var.f7119b;
l5 b2 = l5.b(context);
if (b2.f6990b == null) {
b2.a();
}
try {
str2 = b2.f6990b.getString(str3, "");
} catch (Exception unused) {
}
if (!TextUtils.isEmpty(str2)) {
Type type = e7Var.g;
String str4 = str2;
if (type != String.class) {
Object l2 = l(str2, type);
str4 = l2;
}
e7Var.b(1, str4);
if (v8.c(context, str3)) {
return null;
}
}
f4 f4Var = new f4();
f4Var.c = hashMap2;
String str5 = d + serviceImpl.getModel() + "/" + serviceImpl.getAction();
if (!m2.isEmpty()) {
StringBuilder sb = new StringBuilder();
for (String str6 : m2.keySet()) {
String valueOf = String.valueOf(m2.get(str6));
if (!TextUtils.isEmpty(valueOf)) {
sb.append("/");
sb.append(str6);
sb.append("/");
sb.append(valueOf);
}
}
str5 = str5 + sb.toString();
}
e2.d("url:" + str5);
f4Var.f7056a = str5;
f4Var.f7057b = context;
Map<String, String> map = f4Var.d;
if (map != null) {
if (str5 != null && !map.isEmpty()) {
Uri.Builder buildUpon = Uri.parse(str5).buildUpon();
for (String str7 : map.keySet()) {
buildUpon.appendQueryParameter(str7, map.get(str7));
}
str5 = buildUpon.build().toString();
}
f4Var.f7056a = str5;
}
la laVar = new la(new g4(f4Var.f7056a, f4Var.f7057b, f4Var.d, f4Var.c));
laVar.a(e7Var);
return laVar;
}
public static final Class j(f7 f7Var) {
g6.d(f7Var, "<this>");
Class<?> a2 = ((q0) f7Var).a();
if (a2.isPrimitive()) {
String name = a2.getName();
switch (name.hashCode()) {
case -1325958191:
return !name.equals("double") ? a2 : Double.class;
case 104431:
return !name.equals(IAdInterListener.AdProdType.PRODUCT_INTERSTITIAL) ? a2 : Integer.class;
case 3039496:
return !name.equals("byte") ? a2 : Byte.class;
case 3052374:
return !name.equals("char") ? a2 : Character.class;
case 3327612:
return !name.equals("long") ? a2 : Long.class;
case 3625364:
return !name.equals("void") ? a2 : Void.class;
case 64711720:
return !name.equals("boolean") ? a2 : Boolean.class;
case 97526364:
return !name.equals("float") ? a2 : Float.class;
case 109413500:
return !name.equals("short") ? a2 : Short.class;
default:
return a2;
}
}
return a2;
}
public static HashMap k(String str, String[] strArr) {
HashMap hashMap = new HashMap();
try {
JSONObject jSONObject = new JSONObject(str);
for (String str2 : strArr) {
if (jSONObject.has(str2)) {
hashMap.put(str2, jSONObject.get(str2).toString().trim());
}
}
} catch (Exception e2) {
e2.printStackTrace();
}
return hashMap;
}
public static Object l(String str, Type type) {
o4 o4Var = new o4();
try {
if (TextUtils.isEmpty(str)) {
return null;
}
return o4Var.a(str, type);
} catch (Exception e2) {
e2.printStackTrace();
return null;
}
}
public static LinkedHashMap m(HashMap hashMap, HashMap hashMap2) {
LinkedHashMap linkedHashMap = new LinkedHashMap();
for (String str : hashMap.keySet()) {
String valueOf = String.valueOf(hashMap.get(str));
if (!TextUtils.isEmpty(valueOf)) {
linkedHashMap.put(str, valueOf);
}
}
ArrayList arrayList = new ArrayList();
HashMap hashMap3 = new HashMap();
for (String str2 : hashMap2.keySet()) {
if (!"vers-code".equals(str2) && !"agent-code".equals(str2) && !"wwwid".equals(str2) && !"token".equals(str2) && !"system-version".equals(str2)) {
hashMap3.put(str2, hashMap2.get(str2));
}
}
hashMap3.putAll(hashMap);
for (String str3 : hashMap3.keySet()) {
String valueOf2 = String.valueOf(hashMap3.get(str3));
if (!TextUtils.isEmpty(valueOf2)) {
arrayList.add(str3 + "=" + valueOf2);
}
}
StringBuilder sb = new StringBuilder();
Collections.sort(arrayList);
Iterator it = arrayList.iterator();
StringBuilder sb2 = new StringBuilder();
while (it.hasNext()) {
sb2.append((String) it.next());
if (it.hasNext()) {
sb2.append("&");
}
}
sb.append(sb2.toString());
sb.append("f263Un30AYLTx3bPLYK0Vk4dGpLdINiX7Dd80c6rF59Zm88tOj5tKsost2d5AlXc");
String sb3 = sb.toString();
String str4 = "" + sb3;
if (e2.f6906a) {
Log.e("sign", str4 + "");
}
linkedHashMap.put("sign", b(sb3));
return linkedHashMap;
}
public static String n(HashMap hashMap) {
StringBuilder sb = new StringBuilder();
for (String str : hashMap.keySet()) {
String valueOf = String.valueOf(hashMap.get(str));
if (!TextUtils.isEmpty(valueOf)) {
sb.append(str);
sb.append("=");
sb.append(valueOf);
}
}
return b(sb.toString());
}
public static final void o(CoroutineContext coroutineContext, Throwable th) {
try {
t1 t1Var = (t1) coroutineContext.get(t1.a.f7108b);
if (t1Var == null) {
kotlinx.coroutines.a.a(coroutineContext, th);
} else {
t1Var.handleException(coroutineContext, th);
}
} catch (Throwable th2) {
if (th != th2) {
RuntimeException runtimeException = new RuntimeException("Exception while trying to handle coroutine exception", th2);
c(runtimeException, th);
th = runtimeException;
}
kotlinx.coroutines.a.a(coroutineContext, th);
}
}
public static final int p(int i2) {
return i2 < 0 ? i2 : i2 < 3 ? i2 + 1 : i2 < 1073741824 ? (int) ((i2 / 0.75f) + 1.0f) : ActivityChooserView.ActivityChooserViewAdapter.MAX_ACTIVITY_COUNT_UNLIMITED;
}
public static boolean q(String str) {
return t(str) || str.equals("OPTIONS") || str.equals("DELETE") || str.equals("PROPFIND") || str.equals("MKCOL") || str.equals("LOCK");
}
public static la r(Context context, ServiceImpl serviceImpl, HashMap hashMap, e7 e7Var) {
new WeakReference(e7Var);
hashMap.put("params_version_code", Integer.valueOf(h9.f6941b));
HashMap hashMap2 = new HashMap();
v8.a(serviceImpl, hashMap2);
e7Var.f7118a = v8.b(serviceImpl);
e7Var.c = n(hashMap);
e7Var.d = serviceImpl;
LinkedHashMap m2 = m(hashMap, hashMap2);
hashMap2.put("sign", (String) m2.remove("sign"));
hashMap2.put("did", h9.a());
String str = e7Var.f7118a + "_" + e7Var.c + "_" + e7Var.f7119b;
if (((fb) l5.b(context).f.get(serviceImpl)) != null && v8.c(context, str)) {
return null;
}
o9 o9Var = new o9();
o9Var.c = hashMap2;
String str2 = d + serviceImpl.getModel() + "/" + serviceImpl.getAction();
e2.d("url:" + str2);
o9Var.f7056a = str2;
o9Var.d = m2;
ArrayList arrayList = o9Var.e;
o9Var.f7057b = context;
la laVar = new la(new q9(str2, context, m2, o9Var.c, arrayList));
laVar.a(e7Var);
return laVar;
}
public static final void s(Object obj) {
if (obj instanceof t0) {
obj = f(((t0) obj).f7107a);
}
Result.m1118constructorimpl(obj);
}
public static boolean t(String str) {
return str.equals(am.f5321b) || str.equals("PUT") || str.equals("PATCH") || str.equals("PROPPATCH") || str.equals("REPORT");
}
public static String u(String str, String str2) {
String str3;
try {
Class<?> cls = Class.forName("android.os.SystemProperties");
str3 = (String) cls.getMethod(MonitorConstants.CONNECT_TYPE_GET, String.class, String.class).invoke(cls, str, str2);
} catch (Exception e2) {
e2.toString();
str3 = null;
}
return str3 == null ? "" : str3;
}
public static final long v(String str, long j2, long j3, long j4) {
String str2;
boolean z;
char c2;
int i2;
long j5;
boolean z2;
String str3;
Long valueOf;
int i3;
boolean z3;
int i4 = sb.f7096a;
try {
str2 = System.getProperty(str);
} catch (SecurityException unused) {
str2 = null;
}
if (str2 == null) {
return j2;
}
if (10 <= new d6(2, 36).c) {
z = true;
} else {
z = false;
}
if (z) {
int length = str2.length();
if (length != 0) {
char charAt = str2.charAt(0);
if (charAt < '0') {
c2 = 65535;
} else if (charAt == '0') {
c2 = 0;
} else {
c2 = 1;
}
if (c2 < 0) {
if (length != 1) {
if (charAt == '-') {
j5 = Long.MIN_VALUE;
i2 = 1;
z2 = true;
long j6 = 0;
long j7 = -256204778801521550L;
while (i2 < length) {
int digit = Character.digit((int) str2.charAt(i2), 10);
if (digit >= 0) {
if (j6 < j7) {
if (j7 == -256204778801521550L) {
str3 = str2;
i3 = length;
j7 = j5 / 10;
if (j6 < j7) {
valueOf = null;
break;
}
}
} else {
str3 = str2;
i3 = length;
}
long j8 = j6 * 10;
long j9 = digit;
if (j8 < j5 + j9) {
valueOf = null;
break;
}
j6 = j8 - j9;
i2++;
str2 = str3;
length = i3;
}
}
str3 = str2;
if (!z2) {
valueOf = Long.valueOf(j6);
} else {
valueOf = Long.valueOf(-j6);
}
if (valueOf != null) {
long longValue = valueOf.longValue();
if (j3 <= longValue && longValue <= j4) {
z3 = true;
} else {
z3 = false;
}
if (z3) {
return longValue;
}
throw new IllegalStateException(("System property '" + str + "' should be in range " + j3 + ".." + j4 + ", but is '" + longValue + '\'').toString());
}
throw new IllegalStateException(("System property '" + str + "' has unrecognized value '" + str3 + '\'').toString());
} else if (charAt == '+') {
i2 = 1;
}
}
} else {
i2 = 0;
}
j5 = com.anythink.expressad.exoplayer.b.f3050b;
z2 = false;
long j62 = 0;
long j72 = -256204778801521550L;
while (i2 < length) {
}
str3 = str2;
if (!z2) {
}
if (valueOf != null) {
}
}
str3 = str2;
valueOf = null;
if (valueOf != null) {
}
} else {
throw new IllegalArgumentException("radix 10 was not in valid range " + new d6(2, 36));
}
}
public static int w(String str, int i2, int i3, int i4, int i5) {
if ((i5 & 4) != 0) {
i3 = 1;
}
if ((i5 & 8) != 0) {
i4 = ActivityChooserView.ActivityChooserViewAdapter.MAX_ACTIVITY_COUNT_UNLIMITED;
}
return (int) v(str, i2, i3, i4);
}
public static final Object[] x(Collection collection) {
g6.d(collection, "collection");
int size = collection.size();
Object[] objArr = c;
if (size == 0) {
return objArr;
}
Iterator it = collection.iterator();
if (!it.hasNext()) {
return objArr;
}
Object[] objArr2 = new Object[size];
int i2 = 0;
while (true) {
int i3 = i2 + 1;
objArr2[i2] = it.next();
if (i3 >= objArr2.length) {
if (!it.hasNext()) {
return objArr2;
}
int i4 = ((i3 * 3) + 1) >>> 1;
if (i4 <= i3) {
i4 = 2147483645;
if (i3 >= 2147483645) {
throw new OutOfMemoryError();
}
}
objArr2 = Arrays.copyOf(objArr2, i4);
g6.c(objArr2, "copyOf(result, newSize)");
} else if (!it.hasNext()) {
Object[] copyOf = Arrays.copyOf(objArr2, i3);
g6.c(copyOf, "copyOf(result, size)");
return copyOf;
}
i2 = i3;
}
}
public static final Object[] y(Collection collection, Object[] objArr) {
Object[] objArr2;
g6.d(collection, "collection");
objArr.getClass();
int size = collection.size();
int i2 = 0;
if (size == 0) {
if (objArr.length > 0) {
objArr[0] = null;
return objArr;
}
return objArr;
}
Iterator it = collection.iterator();
if (!it.hasNext()) {
if (objArr.length > 0) {
objArr[0] = null;
return objArr;
}
return objArr;
}
if (size <= objArr.length) {
objArr2 = objArr;
} else {
Object newInstance = Array.newInstance(objArr.getClass().getComponentType(), size);
if (newInstance != null) {
objArr2 = (Object[]) newInstance;
} else {
NullPointerException nullPointerException = new NullPointerException("null cannot be cast to non-null type kotlin.Array<kotlin.Any?>");
g6.e(nullPointerException);
throw nullPointerException;
}
}
while (true) {
int i3 = i2 + 1;
objArr2[i2] = it.next();
if (i3 >= objArr2.length) {
if (!it.hasNext()) {
return objArr2;
}
int i4 = ((i3 * 3) + 1) >>> 1;
if (i4 <= i3) {
i4 = 2147483645;
if (i3 >= 2147483645) {
throw new OutOfMemoryError();
}
}
objArr2 = Arrays.copyOf(objArr2, i4);
g6.c(objArr2, "copyOf(result, newSize)");
} else if (!it.hasNext()) {
if (objArr2 == objArr) {
objArr[i3] = null;
return objArr;
}
Object[] copyOf = Arrays.copyOf(objArr2, i3);
g6.c(copyOf, "copyOf(result, size)");
return copyOf;
}
i2 = i3;
}
}
public static final yc z(m1 m1Var, CoroutineContext coroutineContext, Object obj) {
boolean z;
yc ycVar;
if (!(m1Var instanceof v1)) {
return null;
}
if (coroutineContext.get(zc.f7212b) != null) {
z = true;
} else {
z = false;
}
if (!z) {
return null;
}
v1 v1Var = (v1) m1Var;
while (!(v1Var instanceof m2) && (v1Var = v1Var.a()) != null) {
if (v1Var instanceof yc) {
ycVar = (yc) v1Var;
break;
}
}
ycVar = null;
if (ycVar == null) {
return ycVar;
}
new Pair(coroutineContext, obj);
throw null;
}
@Override
public Object a() {
return new ConcurrentHashMap();
}
}