Flash Cleaner v1.0.14版本的 MD5 值为:afbed0179616af7c25ad332b251e759c
以下内容为反编译后的 EventRequest.java 源代码,内容仅作参考
package com.applabz.applabz_track_sdk.infrastructure.repo;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.content.Context;
import android.os.Build;
import android.util.Log;
import androidx.appcompat.widget.b1;
import androidx.work.CoroutineWorker;
import androidx.work.WorkerParameters;
import bb.g;
import com.applab.flashcleaner.apk.R;
import h8.c;
import kotlin.jvm.internal.j;
import l8.h;
import m4.o;
import m4.q;
import n2.u;
import org.json.JSONObject;
import qe.d;
import re.a;
public final class EventRequest extends CoroutineWorker {
public EventRequest(Context context, WorkerParameters workerParams) {
super(context, workerParams);
j.C(context, "context");
j.C(workerParams, "workerParams");
}
@Override
public final Object doWork(d dVar) {
h hVar;
Object obj;
a aVar;
int i10;
EventRequest eventRequest;
EventRequest eventRequest2;
c d8;
String b10;
JSONObject jSONObject;
try {
if (dVar instanceof h) {
hVar = (h) dVar;
int i11 = hVar.S;
if ((i11 & Integer.MIN_VALUE) != 0) {
hVar.S = i11 - Integer.MIN_VALUE;
obj = hVar.f12770s;
aVar = a.COROUTINE_SUSPENDED;
i10 = hVar.S;
if (i10 == 0) {
if (i10 != 1) {
if (i10 != 2) {
if (i10 == 3) {
g.T(obj);
return q.a();
}
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
eventRequest = hVar.f12768q;
g.T(obj);
k8.a aVar2 = k8.a.f12185a;
d8 = k8.a.d();
b10 = eventRequest.getInputData().b("event_data");
if (b10 != null) {
jSONObject = new JSONObject(b10);
} else {
jSONObject = new JSONObject();
}
Log.d("APPLABZ_TRACK_DEV", "event track: " + jSONObject);
hVar.f12768q = null;
hVar.S = 3;
if (d8.a("https://applabztrack.com/api/v1/event", 1, jSONObject, hVar) == aVar) {
return aVar;
}
return q.a();
}
EventRequest eventRequest3 = hVar.f12769r;
EventRequest eventRequest4 = hVar.f12768q;
g.T(obj);
eventRequest2 = eventRequest3;
eventRequest = eventRequest2;
} else {
g.T(obj);
hVar.f12768q = this;
hVar.f12769r = this;
hVar.S = 1;
obj = getForegroundInfo(hVar);
if (obj == aVar) {
return aVar;
}
eventRequest = this;
eventRequest2 = eventRequest;
}
hVar.f12768q = eventRequest;
hVar.f12769r = null;
hVar.S = 2;
if (eventRequest2.setForeground((m4.j) obj, hVar) == aVar) {
return aVar;
}
k8.a aVar22 = k8.a.f12185a;
d8 = k8.a.d();
b10 = eventRequest.getInputData().b("event_data");
if (b10 != null) {
}
Log.d("APPLABZ_TRACK_DEV", "event track: " + jSONObject);
hVar.f12768q = null;
hVar.S = 3;
if (d8.a("https://applabztrack.com/api/v1/event", 1, jSONObject, hVar) == aVar) {
}
return q.a();
}
}
if (i10 == 0) {
}
hVar.f12768q = eventRequest;
hVar.f12769r = null;
hVar.S = 2;
if (eventRequest2.setForeground((m4.j) obj, hVar) == aVar) {
}
k8.a aVar222 = k8.a.f12185a;
d8 = k8.a.d();
b10 = eventRequest.getInputData().b("event_data");
if (b10 != null) {
}
Log.d("APPLABZ_TRACK_DEV", "event track: " + jSONObject);
hVar.f12768q = null;
hVar.S = 3;
if (d8.a("https://applabztrack.com/api/v1/event", 1, jSONObject, hVar) == aVar) {
}
return q.a();
} catch (Throwable unused) {
return new o();
}
hVar = new h(this, dVar);
obj = hVar.f12770s;
aVar = a.COROUTINE_SUSPENDED;
i10 = hVar.S;
}
@Override
public final Object getForegroundInfo(d dVar) {
int i10;
int i11 = Build.VERSION.SDK_INT;
if (i11 > 26) {
String string = getApplicationContext().getString(R.string.sdk_notifications_channel_name);
j.B(string, "applicationContext.getSt…tifications_channel_name)");
String string2 = getApplicationContext().getString(R.string.sdk_notification_channnel_desc);
j.B(string2, "applicationContext.getSt…tification_channnel_desc)");
b1.m();
NotificationChannel w10 = dev.applabz.ad.a.w(string);
w10.setDescription(string2);
Object systemService = getApplicationContext().getSystemService("notification");
j.A(systemService, "null cannot be cast to non-null type android.app.NotificationManager");
((NotificationManager) systemService).createNotificationChannel(w10);
}
u uVar = new u(getApplicationContext(), "applabz.events");
uVar.f13517x.icon = R.drawable.ic_service_notification;
uVar.c("Sync in progress ...");
Notification a10 = uVar.a();
j.B(a10, "Builder(applicationConte…..\")\n .build()");
if (i11 > 29) {
i10 = 1;
} else {
i10 = 0;
}
return new m4.j(20009, i10, a10);
}
}