正在查看: Oolka v2.4.42 应用的 HttpPostService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Oolka v2.4.42 应用的 HttpPostService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.uxcam.service;
import android.app.Service;
import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Message;
import com.uxcam.internals.bt;
import com.uxcam.internals.gn;
import com.uxcam.internals.ho;
import com.uxcam.internals.k1;
import com.uxcam.internals.m3;
import com.uxcam.internals.v3;
import com.uxcam.screenaction.di.ScreenActionModule;
import com.uxcam.screenaction.utils.Util;
import com.uxcam.screenshot.di.ScreenshotModule;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.ConcurrentModificationException;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.CoroutineContext;
import kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsKt;
import kotlin.coroutines.jvm.internal.f;
import kotlin.coroutines.jvm.internal.l;
import kotlin.h;
import kotlin.jvm.JvmField;
import kotlin.jvm.JvmStatic;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt__StringsJVMKt;
import kotlinx.coroutines.h0;
import kotlinx.coroutines.i;
import kotlinx.coroutines.r0;
import kotlinx.coroutines.t1;
import kotlinx.coroutines.w;
import kotlinx.coroutines.x0;
import org.jetbrains.annotations.NotNull;
@Metadata
public final class HttpPostService extends Service implements h0 {
@NotNull
public static final String a;
@JvmField
public static boolean b;
@JvmField
@NotNull
public static final List<String> c;
public static final class a {
@JvmStatic
public static void a(@NotNull File file) {
Intrinsics.checkNotNullParameter(file, "file");
try {
for (String str : HttpPostService.c) {
if (Intrinsics.areEqual(file.getAbsolutePath(), str)) {
HttpPostService.c.remove(str);
}
}
} catch (ConcurrentModificationException unused) {
a(file);
}
}
}
@f(c = "com.uxcam.service.HttpPostService$onDestroy$1", f = "HttpPostService.kt", l = {80}, m = "invokeSuspend")
public static final class b extends l implements Function2<h0, Continuation<? super Unit>, Object> {
public int a;
public b(Continuation<? super b> continuation) {
super(2, continuation);
}
@Override
@NotNull
public final Continuation<Unit> create(Object obj, @NotNull Continuation<?> continuation) {
return new b(continuation);
}
@Override
public final Object invoke(h0 h0Var, Continuation<? super Unit> continuation) {
return new b(continuation).invokeSuspend(Unit.a);
}
@Override
public final Object invokeSuspend(@NotNull Object obj) {
Object d;
d = IntrinsicsKt__IntrinsicsKt.d();
int i = this.a;
if (i == 0) {
h.b(obj);
HttpPostService.b = false;
this.a = 1;
if (r0.a(700L, this) == d) {
return d;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
h.b(obj);
}
HttpPostService.b = false;
return Unit.a;
}
}
@f(c = "com.uxcam.service.HttpPostService$onStartCommand$1", f = "HttpPostService.kt", l = {}, m = "invokeSuspend")
public static final class c extends l implements Function2<h0, Continuation<? super Unit>, Object> {
public final Message b;
public c(Message message, Continuation<? super c> continuation) {
super(2, continuation);
this.b = message;
}
@Override
@NotNull
public final Continuation<Unit> create(Object obj, @NotNull Continuation<?> continuation) {
return HttpPostService.this.new c(this.b, continuation);
}
@Override
public final Object invoke(h0 h0Var, Continuation<? super Unit> continuation) {
return ((c) create(h0Var, continuation)).invokeSuspend(Unit.a);
}
@Override
public final Object invokeSuspend(@NotNull Object obj) {
IntrinsicsKt__IntrinsicsKt.d();
h.b(obj);
HttpPostService httpPostService = HttpPostService.this;
Message message = this.b;
String str = HttpPostService.a;
httpPostService.getClass();
String string = message.getData().getString("arg_which_service");
String str2 = HttpPostService.a;
ho.a(str2).getClass();
if (string != null) {
int hashCode = string.hashCode();
if (hashCode != 666429405) {
if (hashCode != 901710240) {
if (hashCode != 1586837812) {
if (hashCode == 1592315741 && string.equals("value_stop_uxcam")) {
if (bt.K == null) {
bt.K = new bt(ScreenshotModule.s.a(), ScreenActionModule.i.a());
}
bt btVar = bt.K;
Intrinsics.checkNotNull(btVar);
m3 h = btVar.h();
Util.t();
h.e("");
}
} else if (string.equals("screen_upload")) {
try {
new k1(Util.t()).a();
} catch (Exception unused) {
ho.a(HttpPostService.a).getClass();
}
}
} else if (string.equals("stop_foreground")) {
ho.a(str2).getClass();
}
} else if (string.equals("send_offline_data")) {
new gn(Util.t()).a();
}
}
return Unit.a;
}
}
static {
Intrinsics.checkNotNullExpressionValue("HttpPostService", "HttpPostService::class.java.simpleName");
a = "HttpPostService";
List<String> synchronizedList = Collections.synchronizedList(new ArrayList());
Intrinsics.checkNotNullExpressionValue(synchronizedList, "synchronizedList(ArrayList())");
c = synchronizedList;
}
@JvmStatic
public static final boolean a(@NotNull File file) {
Intrinsics.checkNotNullParameter(file, "file");
Iterator<String> it = c.iterator();
while (it.hasNext()) {
if (Intrinsics.areEqual(file.getAbsolutePath(), it.next())) {
return false;
}
}
return true;
}
@Override
@NotNull
public final CoroutineContext getCoroutineContext() {
w b2;
b2 = t1.b(null, 1, null);
return b2.plus(x0.b());
}
@Override
public final IBinder onBind(@NotNull Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
return null;
}
@Override
public final void onDestroy() {
if (v3.M) {
b = false;
} else {
i.e(this, null, null, new b(null), 3, null);
}
}
@Override
public final int onStartCommand(Intent intent, int i, int i2) {
if (intent != null && intent.getExtras() != null) {
b = true;
Bundle extras = intent.getExtras();
Intrinsics.checkNotNull(extras);
String string = extras.getString("arg_which_service");
if (string != null && !StringsKt__StringsJVMKt.equals(string, "stop_foreground", true)) {
Message message = new Message();
message.arg1 = i2;
message.setData(intent.getExtras());
i.e(this, null, null, new c(message, null), 3, null);
}
}
return 2;
}
@Override
public final void onTaskRemoved(@NotNull Intent rootIntent) {
Intrinsics.checkNotNullParameter(rootIntent, "rootIntent");
stopSelf();
}
}