星辰影院解锁vip v1.0.4版本的 MD5 值为:3d99bbcbb0d5d5e568b9f6134424c24e
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.iqiyi.passportsdk.thirdparty.h;
import android.annotation.SuppressLint;
import android.content.Context;
import android.hardware.fingerprint.FingerprintManager;
import android.os.Build;
import android.text.TextUtils;
import androidx.core.content.ContextCompat;
import com.iqiyi.passportsdk.utils.e;
import com.iqiyi.passportsdk.utils.l;
import com.iqiyi.passportsdk.x.i;
import com.iqiyi.psdk.base.j.g;
import com.iqiyi.psdk.base.j.h;
import com.iqiyi.psdk.base.j.k;
import org.qiyi.video.module.constants.IModuleConstants;
public class b {
private static long a;
static class a implements Runnable {
a() {
}
@Override
public void run() {
if (b.g()) {
return;
}
b.i();
}
}
public static void A(boolean z) {
h.g1(z);
}
public static void B(String str) {
C(str, "0");
}
public static void C(String str, String str2) {
if (TextUtils.isEmpty(str)) {
return;
}
if (!"2".equals(str)) {
g.q(3, "");
}
String str3 = "psdk_finger_has_send_" + str;
if (com.iqiyi.psdk.base.f.a.e(str3, false, "com.iqiyi.passportsdk.SharedPreferences")) {
return;
}
com.iqiyi.psdk.base.f.a.l(str3, true, "com.iqiyi.passportsdk.SharedPreferences");
StringBuilder sb = new StringBuilder("http://msg.qy.net/v5/yhy/ffail");
sb.append("?");
sb.append("pu=");
sb.append(com.iqiyi.psdk.base.b.k());
sb.append("&os=");
sb.append(k.Q());
sb.append("&agenttype=");
sb.append(com.iqiyi.psdk.base.a.k().b());
sb.append("&appver=");
sb.append(k.Z(com.iqiyi.psdk.base.a.b()));
sb.append("&qyid=");
sb.append(k.S());
sb.append("&device_type=");
sb.append(k.z());
sb.append("&freason=");
sb.append(str);
sb.append("&usc=");
sb.append(str2);
com.iqiyi.psdk.base.a.f().e(String.valueOf(sb));
}
private static void D(boolean z) {
h.K1(z);
}
public static void E(String str, int i2, i iVar) {
com.iqiyi.passportsdk.x.h.y().i0(i2 != 2 ? com.iqiyi.passportsdk.x.h.y().P() ? 1 : 2 : 1, str, i2, iVar);
}
public static void F(String str, i iVar) {
com.iqiyi.passportsdk.x.h.y().A0(com.iqiyi.psdk.base.b.c(), str, iVar);
}
private static void a(i iVar, String str, String str2) {
if (iVar != null) {
iVar.a(str, str2);
}
}
public static boolean b() {
return g() && (k.h0(com.iqiyi.psdk.base.b.m()) ^ true);
}
public static boolean c() {
return b();
}
public static boolean d() {
if (!com.iqiyi.psdk.base.a.m()) {
e.b("FingerSDKLoginHelper-->", " user is logout, so return");
return false;
}
if (k.h0(com.iqiyi.psdk.base.b.k())) {
e.b("FingerSDKLoginHelper-->", "user uerId is empty, so return");
return false;
}
if (k.h0(com.iqiyi.psdk.base.b.m())) {
e.b("FingerSDKLoginHelper-->", "user phone is empty , so return");
return false;
}
boolean h2 = h(false);
if (!h2) {
long currentTimeMillis = System.currentTimeMillis();
if (currentTimeMillis - a > 60000) {
a = currentTimeMillis;
com.iqiyi.psdk.base.l.b.a.a(new a());
}
}
e.b("FingerSDKLoginHelper-->", "user support fido result : " + h2);
return h2;
}
public static boolean e() {
if (Build.VERSION.SDK_INT < 24) {
return false;
}
return h.a0();
}
@SuppressLint({"MissingPermission"})
public static boolean f() {
boolean isHardwareDetected;
boolean hasEnrolledFingerprints;
if (Build.VERSION.SDK_INT < 23) {
y();
B("0");
com.iqiyi.psdk.base.j.b.a("FingerSDKLoginHelper-->", "finger_login_disable because of version < 6.0");
return false;
}
Context b2 = com.iqiyi.psdk.base.a.b();
if (ContextCompat.checkSelfPermission(b2, "android.permission.USE_FINGERPRINT") != 0) {
y();
B("5");
com.iqiyi.psdk.base.j.b.a("FingerSDKLoginHelper-->", "finger_login_disable because of no permission");
return false;
}
FingerprintManager fingerprintManager = (FingerprintManager) b2.getSystemService(IModuleConstants.MODULE_NAME_FINGERPRINT);
if (fingerprintManager != null) {
try {
isHardwareDetected = fingerprintManager.isHardwareDetected();
} catch (RuntimeException e2) {
com.iqiyi.psdk.base.j.a.a(e2);
}
if (fingerprintManager != null) {
try {
hasEnrolledFingerprints = fingerprintManager.hasEnrolledFingerprints();
} catch (RuntimeException e3) {
com.iqiyi.psdk.base.j.a.a(e3);
}
if (!isHardwareDetected) {
B("3");
} else if (!hasEnrolledFingerprints) {
B("7");
}
if (!isHardwareDetected && hasEnrolledFingerprints) {
if (c.n()) {
return true;
}
B("111");
com.iqiyi.psdk.base.j.b.a("FingerSDKLoginHelper-->", "device is not secure because of don't has lock screen secret code");
y();
return false;
}
y();
com.iqiyi.psdk.base.j.b.a("FingerSDKLoginHelper-->", "finger_login_disable because of phone not has finger hardware or not has a finger");
return false;
}
hasEnrolledFingerprints = false;
if (!isHardwareDetected) {
}
if (!isHardwareDetected) {
}
y();
com.iqiyi.psdk.base.j.b.a("FingerSDKLoginHelper-->", "finger_login_disable because of phone not has finger hardware or not has a finger");
return false;
}
isHardwareDetected = false;
if (fingerprintManager != null) {
}
hasEnrolledFingerprints = false;
if (!isHardwareDetected) {
}
if (!isHardwareDetected) {
}
y();
com.iqiyi.psdk.base.j.b.a("FingerSDKLoginHelper-->", "finger_login_disable because of phone not has finger hardware or not has a finger");
return false;
}
public static boolean g() {
return h(true);
}
private static boolean h(boolean z) {
if (!com.iqiyi.psdk.base.a.f().b().e0()) {
com.iqiyi.psdk.base.j.b.a("FingerSDKLoginHelper-->", "figner login enable is false");
return false;
}
if (!com.iqiyi.psdk.base.a.f().b().L()) {
g.q(0, "");
com.iqiyi.psdk.base.j.b.a("FingerSDKLoginHelper-->", "login plugin is not installed");
return false;
}
if (z) {
if (!h.X()) {
com.iqiyi.psdk.base.j.b.a("FingerSDKLoginHelper-->", "finger login switch is off");
return false;
}
} else if (!h.A0()) {
com.iqiyi.psdk.base.j.b.a("FingerSDKLoginHelper-->", " finger pay switch is off");
return false;
}
if (!f()) {
com.iqiyi.psdk.base.j.b.a("FingerSDKLoginHelper-->", "phone not support finger");
return false;
}
boolean M0 = h.M0();
if (!z) {
com.iqiyi.psdk.base.i.b.F().Q0(M0);
e.b("FingerSDKLoginHelper-->", "support fido result : " + M0);
return M0;
}
boolean N0 = h.N0();
if (M0) {
e.b("FingerSDKLoginHelper-->", "support fido");
com.iqiyi.psdk.base.i.b.F().Q0(true);
return true;
}
com.iqiyi.psdk.base.i.b.F().Q0(false);
e.b("FingerSDKLoginHelper-->", "is support keystore : " + N0);
return N0;
}
public static void i() {
if (!f()) {
e.b("FingerSDKLoginHelper-->", "phone not support finger");
return;
}
if (!com.iqiyi.psdk.base.a.f().b().L()) {
long K2 = com.iqiyi.passportsdk.utils.g.K2();
if (K2 == 0) {
com.iqiyi.passportsdk.utils.g.Q2(System.currentTimeMillis());
} else if (System.currentTimeMillis() - K2 > 604800000) {
B("2");
}
g.q(0, "");
y();
e.b("FingerSDKLoginHelper-->", "finger_login_disable bacause of passport plugin not installed");
return;
}
if (l.Y0()) {
y();
B("4");
e.b("FingerSDKLoginHelper-->", "root device cant open finger login");
} else if (!h.X()) {
y();
B("6");
e.b("FingerSDKLoginHelper-->", "finger_login_enable switch off");
} else {
if (System.currentTimeMillis() - h.q() < h.i() * 24 * 60 * 60 * 1000) {
e.b("FingerSDKLoginHelper-->", "check time is in 7 * 24 hours, so not check again");
} else {
com.iqiyi.passportsdk.x.h.y().X();
}
}
}
public static void j(String str, String str2, i iVar) {
com.iqiyi.passportsdk.x.h.y().o(str, com.iqiyi.passportsdk.k.S(), com.iqiyi.passportsdk.x.h.y().P() ? 1 : 2, str2, iVar);
}
public static void k(String str, String str2, i iVar) {
com.iqiyi.passportsdk.x.h.y().p(com.iqiyi.passportsdk.k.S(), str2, str, iVar);
}
public static void l() {
com.iqiyi.passportsdk.x.h.y().q();
z(false);
D(false);
}
private static boolean m() {
return h.j();
}
public static void n(String str, i iVar) {
com.iqiyi.passportsdk.x.h.y().W(str, com.iqiyi.passportsdk.x.h.y().P() ? 1 : 2, iVar);
}
private static boolean o() {
return com.iqiyi.passportsdk.utils.g.O2() == 3 && c.m();
}
public static boolean p() {
return h.d0();
}
public static boolean q() {
return h.L0();
}
public static void r(i iVar) {
if (h.a0()) {
com.iqiyi.passportsdk.x.h.y().z0(iVar);
} else {
com.iqiyi.passportsdk.x.h.y().R(com.iqiyi.passportsdk.x.h.y().P() ? 1 : 2, iVar);
}
}
public static boolean s() {
if (!p()) {
e.b("FingerSDKLoginHelper-->", "user already checked finger failed, so cant login by finger");
return false;
}
if (!m()) {
e.b("FingerSDKLoginHelper-->", "current finger is not useful, cant login by finger");
return false;
}
if (!g()) {
e.b("FingerSDKLoginHelper-->", "requestFingerLogin not enable ");
return false;
}
if (TextUtils.isEmpty(com.iqiyi.passportsdk.k.S())) {
e.b("FingerSDKLoginHelper-->", "uid is null , so return");
return false;
}
if (TextUtils.isEmpty(com.iqiyi.passportsdk.k.d0())) {
e.b("FingerSDKLoginHelper-->", "lastUserPhoneNum is null , so return");
return false;
}
if (com.iqiyi.psdk.base.i.b.F().d0() || com.iqiyi.passportsdk.utils.g.O2() != 3) {
return true;
}
return e() && c.m();
}
public static void t(String str, i iVar) {
if (!com.iqiyi.passportsdk.x.h.y().P()) {
a(iVar, "", "");
} else {
com.iqiyi.passportsdk.x.h.y().V(str, 1, 2, iVar);
}
}
private static void u(String str, i iVar) {
com.iqiyi.passportsdk.u.c.a().B0(true);
com.iqiyi.passportsdk.x.h.y().T(str, iVar);
}
public static void v(String str, i iVar) {
com.iqiyi.passportsdk.x.h.y().U(str, iVar);
}
public static void w(String str, String str2, i iVar) {
com.iqiyi.passportsdk.x.h.y().Z(str, str2, iVar);
}
public static void x(String str, String str2, i iVar) {
com.iqiyi.passportsdk.u.c.a().B0(false);
boolean P = com.iqiyi.passportsdk.x.h.y().P();
if (!P && o()) {
e.b("FingerSDKLoginHelper-->", "preIqiyiFingerLogin");
u(str, iVar);
} else {
e.b("FingerSDKLoginHelper-->", "requestFingerLogin by guoMinRenZheng");
com.iqiyi.passportsdk.x.h.y().b0(str, str2, P ? 1 : 2, iVar);
}
}
private static void y() {
h.E2(false);
h.F2(false);
h.q1(0L);
}
public static void z(boolean z) {
com.iqiyi.psdk.base.f.a.l("KEY_FINGER_ALREADY_REGISTER", z, "com.iqiyi.passportsdk.SharedPreferences");
if (z) {
D(true);
}
}
}