正在查看: Crafto v9.3.3 应用的 NotificationForeGroundServiceUsa.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Crafto v9.3.3 应用的 NotificationForeGroundServiceUsa.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.crafto.android.usa.utility;
import Hk.q;
import Mk.e;
import Mk.i;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Build;
import android.os.Bundle;
import android.os.IBinder;
import androidx.lifecycle.J;
import dl.H;
import dl.T;
import dl.g;
import do.a;
import java.util.Locale;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import mb.v;
import org.jetbrains.annotations.NotNull;
@Metadata
public final class NotificationForeGroundServiceUsa extends Hilt_NotificationForeGroundServiceUsa implements v {
public NotificationManager f21071e;
public PendingIntent f21072f;
public PendingIntent f21073g;
public Bundle f21074h;
public String f21075i;
public b f21076j;
@e(c = "com.crafto.android.usa.utility.NotificationForeGroundServiceUsa$onStartCommand$1", f = "NotificationForeGroundServiceUsa.kt", l = {154}, m = "invokeSuspend")
public static final class a extends i implements Function2<H, Kk.c<? super Unit>, Object> {
public int f21077a;
public a(Kk.c<? super a> cVar) {
super(2, cVar);
}
public final Kk.c<Unit> create(Object obj, Kk.c<?> cVar) {
return NotificationForeGroundServiceUsa.this.new a(cVar);
}
public final Object invoke(Object obj, Object obj2) {
return create((H) obj, (Kk.c) obj2).invokeSuspend(Unit.a);
}
public final Object invokeSuspend(Object obj) {
Bundle bundle;
NotificationForeGroundServiceUsa notificationForeGroundServiceUsa = NotificationForeGroundServiceUsa.this;
Lk.a aVar = Lk.a.COROUTINE_SUSPENDED;
int i7 = this.f21077a;
try {
if (i7 == 0) {
q.b(obj);
this.f21077a = 1;
if (T.b(2500L, this) == aVar) {
return aVar;
}
} else {
if (i7 != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
q.b(obj);
}
Bundle bundle2 = notificationForeGroundServiceUsa.f21074h;
if ((bundle2 != null ? bundle2.getString("wzrk_bp") : null) != null && (bundle = notificationForeGroundServiceUsa.f21074h) != null) {
notificationForeGroundServiceUsa.b().m(bundle);
}
} catch (Exception e8) {
do.a.a.e(e8);
}
return Unit.a;
}
}
@Override
public final void a() {
try {
do.a.a.c("stopForegroundService service.", new Object[0]);
if (Build.VERSION.SDK_INT >= 24) {
stopForeground(2);
} else {
stopForeground(true);
}
stopSelf();
} catch (Exception e8) {
do.a.a.e(e8);
}
}
@Override
public final void attachBaseContext(@NotNull Context context) {
Intrinsics.checkNotNullParameter(context, "context");
try {
do.a.a.c("attachBaseContext", new Object[0]);
super.attachBaseContext(context);
Locale locale = new Locale("hi");
Locale.setDefault(locale);
Configuration configuration = new Configuration();
configuration.locale = locale;
context.getResources().updateConfiguration(configuration, context.getResources().getDisplayMetrics());
} catch (Exception e8) {
do.a.a.e(e8);
}
}
@NotNull
public final b b() {
b bVar = this.f21076j;
if (bVar != null) {
return bVar;
}
Intrinsics.throwUninitializedPropertyAccessException("customNotificationHelper");
return null;
}
@Override
public final IBinder onBind(@NotNull Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
do.a.a.c("onBind", new Object[0]);
super.onBind(intent);
return null;
}
@Override
public final void onCreate() {
try {
do.a.a.c("onCreate", new Object[0]);
super.onCreate();
if (Build.VERSION.SDK_INT >= 29) {
startForeground(1101, b().k(), 1);
} else {
startForeground(1101, b().k());
}
} catch (Exception e8) {
do.a.a.e(e8);
}
}
@Override
public final void onDestroy() {
do.a.a.c("onDestroy", new Object[0]);
super.onDestroy();
}
@Override
public final int onStartCommand(Intent intent, int i7, int i8) {
a.a aVar = do.a.a;
aVar.c("onStartCommand1", new Object[0]);
super.onStartCommand(intent, i7, i8);
try {
aVar.c("onStartCommand", new Object[0]);
if (this.f21071e == null) {
Object systemService = getApplicationContext().getSystemService("notification");
Intrinsics.checkNotNull(systemService, "null cannot be cast to non-null type android.app.NotificationManager");
this.f21071e = (NotificationManager) systemService;
}
if (intent != null) {
this.f21074h = (Bundle) intent.getParcelableExtra("remote_message");
intent.getStringExtra("url_data");
this.f21075i = intent.getStringExtra("tag");
intent.getStringExtra("click_action_bundle");
intent.getStringExtra("param_channel_id");
this.f21073g = (PendingIntent) intent.getParcelableExtra("pending_intent");
this.f21072f = (PendingIntent) intent.getParcelableExtra("pending_delete_intent");
}
b().f21290i = this.f21073g;
b().f21295n = this;
b().f21292k = this.f21072f;
b().f21296o = this.f21075i;
b().f21297p = true;
g.b(J.a(this), (CoroutineContext) null, (dl.J) null, new a(null), 3);
if (Build.VERSION.SDK_INT >= 29) {
startForeground(1101, b().k(), 1);
return 2;
}
startForeground(1101, b().k());
return 2;
} catch (Exception e8) {
e8.printStackTrace();
do.a.a.e(e8);
return 2;
}
}
}