正在查看: Aplazo v2.4.68 应用的 SendAuthenticationFlowDataToServerService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Aplazo v2.4.68 应用的 SendAuthenticationFlowDataToServerService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.veriff.sdk.service;
import F1.b;
import android.app.Notification;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.IBinder;
import android.os.PowerManager;
import android.text.TextUtils;
import com.google.firebase.messaging.p;
import com.veriff.sdk.internal.C0694ib;
import com.veriff.sdk.internal.C0894nn;
import com.veriff.sdk.internal.C1202vu;
import com.veriff.sdk.internal.C1234wp;
import com.veriff.sdk.internal.C1313yu;
import com.veriff.sdk.internal.C1329z9;
import com.veriff.sdk.internal.H1;
import com.veriff.sdk.internal.InterfaceC0450bv;
import com.veriff.sdk.internal.Iu;
import com.veriff.sdk.internal.Pm;
import com.veriff.sdk.internal.Qw;
import com.veriff.sdk.internal.Vu;
public class SendAuthenticationFlowDataToServerService extends Service {
public static final String c = "SendAuthenticationFlowDataToServerService.ACTION_UPLOAD_AUTHENTICATION_FLOW_ITEM";
private static final String d = "SendAuthenticationFlowDataToServerService.EXTRA_AUTHENTICATION_FLOW_SESSION_ARGS";
private static final String e = "SendAuthenticationFlowDataToServerService.EXTRA_AUTHENTICATION_FLOW_SESSION_DATA";
private static final String f = "SendAuthenticationFlowDataToServerService.EXTRA_AUTHENTICATION_FLOW_SESSION";
private static final String g = "SendAuthenticationFlowDataToServerService.EXTRA_DOCUMENT_TYPE";
private static final String h = "SendAuthenticationFlowDataToServerService.EXTRA_FOREGROUND_SERVICE";
private static final Pm i = Pm.a(SendAuthenticationFlowDataToServerService.class);
private static final String j = "SendAuthenticationFlowDataToServerService.WAKELOCK_KEY";
private static volatile PowerManager.WakeLock k;
private Qw.a a;
Iu b;
public class a implements Qw.a {
final int a;
public a(int i) {
this.a = i;
}
@Override
public void a(C0894nn c0894nn) {
}
@Override
public void a(Vu vu) {
if (vu.equals(Vu.DONE)) {
SendAuthenticationFlowDataToServerService.this.b(this.a);
}
}
}
public void b(int i2) {
C0694ib.a(a(this));
stopSelf(i2);
}
@Override
public IBinder onBind(Intent intent) {
i.b("onBind");
throw new UnsupportedOperationException("Not implemented");
}
@Override
public void onDestroy() {
i.b("Terminating service: SendAuthenticationFlowDataToServerService");
if (this.a != null) {
this.b.g().a(this.a);
}
super.onDestroy();
}
@Override
public int onStartCommand(Intent intent, int i2, int i3) {
Pm pm = i;
pm.b("onHandleIntent() start");
if (intent != null && c.equals(intent.getAction())) {
String str = d;
if (intent.hasExtra(str)) {
String str2 = e;
if (intent.hasExtra(str2)) {
H1 h1 = (H1) intent.getParcelableExtra(f);
C1202vu c1202vu = (C1202vu) intent.getParcelableExtra(str);
C1313yu c1313yu = (C1313yu) intent.getParcelableExtra(str2);
InterfaceC0450bv.a.a().d().a(this, c1202vu, false, false).a(this);
String stringExtra = intent.getStringExtra(g);
if (intent.getBooleanExtra(h, true)) {
Notification a2 = C1234wp.a(this, c1202vu, c1313yu, h1, stringExtra, this.b.f().h(), c1202vu.q(), this.b.f().d());
if (Build.VERSION.SDK_INT >= 29) {
p.w(this, a2);
} else {
startForeground(1001, a2);
}
}
if (this.b.g().i()) {
b(i3);
} else {
this.a = a(i3);
this.b.g().b(this.a);
this.b.g().h();
}
}
}
}
pm.b("onHandleIntent() done");
return 3;
}
@Override
public void onTaskRemoved(Intent intent) {
i.b("onTaskRemoved: SendAuthenticationFlowDataToServerService");
super.onTaskRemoved(intent);
}
public static synchronized boolean a(Context context, String str, C1202vu c1202vu, C1313yu c1313yu, H1 h1, String str2, C1329z9 c1329z9) {
boolean z;
boolean a2;
synchronized (SendAuthenticationFlowDataToServerService.class) {
try {
Bundle bundle = new Bundle();
bundle.putParcelable(d, c1202vu);
bundle.putParcelable(e, c1313yu);
bundle.putParcelable(f, h1);
bundle.putString(g, str2);
if (!c1329z9.B() && Build.VERSION.SDK_INT >= 33) {
z = false;
bundle.putBoolean(h, z);
a2 = a(context, str, bundle, z);
}
z = true;
bundle.putBoolean(h, z);
a2 = a(context, str, bundle, z);
} catch (Throwable th2) {
throw th2;
}
}
return a2;
}
private static synchronized boolean a(Context context, String str, Bundle bundle, boolean z) {
synchronized (SendAuthenticationFlowDataToServerService.class) {
if (context != null) {
try {
if (!TextUtils.isEmpty(str)) {
i.b("start");
C0694ib.a(a(context), 120000L);
if (z) {
b.o(context, a(context, str, bundle));
} else {
context.startService(a(context, str, bundle));
}
return true;
}
} catch (Throwable th2) {
throw th2;
}
}
i.b("start - Unable to start the service, either context and/or the action is missing - action: " + str);
return false;
}
}
private static PowerManager.WakeLock a(Context context) {
if (k == null) {
k = ((PowerManager) context.getSystemService("power")).newWakeLock(1, j);
}
return k;
}
private static Intent a(Context context, String str, Bundle bundle) {
Intent intent = new Intent(context, (Class<?>) SendAuthenticationFlowDataToServerService.class);
if (!TextUtils.isEmpty(str)) {
intent.setAction(str);
}
if (bundle != null) {
intent.putExtras(bundle);
}
return intent;
}
private Qw.a a(int i2) {
return new a(i2);
}
}