Pinjamwinwin v2.0.7版本的 MD5 值为:254981700b50ce03309ecdaac5d16485
以下内容为反编译后的 h.java 源代码,内容仅作参考
package q9;
import android.app.Application;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import b6.g0;
import b6.l8;
import b6.n7;
import com.google.android.gms.internal.mlkit_vision_face_bundled.q9;
import com.google.gson.Gson;
import com.jakewharton.timber.collection.util.HttpTip;
import com.jakewharton.timber.collection.util.TrackingData;
import com.pinjam.PApplication;
import gd.a0;
import gd.c0;
import gd.z;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.concurrent.TimeUnit;
import kotlin.Unit;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.b0;
public final class h extends lc.g implements Function2 {
public h(jc.e eVar) {
super(2, eVar);
}
@Override
public final jc.e create(Object obj, jc.e eVar) {
return new h(eVar);
}
@Override
public final Object invoke(Object obj, Object obj2) {
b0 b0Var = (b0) obj;
new h((jc.e) obj2).invokeSuspend(Unit.f9119a);
throw null;
}
@Override
public final Object invokeSuspend(Object obj) {
String str;
Application application;
n7.e(obj);
while (true) {
TrackingData trackingData = (TrackingData) i.f11807a.pollFirst();
if (trackingData != null) {
HashMap hashMap = new HashMap();
hashMap.put("eventType", trackingData.getEventName());
hashMap.put("url", trackingData.getUrl());
hashMap.put("processType", trackingData.getProcessType());
hashMap.put("eventName", trackingData.getEventName());
hashMap.put("sceneType", trackingData.getSceneType());
try {
application = l8.Y;
} catch (Exception unused) {
str = "1.0.0";
}
if (application != null) {
PackageManager packageManager = application.getPackageManager();
Application application2 = l8.Y;
if (application2 != null) {
str = packageManager.getPackageInfo(application2.getPackageName(), 16384).versionName;
sc.h.e(str, "info.versionName");
hashMap.put("app_version", str);
Application application3 = l8.Y;
if (application3 != null) {
String packageName = application3.getPackageName();
sc.h.e(packageName, "context.packageName");
hashMap.put("application_id", packageName);
Gson gson = b.f11797a;
hashMap.put("extend", b.a(trackingData.getExtend()));
HashMap hashMap2 = new HashMap();
String str2 = Build.BRAND;
sc.h.e(str2, "BRAND");
hashMap2.put("clientManufacture", str2);
String str3 = Build.MODEL;
sc.h.e(str3, "MODEL");
hashMap2.put("clientModel", str3);
hashMap2.put("clientNo", g0.g(new e(HttpTip.defaultEmpty, "device_fingerprint", null)).toString());
hashMap2.put("clientOs", "Android");
String str4 = Build.VERSION.RELEASE;
sc.h.e(str4, "RELEASE");
hashMap2.put("clientOsVersion", str4);
hashMap2.put("source", "Pinjamwinwin");
hashMap2.put("timestamp", String.valueOf(System.currentTimeMillis()));
hashMap2.put("traceId", g0.g(new e(HttpTip.defaultEmpty, "GAID_KEY", null)).toString());
hashMap2.put("outUrl", g0.g(new e(HttpTip.defaultEmpty, "GAID_KEY", null)).toString());
hashMap2.put("uid", PApplication.f5637p);
hashMap.putAll(hashMap2);
int i3 = p9.f.f11254a;
c0 c0Var = new c0();
Uri.Builder buildUpon = Uri.parse("https://api.pinjamwinwin.com/ina//record/save").buildUpon();
for (String str5 : hashMap.keySet()) {
buildUpon.appendQueryParameter(str5, (String) hashMap.get(str5));
}
String uri = buildUpon.build().toString();
sc.h.e(uri, "builder.build().toString()");
c0Var.f(uri);
c0Var.d("GET", null);
c0Var.c("Content-Type", "application/json");
gc.e eVar = p9.d.f11251a;
LinkedHashMap b10 = p9.d.b();
int i10 = 1;
if (!b10.isEmpty()) {
for (String str6 : b10.keySet()) {
String str7 = (String) b10.get(str6);
if (str7 != null) {
c0Var.c(str6, str7);
}
}
}
z zVar = new z();
TimeUnit timeUnit = TimeUnit.SECONDS;
zVar.b(60L, timeUnit);
zVar.d(60L, timeUnit);
zVar.a(60L, timeUnit);
sd.b bVar = new sd.b();
Boolean bool = y9.a.f15922a;
sc.h.e(bool, "RELEASE_HTTP_LOG");
if (bool.booleanValue()) {
i10 = 4;
}
bVar.f12623c = i10;
zVar.f7796c.add(bVar);
new a0(zVar).a(c0Var.b()).d(new q9());
trackingData.toString();
} else {
sc.h.m("context");
throw null;
}
} else {
sc.h.m("context");
throw null;
}
} else {
sc.h.m("context");
throw null;
}
}
Thread.sleep(1000L);
}
}
}