正在查看: Mabilis Cash v1.19.4 应用的 LoadingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mabilis Cash v1.19.4 应用的 LoadingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.face.csg.lv5.sdk.loading;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.util.Base64;
import android.view.View;
import android.view.animation.AnimationUtils;
import android.view.animation.LinearInterpolator;
import android.view.animation.RotateAnimation;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.annotation.Nullable;
import androidx.core.view.PointerIconCompat;
import com.face.csg.lv5.lib.jni.FaceDelta;
import com.face.csg.lv5.sdk.R;
import com.megvii.lv5.a1;
import com.megvii.lv5.a2;
import com.megvii.lv5.a3;
import com.megvii.lv5.b2;
import com.megvii.lv5.b5;
import com.megvii.lv5.c;
import com.megvii.lv5.c2;
import com.megvii.lv5.d;
import com.megvii.lv5.e1;
import com.megvii.lv5.e2;
import com.megvii.lv5.f1;
import com.megvii.lv5.g2;
import com.megvii.lv5.h3;
import com.megvii.lv5.i7;
import com.megvii.lv5.j2;
import com.megvii.lv5.m0;
import com.megvii.lv5.m4;
import com.megvii.lv5.q1;
import com.megvii.lv5.q4;
import com.megvii.lv5.t0;
import com.megvii.lv5.t1;
import com.megvii.lv5.v1;
import com.megvii.lv5.v4;
import com.megvii.lv5.w1;
import com.megvii.lv5.x1;
import com.megvii.lv5.x2;
import com.megvii.lv5.y1;
import com.megvii.lv5.y2;
import com.megvii.lv5.y4;
import com.megvii.lv5.z0;
import com.megvii.lv5.z1;
import com.sensorsdata.analytics.android.autotrack.aop.SensorsDataAutoTrackHelper;
import com.sensorsdata.analytics.android.sdk.SensorsDataInstrumented;
import com.sensorsdata.analytics.android.sdk.aop.push.PushAutoTrackHelper;
public class LoadingActivity extends Activity implements View.OnClickListener {
public static e2 f1982h = null;
public static g2 f1983i = null;
public static t1 f1984j = null;
public static boolean f1985k = false;
public ProgressBar f1986a;
public TextView f1987b;
public RelativeLayout f1988c;
public q1 f1989d;
public Context f1990e;
public String f1991f;
public AlertDialog f1992g = null;
public class a implements DialogInterface.OnClickListener {
public a() {
}
@Override
@SensorsDataInstrumented
public void onClick(DialogInterface dialogInterface, int i2) {
c.a = "liveness-sdk";
b5.a(c.a.a.a("click_cancel_quit", LoadingActivity.this.f1991f, 4));
dialogInterface.dismiss();
SensorsDataAutoTrackHelper.trackDialog(dialogInterface, i2);
}
}
public class b implements DialogInterface.OnClickListener {
public b() {
}
@Override
@SensorsDataInstrumented
public void onClick(DialogInterface dialogInterface, int i2) {
e2 e2Var;
LoadingActivity loadingActivity = LoadingActivity.this;
e2 e2Var2 = LoadingActivity.f1982h;
loadingActivity.getClass();
c.a = "liveness-sdk";
c cVar = c.a.a;
b5.a(cVar.a("click_confirm_quit", loadingActivity.f1991f, 4));
c.a = "liveness-sdk";
b5.a(cVar.a("cancel_loading:user_cancel", loadingActivity.f1991f, 4));
if (LoadingActivity.f1985k) {
e1.a.a.a(q4.y);
} else {
a1 a1Var = a1.a.a;
if (a1Var.c != null && (e2Var = a1Var.g) != null && e2Var.c != null && a1Var.f != null) {
try {
System.loadLibrary("csgfaceEx");
System.loadLibrary("finauthlivenessv5Ex");
byte[] deltaWithoutVideo = FaceDelta.getDeltaWithoutVideo(com.megvii.lv5.b.a, b5.a(), v4.a(a1Var.c, a1Var.f), "");
if (a1Var.g.t == 5) {
String encodeToString = Base64.encodeToString(deltaWithoutVideo, 0);
a1 a1Var2 = j2.b;
i7 i7Var = j2.a.a.a;
if (i7Var != null) {
i7Var.a(a1Var.f, 2, encodeToString, new z0(a1Var));
}
} else {
t0.a().a(a1Var.c, a1Var.g.c, a1Var.f, 2, deltaWithoutVideo, (m0) null);
}
} catch (Throwable unused) {
}
}
a1Var.a(PointerIconCompat.TYPE_COPY, "USER_CANCEL");
}
loadingActivity.finish();
dialogInterface.dismiss();
SensorsDataAutoTrackHelper.trackDialog(dialogInterface, i2);
}
}
public static void a(LoadingActivity loadingActivity) {
loadingActivity.runOnUiThread(new v1(loadingActivity));
}
@Override
public void onBackPressed() {
a(this, getString(R.string.face_loadingpage_dialog_tips));
}
@Override
@SensorsDataInstrumented
public void onClick(View view) {
a(this, getString(R.string.face_loadingpage_dialog_tips));
SensorsDataAutoTrackHelper.trackViewOnClick(view);
}
@Override
public void onCreate(@Nullable Bundle bundle) {
String str;
String str2;
super.onCreate(bundle);
setContentView(R.layout.activity_loading);
String str3 = "default-token";
if (f1985k) {
g2 g2Var = f1983i;
if (g2Var != null && (str2 = g2Var.b) != null) {
str3 = str2;
}
this.f1991f = str3;
m4.a(this, g2Var.f, "");
} else {
e2 e2Var = f1982h;
if (e2Var != null && (str = e2Var.a) != null) {
str3 = str;
}
this.f1991f = str3;
m4.a(this, e2Var.a(), f1982h.q);
this.f1989d = a1.a.a.h;
}
this.f1990e = getApplicationContext();
ProgressBar progressBar = (ProgressBar) findViewById(R.id.progressBar);
this.f1986a = progressBar;
progressBar.setVisibility(0);
TextView textView = (TextView) findViewById(R.id.tv_loading);
this.f1987b = textView;
textView.setText(y4.a(this).d(getString(R.string.key_liveness_home_loading_page_text)));
RelativeLayout relativeLayout = (RelativeLayout) findViewById(R.id.rl_loading_close);
this.f1988c = relativeLayout;
relativeLayout.setOnClickListener(this);
RotateAnimation rotateAnimation = (RotateAnimation) AnimationUtils.loadAnimation(this, R.anim.face_liveness_progress_circle_shape);
rotateAnimation.setDuration(1000L);
rotateAnimation.setRepeatCount(-1);
rotateAnimation.setInterpolator(new LinearInterpolator());
Drawable drawable = getResources().getDrawable(y4.a(this).b(getString(R.string.key_liveness_loading_icon)));
if (drawable != null) {
this.f1986a.setIndeterminateDrawable(drawable);
this.f1986a.startAnimation(rotateAnimation);
}
runOnUiThread(new c2(this));
if (f1985k) {
a3 a2 = m4.a(f1983i);
((x2) a2).h = d.a(this.f1990e, f1983i.e);
Context context = this.f1990e;
w1 w1Var = new w1(this);
x1 x1Var = new x1(this);
h3 y1Var = f1984j != null ? new y1(this) : null;
boolean z = f1.v;
f1.j.a.a(context, a2, w1Var, x1Var, y1Var);
} else {
y2 a3 = m4.a(f1982h);
((x2) a3).h = d.a(this.f1990e, (String) null);
if (f1982h.t == 5 && this.f1989d != null) {
z1 z1Var = new z1(this);
boolean z2 = f1.v;
f1.j.a.l = z1Var;
}
Context context2 = this.f1990e;
a2 a2Var = new a2(this);
b2 b2Var = new b2(this);
boolean z3 = f1.v;
f1.j.a.a(context2, a3, a2Var, b2Var, (h3) null);
}
c.a = "liveness-sdk";
b5.a(c.a.a.a("enter_loading_page", this.f1991f, 4));
}
@Override
public void onDestroy() {
super.onDestroy();
f1982h = null;
f1983i = null;
f1984j = null;
}
@Override
@SensorsDataInstrumented
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
PushAutoTrackHelper.onNewIntent(this, intent);
}
public final void a(Context context, String str) {
c.a = "liveness-sdk";
b5.a(c.a.a.a("click_quit_icon", this.f1991f, 4));
AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setMessage(str).setCancelable(false).setPositiveButton(getString(R.string.face_loadingpage_dialog_yes), new b()).setNegativeButton(getString(R.string.face_loadingpage_dialog_no), new a());
AlertDialog create = builder.create();
this.f1992g = create;
create.show();
}
}