正在查看: 公务员之家 v1.0.1 应用的 r.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 公务员之家 v1.0.1 应用的 r.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.uyumao;
import android.content.Context;
import android.os.Build;
import com.kwad.sdk.core.response.model.SdkConfigData;
import com.mobile.auth.gatewayauth.Constant;
import com.umeng.analytics.pro.bt;
import com.umeng.analytics.pro.dn;
import com.umeng.commonsdk.statistics.common.DeviceConfig;
import com.umeng.commonsdk.utils.UMUtils;
import java.io.ByteArrayOutputStream;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.TreeSet;
import java.util.UUID;
import java.util.concurrent.TimeUnit;
import org.json.JSONArray;
import org.json.JSONObject;
public final class r implements Runnable {
public final JSONObject a;
public class a implements Runnable {
public final Context a;
public final int b;
public final int c;
public final String d;
public a(Context context, int i, int i2, String str) {
this.a = context;
this.b = i;
this.c = i2;
this.d = str;
}
@Override
public void run() {
TreeSet treeSet;
ByteArrayOutputStream byteArrayOutputStream;
ByteArrayOutputStream byteArrayOutputStream2 = null;
try {
treeSet = new TreeSet();
byteArrayOutputStream = new ByteArrayOutputStream();
} catch (Throwable th) {
th = th;
}
try {
byte[] bArr = {18, -119, 31, 22, 8, 45, 8, 26, 5, 10, 98, 78, -51, 47, -125, 34, 17, 108, -112, -104, 95, 34, 120, 61, -52, -77, 8, 107, -4, 56, 82, -49, -119, -18, -111, -20, 110, -108, -32, -28, 88, -5, 69, -26, 120, -36, 5, -77, -46, 29, 24, -115, -118, -9, -108, -86, -17, 34, 115, -123, 93, 53, 118, 64, 48, -101, -83, -59, -99, 36, 69, -104, 51, -126, 8, -18, 79, -115, -16, 84, -49, 72, 66, 49, 93, -22, -127, -47, -59, -86, dn.l, -12, -100, -12, 53, 85, 37, -75, -30, 31, 44, -83, 99, -108, -92, -127, -32, 87, -61, -83, -90, 123, -98, -32, -60, 77, 113, -60, 101, 81, 57, -72, -86, 28, -74, 88, 35, -118, -22, -74, -29, -103, -86, -25, 19, -78, 62, 28, -100, -68, 1, 35, -68, 58, -100, 29, 5, -10, -95, 20, 98, 124, -40, 99, -100, 8, -126, -10, 79, -31, -42, -114, 12, 27, -102, 114, -107, -35, 82, 21, 97, -9, 39, -20, 123, -37, -68, -78, -89, dn.k, 3, 21, 21, 12, 40, dn.l, 29};
byte[] copyOfRange = Arrays.copyOfRange(bArr, 179, 187);
byte[] copyOf = Arrays.copyOf(bArr, 179);
e.a(copyOf, copyOfRange);
e.a(copyOf, byteArrayOutputStream);
JSONObject jSONObject = new JSONObject(byteArrayOutputStream.toString());
Object a = t.a(jSONObject.optString("c"), jSONObject.optString("p"), null, this.a, null);
int i = 0;
if (1 == this.b) {
Object a2 = t.a(jSONObject.optString("m"), jSONObject.optString("q"), new Class[]{t.a(jSONObject.optString("i")), Integer.TYPE}, a, new Object[]{t.a(jSONObject.optString("i"), (Class<?>[]) new Class[]{String.class}, new Object[]{jSONObject.optString("a")}), 0});
if (a2 instanceof List) {
Field a3 = t.a(jSONObject.optString(com.kuaishou.weapon.p0.t.k), jSONObject.optString("s"));
Field a4 = t.a(jSONObject.optString(bt.aG), jSONObject.optString(com.kuaishou.weapon.p0.t.h));
Iterator it = ((List) a2).iterator();
while (it.hasNext()) {
Object a5 = t.a(a4, t.a(a3, it.next()));
if (a5 != null) {
treeSet.add((String) a5);
}
}
}
} else {
Object a6 = t.a(jSONObject.optString("m"), jSONObject.optString("u"), new Class[]{Integer.TYPE}, a, new Object[]{0});
if (a6 instanceof List) {
Field a7 = t.a(jSONObject.optString("v"), jSONObject.optString(com.kuaishou.weapon.p0.t.h));
Iterator it2 = ((List) a6).iterator();
while (it2.hasNext()) {
Object a8 = t.a(a7, it2.next());
if (a8 != null) {
treeSet.add((String) a8);
}
}
}
}
if (treeSet.isEmpty()) {
n.a(byteArrayOutputStream);
return;
}
if (a == null) {
n.a(byteArrayOutputStream);
return;
}
ArrayList arrayList = new ArrayList();
JSONArray jSONArray = new JSONArray();
Iterator it3 = treeSet.iterator();
int i2 = 0;
while (it3.hasNext()) {
Object a9 = n.a(a, (String) it3.next(), 0);
if (a9 != null) {
p pVar = new p(a, a9);
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put("a", pVar.b);
jSONObject2.put("p", pVar.a);
jSONObject2.put("v", pVar.c);
jSONObject2.put(bt.aG, pVar.f);
jSONObject2.put("i", pVar.d);
jSONObject2.put("u", pVar.e);
jSONArray.put(jSONObject2);
i2++;
if (jSONArray.length() == this.c) {
arrayList.add(jSONArray);
jSONArray = new JSONArray();
}
}
}
if (jSONArray.length() > 0) {
arrayList.add(jSONArray);
}
if (arrayList.isEmpty()) {
n.a(byteArrayOutputStream);
return;
}
JSONObject jSONObject3 = new JSONObject();
jSONObject3.put(bt.af, UMUtils.getZid(this.a));
jSONObject3.put("appkey", this.d);
jSONObject3.put(bt.g, UMUtils.getUMId(this.a));
jSONObject3.put("v", "3.0");
jSONObject3.put("sdk_v", "1.1.4");
jSONObject3.put("os_v", Build.VERSION.RELEASE);
jSONObject3.put("brand", n.b());
jSONObject3.put("model", n.c());
Object uuid = UUID.randomUUID().toString();
jSONObject3.put("uuid", uuid);
jSONObject3.put("smart_id", uuid);
jSONObject3.put("src", "risk");
jSONObject3.put("imei", DeviceConfig.getImeiNew(this.a));
try {
jSONObject3.put("oaid", DeviceConfig.getOaid(this.a));
} catch (Throwable unused) {
}
try {
jSONObject3.put("idfa", DeviceConfig.getIdfa(this.a));
} catch (Throwable unused2) {
}
jSONObject3.put("android_id", DeviceConfig.getAndroidId(this.a));
jSONObject3.put("pkg", this.a.getPackageName());
jSONObject3.put("app_v", UMUtils.getAppVersionName(this.a));
jSONObject3.put("board", n.a());
try {
Locale locale = UMUtils.getLocale(this.a);
if (locale != null) {
jSONObject3.put("os_lang", locale.getLanguage());
}
} catch (Throwable unused3) {
}
jSONObject3.put("c_ts", System.currentTimeMillis());
jSONObject3.put("total", i2);
try {
jSONObject3.put("os_i", Build.VERSION.SDK_INT);
jSONObject3.put("os_t", this.a.getApplicationInfo().targetSdkVersion);
jSONObject3.put("grant", n.a(this.a) ? 1 : 0);
} catch (Throwable unused4) {
}
try {
jSONObject3.put(bt.x, "Android");
Object[] networkAccessMode = DeviceConfig.getNetworkAccessMode(this.a);
if ("Wi-Fi".equals(networkAccessMode[0])) {
jSONObject3.put(bt.Q, "wifi");
} else if ("2G/3G".equals(networkAccessMode[0])) {
jSONObject3.put(bt.Q, "2G/3G");
} else {
jSONObject3.put(bt.Q, Constant.VENDOR_UNKNOWN);
}
if (!"".equals(networkAccessMode[1])) {
jSONObject3.put("sub_access", networkAccessMode[1]);
}
jSONObject3.put(bt.s, DeviceConfig.getAppName(this.a));
} catch (Throwable unused5) {
}
try {
String[] split = r.this.a.optString(com.umeng.ccg.a.x).split(",");
JSONArray jSONArray2 = new JSONArray();
for (String str : split) {
jSONArray2.put(str);
}
jSONObject3.put(com.umeng.ccg.a.x, jSONArray2);
jSONObject3.put(com.umeng.ccg.a.u, r.this.a.optString(com.umeng.ccg.a.u));
jSONObject3.put(com.umeng.ccg.a.v, r.this.a.optString(com.umeng.ccg.a.v));
String optString = r.this.a.optString("actionName");
JSONArray jSONArray3 = new JSONArray(r.this.a.optString(com.umeng.ccg.a.w));
JSONObject jSONObject4 = new JSONObject();
jSONObject4.put(optString, jSONArray3);
jSONObject3.put(com.umeng.ccg.a.w, jSONObject4);
} catch (Throwable unused6) {
}
int size = arrayList.size();
Iterator it4 = arrayList.iterator();
while (it4.hasNext()) {
JSONArray jSONArray4 = (JSONArray) it4.next();
i++;
jSONObject3.put(com.umeng.ccg.a.y, i);
jSONObject3.put("batch_num", size);
jSONObject3.put("batch_pkg_num", jSONArray4.length());
jSONObject3.put("apl", jSONArray4);
try {
e.a(jSONObject3, "https://yumao.puata.info/cc_info", this.d);
} catch (Exception e) {
throw e;
}
}
n.a(byteArrayOutputStream);
} catch (Throwable th2) {
th = th2;
byteArrayOutputStream2 = byteArrayOutputStream;
try {
th.getMessage();
} finally {
n.a(byteArrayOutputStream2);
}
}
}
}
public r(JSONObject jSONObject) {
this.a = jSONObject;
}
@Override
public void run() {
if (this.a == null) {
return;
}
try {
Context context = e.a;
String appkey = UMUtils.getAppkey(context);
int max = Math.max(this.a.optInt(com.umeng.ccg.a.y, SdkConfigData.DEFAULT_CAN_USE_THRESHOLD), 100);
int optInt = this.a.optInt(com.umeng.ccg.a.z, 1);
if (optInt == 1 || optInt == 2) {
s.a(new a(context, optInt, max, appkey), 0L, TimeUnit.SECONDS);
}
} catch (Throwable unused) {
}
}
}