正在查看: OVO v3.139.0 应用的 HVFaceActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OVO v3.139.0 应用的 HVFaceActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package co.hyperverge.hypersnapsdk.activities;
import android.content.Intent;
import android.location.LocationManager;
import android.os.Bundle;
import android.text.TextUtils;
import androidx.appcompat.app.AlertController;
import androidx.appcompat.app.b;
import java.util.ArrayList;
import java.util.Arrays;
import o.i.b1i;
import o.i.bv6;
import o.i.c4c;
import o.i.dfh;
import o.i.djj;
import o.i.fvi;
import o.i.j;
import o.i.krj;
import o.i.lo5;
import o.i.n7c;
import o.i.ph6;
import o.i.rh6;
import o.i.s4i;
import o.i.sh6;
import o.i.uac;
import o.i.uh6;
import o.i.vg6;
import o.i.xh6;
import o.i.xu6;
import o.i.y3h;
import o.i.zfi;
import org.json.JSONObject;
public class HVFaceActivity extends c {
public static final int L = 0;
public zfi G;
public co.hyperverge.hypersnapsdk.d.a.a.c H;
public uh6 I;
public final krj J = new krj();
public final krj K = new krj();
public static void J0(bv6 bv6Var, ph6 ph6Var) {
xu6.c().getClass();
if (xu6.f6575b.isShouldUseSensorBiometrics() && djj.e().j != null) {
djj.e().j.c();
}
bv6Var.a(ph6Var, (xh6) null);
}
@Override
public final vg6 B0() {
return this.I;
}
@Override
public final void E0() {
try {
co.hyperverge.hypersnapsdk.d.a.a.c cVar = this.H;
if (cVar != null) {
((b1i) cVar.F).j();
}
} catch (Exception e) {
fvi.d(e);
if (djj.e().g != null) {
djj.e().g.a();
}
}
}
@Override
public final boolean F0() {
return this.I.shouldShowCloseAlert();
}
@Override
public final void I0() {
xu6.c().getClass();
if (xu6.f6575b.isShouldUseSensorBiometrics()) {
String l = fvi.l("face");
if (djj.e().j != null) {
djj.e().j.g(l);
djj.e().j.e(System.currentTimeMillis(), "selfieFlowStarted");
}
JSONObject headers = this.I.getHeaders();
try {
headers.put("sensorDataZipFileName", l);
this.I.setLivenessAPIHeaders(headers);
} catch (Exception e) {
fvi.d(e);
}
}
try {
this.H = new co.hyperverge.hypersnapsdk.d.a.a.c();
b1i b1iVar = new b1i();
co.hyperverge.hypersnapsdk.d.a.a.c cVar = this.H;
b1iVar.e = cVar;
cVar.F = b1iVar;
uh6.a mode = this.I.getMode();
if (mode != null) {
b1iVar.m = mode;
}
this.I.getClientID();
uh6 uh6Var = this.I;
b1iVar.q = uh6Var;
co.hyperverge.hypersnapsdk.d.a.a.c cVar2 = this.H;
cVar2.O = uh6Var;
if (uh6Var.isShouldRecordVideo()) {
cVar2.f981b = new s4i<>(cVar2.O.getNumberOfFrames());
cVar2.O.getNumberOfFrames();
cVar2.O.getBitrateM();
cVar2.O.getFps();
}
lo5 t0 = t0();
t0.getClass();
androidx.fragment.app.a aVar = new androidx.fragment.app.a(t0);
aVar.g(c4c.texture_container, this.H, null);
aVar.k();
if (!djj.e().i() || djj.e().h == null) {
return;
}
long longValue = this.K.b().longValue();
djj.e().h.c();
djj.e().h.w0(longValue);
djj.e().h.z();
} catch (Exception e2) {
fvi.d(e2);
if (djj.e().i() && djj.e().h != null) {
djj.e().h.i0(new ph6(2, fvi.d(e2)));
}
if (djj.e().g != null) {
djj.e().g.a();
}
}
}
public final void K0() {
krj krjVar = this.J;
krjVar.c();
ArrayList arrayList = new ArrayList(Arrays.asList("android.permission.CAMERA"));
this.G.getClass();
zfi.a(this, arrayList);
this.G.getClass();
if (zfi.b(this, arrayList).a.isEmpty()) {
djj.e().a(getApplicationContext()).I(krjVar.b().longValue());
D0();
}
}
public final void L0() {
if (((LocationManager) y3h.b(this).e.getSystemService("location")).isProviderEnabled("gps")) {
y3h.b(this).a();
y3h.b(this).c();
return;
}
b.a aVar = new b.a(this);
aVar.setTitle("GPS Switched Off");
AlertController.b bVar = aVar.a;
bVar.f = "Please enable GPS to continue";
bVar.k = false;
rh6 rh6Var = new rh6(this);
bVar.g = "Open settings";
bVar.h = rh6Var;
sh6 sh6Var = new sh6(this);
bVar.i = "Cancel";
bVar.j = sh6Var;
aVar.create().show();
}
@Override
public final void onActivityResult(int i, int i2, Intent intent) {
co.hyperverge.hypersnapsdk.d.a.a.c cVar;
super.onActivityResult(i, i2, intent);
try {
this.J.c();
this.K.c();
co.hyperverge.hypersnapsdk.d.a.a.c cVar2 = this.H;
if (cVar2 != null) {
cVar2.f982o.c();
cVar2.m.c();
}
} catch (Exception e) {
fvi.d(e);
}
uh6 uh6Var = this.I;
if (uh6Var != null && uh6Var.isShouldRecordVideo() && (cVar = this.H) != null) {
cVar.J();
}
if (i == 1001) {
try {
L0();
} catch (NoClassDefFoundError unused) {
}
}
if (i2 == 2) {
K0();
return;
}
if (i2 == 3) {
try {
J0((bv6) dfh.a().a, new ph6(3, getResources().getString(uac.operation_cancelled)));
} catch (Exception e2) {
fvi.d(e2);
if (djj.e().g != null) {
djj.e().g.a();
}
}
finish();
return;
}
if (i2 != 18) {
return;
}
try {
J0((bv6) dfh.a().a, (ph6) intent.getSerializableExtra("hvError"));
} catch (Exception e3) {
fvi.d(e3);
if (djj.e().g != null) {
djj.e().g.a();
}
}
finish();
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(n7c.hv_activity_face_capture);
if (bundle != null) {
finish();
}
this.G = new zfi();
uh6 uh6Var = (uh6) getIntent().getSerializableExtra("hvFaceConfig");
this.I = uh6Var;
uh6.setFaceConfigInstance(uh6Var);
if (djj.e().i() && djj.e().h != null) {
djj.e().h.W(this.I);
}
if (!this.I.isShouldShowInstructionPage()) {
this.K.c();
xu6.c().getClass();
if (xu6.f6575b.isShouldUseLocation()) {
try {
L0();
} catch (NoClassDefFoundError unused) {
}
}
K0();
return;
}
try {
Intent intent = new Intent(this, (Class<?>) HVFaceInstructionActivity.class);
intent.putExtra("customUIStrings", this.I.getCustomUIStrings().toString());
intent.putExtra("shouldUseBackCam", this.I.getShouldUseBackCamera());
startActivityForResult(intent, 1);
} catch (Exception | NoClassDefFoundError e) {
fvi.d(e);
if (djj.e().g != null) {
djj.e().g.a();
}
J0((bv6) dfh.a().a, new ph6(31, getResources().getString(uac.instructions_error)));
finish();
}
}
@Override
public final void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
ArrayList arrayList = new ArrayList(Arrays.asList("android.permission.CAMERA"));
this.G.getClass();
ArrayList<String> arrayList2 = zfi.b(this, arrayList).a;
boolean isEmpty = arrayList2.isEmpty();
krj krjVar = this.J;
if (isEmpty) {
if (djj.e().i() && djj.e().h != null) {
djj.e().h.I(krjVar.b().longValue());
}
D0();
} else {
String join = TextUtils.join(",", arrayList2);
try {
J0((bv6) dfh.a().a, new ph6(4, j.a("Following Permissions not granted by user: ", join)));
finish();
} catch (Exception e) {
fvi.d(e);
if (djj.e().g != null) {
djj.e().g.a();
}
}
ph6 ph6Var = new ph6(4, j.a("Following Permissions not granted by user: ", join));
if (djj.e().i() && djj.e().h != null) {
djj.e().h.x0(ph6Var, krjVar.b().longValue());
}
finish();
}
super.onRequestPermissionsResult(i, strArr, iArr);
}
@Override
public final void onResume() {
super.onResume();
}
@Override
public final void onSaveInstanceState(Bundle bundle) {
super.onSaveInstanceState(bundle);
}
}