正在查看: Kredinesia v8.3.1 应用的 IziLivenessActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Kredinesia v8.3.1 应用的 IziLivenessActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.onecard.kredinesia.liveness;
import B6.a;
import B6.b;
import B6.d;
import E6.c;
import E6.e;
import N3.AbstractC0232a0;
import V9.j;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Base64;
import android.widget.PopupWindow;
import com.izilab.liveness.api.LivenessActivity;
import com.onecard.base.BaseApplication;
import com.onecard.entity.bus.CommonMsg;
import com.onecard.entity.izi.FaceCompareParams;
import com.onecard.entity.izi.IziCheckPhotoParam;
import com.onecard.entity.izi.IziLicenseParams;
import com.onecard.utils.AccountUtil;
import com.onecard.utils.ActivityUtil;
import com.onecard.utils.ContextUtils;
import com.onecard.utils.EmptyUtils;
import com.onecard.utils.LocaleUtil;
import com.onecard.utils.LoginUtil;
import com.onecard.utils.PicUtils;
import com.onecard.utils.PointUtil;
import com.onecard.utils.PopupWindowUtil;
import com.onecard.utils.ViewUtil;
import g.AbstractActivityC1315g;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.concurrent.atomic.AtomicBoolean;
import k2.h;
import o6.EnumC1675d;
import org.greenrobot.eventbus.ThreadMode;
public class IziLivenessActivity extends AbstractActivityC1315g {
public static final String f9611W = h.a("AeloEAo6yaUN72w=\n", "YoEJfm1fmc0=\n");
public static final String f9612X = h.a("erU5JIKbldRqsyw=\n", "L+Z8dt3c3II=\n");
public static final String f9613Y = h.a("vhABoA==\n", "3HFvyx3uj1o=\n");
public static final String f9614Z = h.a("aTRj3TDRKVN1\n", "BVUQqW+iXTY=\n");
public static final String f9615a0 = h.a("oo359Q==\n", "yuKUkND+xlE=\n");
public static final String f9616b0 = h.a("O+y2IkcB+tsj6g==\n", "V4XARxhxkrQ=\n");
public static final String f9617c0 = h.a("RHQ=\n", "LEH8TTs6mvU=\n");
public String f9618P;
public e f9619Q;
public e f9620R;
public HashMap f9621S;
public PopupWindow f9622T;
public IziCheckPhotoParam f9623U;
public final AtomicBoolean f9624V = new AtomicBoolean(false);
public String f9625b;
public String f9626c;
public String f9627d;
public static void m(IziLivenessActivity iziLivenessActivity) {
iziLivenessActivity.getClass();
PointUtil.uploadSinglePoint(h.a("yOvtR0gAhDw=\n", "iZudAj5l6kg=\n"), h.a("bISgF3bWEvZPlrA=\n", "KuXDciWjcZU=\n"), null, null, null);
PointUtil.sendEvent(h.a("wd+xGOOC3znhz5EZ74z8K/E=\n", "gqrCbIzvmVg=\n"), iziLivenessActivity);
PointUtil.sendEventToAdjustWithToken(h.a("03baKMp9AN7zZvopxnMjzOM=\n", "kAOpXKUQRr8=\n"), h.a("gEMB06qu\n", "6jtz483cHKQ=\n"), iziLivenessActivity);
}
public static Bitmap o(String str) {
BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;
options.inPreferredConfig = Bitmap.Config.ARGB_8888;
int i4 = options.outHeight;
float f10 = 500;
int round = Math.round(options.outWidth / f10);
int round2 = Math.round(i4 / f10);
if (round <= round2) {
round = round2;
}
options.inSampleSize = round;
options.inJustDecodeBounds = false;
Bitmap bitmap = null;
try {
FileInputStream fileInputStream = new FileInputStream(str);
BufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);
bitmap = BitmapFactory.decodeStream(bufferedInputStream);
fileInputStream.close();
bufferedInputStream.close();
return bitmap;
} catch (IOException e10) {
throw new RuntimeException(e10);
} catch (OutOfMemoryError unused) {
return bitmap;
}
}
@Override
public final void attachBaseContext(Context context) {
super.attachBaseContext(LocaleUtil.setDefaultLocale(context));
}
public final void n(String str, boolean z9) {
AtomicBoolean atomicBoolean = this.f9624V;
if (atomicBoolean.get()) {
return;
}
if (EmptyUtils.isNotEmpty(str)) {
IziCheckPhotoParam iziCheckPhotoParam = new IziCheckPhotoParam();
this.f9623U = iziCheckPhotoParam;
iziCheckPhotoParam.setBase64(str);
String str2 = this.f9627d;
if (str2 != null) {
if (str2.equals(f9613Y) || this.f9627d.equals(f9614Z) || this.f9627d.equals(f9615a0) || this.f9627d.equals(f9616b0) || h.a("LjpymWsF8/IdJ2ujZhLl5Ssn\n", "QlME/AVggIE=\n").equals(this.f9627d)) {
this.f9623U.bizType = h.a("UYH0QM3JD89AiuhX\n", "Je6BI6WWbL0=\n");
} else if (this.f9627d.equals(f9617c0) || h.a("1YR+Gz7yI+vmmWchPPgx9g==\n", "ue0IflCXUJg=\n").equals(this.f9627d)) {
this.f9623U.bizType = h.a("LqvYfg==\n", "QsS5EICk/3g=\n");
} else if (this.f9627d.equals(f9611W)) {
this.f9623U.bizType = h.a("g10KS/UwxgusVg1E/gjN\n", "8zVlJZBvqGQ=\n");
}
}
}
atomicBoolean.set(true);
if (!z9) {
this.f9621S.put(h.a("NvQGGviASA408hkD6oZ/CQ==\n", "UZFyU4LpC2Y=\n"), null);
}
v();
e eVar = this.f9619Q;
IziCheckPhotoParam iziCheckPhotoParam2 = this.f9623U;
d dVar = new d(this);
eVar.signatureManager.checkNeedCacheApi(iziCheckPhotoParam2, h.a("FY9/hBcZEpEXiWCdBR8llg==\n", "cuoLzW1wUfk=\n"), dVar, new c(eVar, iziCheckPhotoParam2, dVar, 28));
}
@Override
public final void onActivityResult(int i4, int i10, Intent intent) {
super.onActivityResult(i4, i10, intent);
if (i4 == 10001) {
if (!AbstractC0232a0.a) {
if (TextUtils.isEmpty(AbstractC0232a0.f2151b)) {
q();
t();
return;
} else {
q();
if (AbstractC0232a0.f2151b.equals(f9612X)) {
t();
return;
}
return;
}
}
String str = AbstractC0232a0.f2152c;
if (EmptyUtils.isEmpty(str)) {
w();
return;
}
try {
String encodeToString = Base64.encodeToString(PicUtils.compressPhoto(o(str), 1), 0);
String str2 = this.f9627d;
if (str2 == null || !str2.equals(f9611W)) {
n(encodeToString, false);
} else {
p(encodeToString);
}
} catch (IOException e10) {
e10.printStackTrace();
w();
}
}
}
@Override
public final void onBackPressed() {
super.onBackPressed();
q();
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
ContextUtils.setCurrentActivity(this);
V9.d.b().i(this);
this.f9621S = new HashMap();
((BaseApplication) getApplication()).setCurrentActivity(this);
setContentView(2131492915);
this.f9625b = getIntent().getStringExtra(h.a("DUcg/6w=\n", "fS9PkckHncQ=\n"));
this.f9626c = getIntent().getStringExtra(h.a("opcsIJbGNeQ=\n", "wf9NTvGjfIA=\n"));
this.f9627d = getIntent().getStringExtra(h.a("ZpNvlg==\n", "AOEA+x8VIRE=\n"));
this.f9618P = getIntent().getStringExtra(h.a("ux6H49r5jyk=\n", "0m3Ekb+d5l0=\n"));
this.f9619Q = new e();
this.f9620R = new e();
String stringExtra = getIntent().getStringExtra(h.a("GT+YIlN/Vg==\n", "dVb7Rz0MM5c=\n"));
if (EmptyUtils.isEmpty(stringExtra)) {
s();
} else {
AccountUtil.saveIziLicense(this, stringExtra);
x();
}
}
@Override
public final void onDestroy() {
super.onDestroy();
ViewUtil.dismissUpdate();
V9.d.b().k(this);
}
@j(threadMode = ThreadMode.MAIN)
public void onEvent(CommonMsg commonMsg) {
if (((EnumC1675d) commonMsg.type) == EnumC1675d.f13117V) {
Iterator it = this.f9621S.entrySet().iterator();
while (it.hasNext()) {
if (((String) ((Map.Entry) it.next()).getKey()).equals(h.a("dORyrbyFU6p24m20roNkrQ==\n", "E4EG5MbsEMI=\n"))) {
n(null, true);
}
}
}
}
@Override
public final void onResume() {
super.onResume();
ContextUtils.setCurrentActivity(this);
}
@Override
public final void onStart() {
super.onStart();
ContextUtils.setCurrentActivity(this);
}
public final void p(String str) {
AtomicBoolean atomicBoolean = this.f9624V;
if (atomicBoolean.get()) {
return;
}
FaceCompareParams faceCompareParams = new FaceCompareParams();
faceCompareParams.base64 = str;
faceCompareParams.changeId = this.f9626c;
faceCompareParams.bizType = f9611W;
atomicBoolean.set(true);
v();
e eVar = this.f9620R;
B6.e eVar2 = new B6.e(this);
eVar.signatureManager.checkNeedCacheApi(faceCompareParams, h.a("rKq7LITpSHKrub0=\n", "ysvYSceGJQI=\n"), eVar2, new c(eVar, faceCompareParams, eVar2, 2));
}
public final void q() {
String str = this.f9627d;
if (str == null || !(str.equals(f9615a0) || this.f9627d.equals(f9613Y) || this.f9627d.equals(f9614Z))) {
finish();
} else {
V9.d.b().e(new CommonMsg(EnumC1675d.f13147n0, 0));
ActivityUtil.closeAllWithout(getApplication(), h.a("C+ZaKsplscEw7kc9\n", "RoczRIsGxag=\n"));
}
}
public final void r() {
if (isFinishing() || isDestroyed()) {
return;
}
getWindow().getDecorView().postDelayed(new a(this, 0), 200L);
}
public final void s() {
IziLicenseParams iziLicenseParams = new IziLicenseParams();
if (!LoginUtil.isLogin(false, this)) {
iziLicenseParams.telephoneNo = h.a("OBs=\n", "DimZP8O05nU=\n") + this.f9625b;
}
if (this.f9627d.equals(f9613Y) || this.f9627d.equals(f9614Z) || this.f9627d.equals(f9615a0) || this.f9627d.equals(f9616b0) || h.a("6a6+1Vr2uKLas6fvV+Guteyz\n", "hcfIsDSTy9E=\n").equals(this.f9627d)) {
iziLicenseParams.bizType = h.a("xFkHTyAXKeTVUhtY\n", "sDZyLEhISpY=\n");
} else if (this.f9627d.equals(f9617c0) || h.a("vQLNbRYe8RCOH9RXFBTjDQ==\n", "0Wu7CHh7gmM=\n").equals(this.f9627d)) {
iziLicenseParams.bizType = h.a("/WqISQ==\n", "kQXpJ8tx1tk=\n");
} else if (this.f9627d.equals(f9611W)) {
iziLicenseParams.bizType = h.a("f1lFJSra881QUkIqIeL4\n", "DzEqS0+FnaI=\n");
} else {
iziLicenseParams.bizType = h.a("DDQqt1QPUZUdPzag\n", "eFtf1DxQMuc=\n");
}
this.f9619Q.X(iziLicenseParams, new b(this));
}
public final void t() {
PointUtil.uploadSinglePoint(h.a("wFCQhnve6J4=\n", "gSDgww27huo=\n"), h.a("t1LyrBs69PWUXw==\n", "8TORyVhbmpY=\n"), null, null, null);
PointUtil.sendEvent(h.a("81AFrn1g9U7TQDW7fG7WQw==\n", "sCV22hINsy8=\n"), this);
PointUtil.sendEventToAdjustWithToken(h.a("TSCMWcv2to5tMLxMyviVgw==\n", "DlX/LaSb8O8=\n"), h.a("JcEJMtXc\n", "SblnUeK1k2w=\n"), this);
}
public final void u() {
PointUtil.uploadSinglePoint(h.a("RIdhSlhcFC4=\n", "BfcRDy45elo=\n"), h.a("kn84TKp04ow=\n", "1B5bKewVi+A=\n"), null, null, null);
PointUtil.sendEvent(h.a("bDp/bDJXHNJMKkp5NFY=\n", "L08MGF06WrM=\n"), this);
PointUtil.sendEventToAdjustWithToken(h.a("FJ2GqMeMs9Y0jbO9wY0=\n", "V+j13Kjh9bc=\n"), h.a("ZlDK7qwn\n", "AGH52JkRjhU=\n"), this);
}
public final void v() {
if (isFinishing() || isDestroyed()) {
return;
}
PopupWindow popupWindow = this.f9622T;
if (popupWindow == null || !popupWindow.isShowing()) {
getWindow().getDecorView().postDelayed(new a(this, 1), 100L);
}
}
public final void w() {
u();
PopupWindowUtil.showCommonNoticeDialog(this, new B6.c(this));
}
public final void x() {
ArrayList<String> arrayList = new ArrayList<>();
String iziLicense = AccountUtil.getIziLicense(this);
Intent intent = new Intent(this, (Class<?>) LivenessActivity.class);
if (arrayList.size() > 0) {
intent.putStringArrayListExtra("action_list", arrayList);
}
intent.putExtra("audio", true);
intent.putExtra("percent", 0.7f);
intent.putExtra("license", iziLicense);
startActivityForResult(intent, 10001);
PointUtil.uploadSinglePoint(h.a("zbelINg7uss=\n", "jMfVZa5e1L8=\n"), h.a("NiOG0t8KDJEE\n", "cELlt4x+beM=\n"), null, null, null);
PointUtil.sendEvent(h.a("AYY+mDRx4h0hlh6YOm7Q\n", "QvNN7FscpHw=\n"), this);
PointUtil.sendEventToAdjustWithToken(h.a("YkHwigUFYUJCUdCKCxpT\n", "ITSD/mpoJyM=\n"), h.a("LgXmmf5P\n", "X2DV6pkp5JE=\n"), this);
}
}