正在查看: 用信花 v1.1.3 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 用信花 v1.1.3 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package f1;
import android.content.Context;
import android.os.SystemClock;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CheckBox;
import com.chuanglan.shanyan_sdk.listener.ActionListener;
import com.chuanglan.shanyan_sdk.listener.AuthPageActionListener;
import com.chuanglan.shanyan_sdk.listener.AuthenticationExecuteListener;
import com.chuanglan.shanyan_sdk.listener.GetPhoneInfoListener;
import com.chuanglan.shanyan_sdk.listener.InitListener;
import com.chuanglan.shanyan_sdk.listener.LoginActivityStatusListener;
import com.chuanglan.shanyan_sdk.listener.OnClickPrivacyListener;
import com.chuanglan.shanyan_sdk.listener.OneKeyLoginListener;
import com.chuanglan.shanyan_sdk.listener.OpenLoginAuthListener;
import com.chuanglan.shanyan_sdk.listener.PricacyOnClickListener;
import com.chuanglan.shanyan_sdk.tool.ShanYanUIConfig;
import com.chuanglan.shanyan_sdk.view.ShanYanOneKeyActivity;
import e1.i;
import h1.m;
import h1.n;
import h1.q;
import i1.h;
import i1.l;
import i1.o;
import i1.v;
import i1.x;
import java.lang.ref.WeakReference;
import java.util.Iterator;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class f {
public static volatile f f3742p;
public Context f3743a;
public OpenLoginAuthListener f3747e;
public OneKeyLoginListener f3748f;
public ActionListener f3749g;
public ExecutorService f3750h;
public ViewGroup f3751i;
public CheckBox f3755m;
public Button f3756n;
public boolean f3757o;
public volatile CopyOnWriteArrayList<InitListener> f3744b = new CopyOnWriteArrayList<>();
public volatile CopyOnWriteArrayList<GetPhoneInfoListener> f3745c = new CopyOnWriteArrayList<>();
public volatile CopyOnWriteArrayList<AuthenticationExecuteListener> f3746d = new CopyOnWriteArrayList<>();
public ShanYanUIConfig f3752j = null;
public ShanYanUIConfig f3753k = null;
public ShanYanUIConfig f3754l = null;
public class a implements Runnable {
public final Context f3758a;
public a(Context context) {
this.f3758a = context;
}
@Override
public void run() {
i.a().b(this.f3758a);
}
}
public class b implements Runnable {
public final int f3760a;
public final int f3761b;
public final String f3762c;
public final String f3763d;
public final int f3764e;
public final String f3765f;
public final int f3766g;
public final long f3767h;
public final long f3768i;
public final long f3769j;
public b(int i4, int i5, String str, String str2, int i6, String str3, int i7, long j4, long j5, long j6) {
this.f3760a = i4;
this.f3761b = i5;
this.f3762c = str;
this.f3763d = str2;
this.f3764e = i6;
this.f3765f = str3;
this.f3766g = i7;
this.f3767h = j4;
this.f3768i = j5;
this.f3769j = j6;
}
@Override
public void run() {
char c4 = 2;
char c5 = 0;
int i4 = 1;
try {
Iterator it = f.this.f3744b.iterator();
boolean z4 = false;
while (it.hasNext()) {
InitListener initListener = (InitListener) it.next();
Object[] objArr = new Object[8];
objArr[c5] = "initCallBack code";
objArr[i4] = Integer.valueOf(this.f3760a);
objArr[c4] = "processName";
objArr[3] = Integer.valueOf(this.f3761b);
objArr[4] = c1.e.f1153o;
objArr[5] = this.f3762c;
objArr[6] = "operator";
objArr[7] = this.f3763d;
o.c(c1.d.f1118e, objArr);
initListener.getInitStatus(this.f3760a, this.f3762c);
if (f.this.f3744b.size() > i4) {
z4 = true;
}
h1.i.c().f(this.f3760a, this.f3764e, this.f3762c, this.f3765f, this.f3763d, this.f3761b, 1, this.f3766g, this.f3767h, this.f3768i, this.f3769j, z4, 1);
c4 = 2;
c5 = 0;
i4 = 1;
}
f.this.f3744b.clear();
} catch (Exception e4) {
e4.printStackTrace();
o.e(c1.d.f1116c, "initCallBack Exception", e4);
}
}
}
public class c implements Runnable {
public final int f3771a;
public final int f3772b;
public final String f3773c;
public final String f3774d;
public final int f3775e;
public final String f3776f;
public final int f3777g;
public final int f3778h;
public final long f3779i;
public final long f3780j;
public final long f3781k;
public c(int i4, int i5, String str, String str2, int i6, String str3, int i7, int i8, long j4, long j5, long j6) {
this.f3771a = i4;
this.f3772b = i5;
this.f3773c = str;
this.f3774d = str2;
this.f3775e = i6;
this.f3776f = str3;
this.f3777g = i7;
this.f3778h = i8;
this.f3779i = j4;
this.f3780j = j5;
this.f3781k = j6;
}
@Override
public void run() {
char c4 = 2;
char c5 = 0;
int i4 = 1;
try {
Iterator it = f.this.f3745c.iterator();
boolean z4 = false;
while (it.hasNext()) {
GetPhoneInfoListener getPhoneInfoListener = (GetPhoneInfoListener) it.next();
Object[] objArr = new Object[10];
objArr[c5] = "getPhoneInfoCallBack code";
objArr[i4] = Integer.valueOf(this.f3771a);
objArr[c4] = "processName";
objArr[3] = Integer.valueOf(this.f3772b);
objArr[4] = c1.e.f1153o;
objArr[5] = this.f3773c;
objArr[6] = "operator";
objArr[7] = this.f3774d;
objArr[8] = "isAdd";
objArr[9] = Boolean.valueOf(z4);
o.c(c1.d.f1118e, objArr);
getPhoneInfoListener.getPhoneInfoStatus(this.f3771a, this.f3773c);
if (f.this.f3745c.size() > i4) {
z4 = true;
}
h1.i.c().f(this.f3771a, this.f3775e, this.f3773c, this.f3776f, this.f3774d, this.f3772b, this.f3777g, this.f3778h, this.f3779i, this.f3780j, this.f3781k, z4, 1);
c4 = 2;
c5 = 0;
i4 = 1;
}
f.this.f3745c.clear();
} catch (Exception e4) {
e4.printStackTrace();
o.e(c1.d.f1116c, "getPhoneInfoCallBack Exception", e4);
}
}
}
public class d implements Runnable {
public final int f3783a;
public final String f3784b;
public final String f3785c;
public d(int i4, String str, String str2) {
this.f3783a = i4;
this.f3784b = str;
this.f3785c = str2;
}
@Override
public void run() {
try {
o.c(c1.d.f1118e, "start activity code", Integer.valueOf(this.f3783a), c1.e.f1153o, this.f3784b, "operator", this.f3785c, Integer.valueOf(c1.a.B.get()));
if (f.this.f3747e != null) {
f.this.f3747e.getOpenLoginAuthStatus(this.f3783a, this.f3784b);
f.this.f3747e = null;
}
} catch (Exception e4) {
e4.printStackTrace();
o.e(c1.d.f1116c, "getOpenLoginAuthStatus Exception", e4);
}
}
}
public class e implements Runnable {
public final int f3787a;
public final String f3788b;
public final String f3789c;
public final int f3790d;
public final String f3791e;
public final int f3792f;
public final int f3793g;
public final long f3794h;
public final long f3795i;
public final long f3796j;
public e(int i4, String str, String str2, int i5, String str3, int i6, int i7, long j4, long j5, long j6) {
this.f3787a = i4;
this.f3788b = str;
this.f3789c = str2;
this.f3790d = i5;
this.f3791e = str3;
this.f3792f = i6;
this.f3793g = i7;
this.f3794h = j4;
this.f3795i = j5;
this.f3796j = j6;
}
@Override
public void run() {
try {
o.c(c1.d.f1118e, "get token code", Integer.valueOf(this.f3787a), c1.e.f1153o, this.f3788b, "operator", this.f3789c);
if (f.this.f3748f != null) {
f.this.f3748f.getOneKeyLoginStatus(this.f3787a, this.f3788b);
}
if (f.this.f3756n != null) {
f.this.f3756n.setClickable(true);
}
if (f.this.f3757o) {
f.this.S();
}
l.a();
} catch (Exception e4) {
e4.printStackTrace();
o.e(c1.d.f1116c, "getLoginTokenCallBack Exception", e4);
}
h1.i.c().f(this.f3787a, this.f3790d, this.f3788b, this.f3791e, this.f3789c, 4, this.f3792f, this.f3793g, this.f3794h, this.f3795i, this.f3796j, false, 1);
}
}
public class RunnableC0044f implements Runnable {
public final int f3798a;
public final String f3799b;
public final String f3800c;
public final int f3801d;
public final String f3802e;
public final int f3803f;
public final int f3804g;
public final long f3805h;
public final long f3806i;
public final long f3807j;
public RunnableC0044f(int i4, String str, String str2, int i5, String str3, int i6, int i7, long j4, long j5, long j6) {
this.f3798a = i4;
this.f3799b = str;
this.f3800c = str2;
this.f3801d = i5;
this.f3802e = str3;
this.f3803f = i6;
this.f3804g = i7;
this.f3805h = j4;
this.f3806i = j5;
this.f3807j = j6;
}
@Override
public void run() {
char c4 = 2;
char c5 = 0;
int i4 = 1;
try {
Iterator it = f.this.f3746d.iterator();
boolean z4 = false;
while (it.hasNext()) {
AuthenticationExecuteListener authenticationExecuteListener = (AuthenticationExecuteListener) it.next();
Object[] objArr = new Object[7];
objArr[c5] = "getAuthTokenCallBack code";
objArr[i4] = Integer.valueOf(this.f3798a);
objArr[c4] = "processName";
objArr[3] = "operator";
objArr[4] = this.f3799b;
objArr[5] = "isAdd";
objArr[6] = Boolean.valueOf(z4);
o.c(c1.d.f1118e, objArr);
authenticationExecuteListener.authenticationRespond(this.f3798a, this.f3800c);
if (f.this.f3746d.size() > i4) {
z4 = true;
}
h1.i.c().f(this.f3798a, this.f3801d, this.f3800c, this.f3802e, this.f3799b, 11, this.f3803f, this.f3804g, this.f3805h, this.f3806i, this.f3807j, z4, 1);
c4 = 2;
c5 = 0;
i4 = 1;
}
f.this.f3746d.clear();
} catch (Exception e4) {
e4.printStackTrace();
o.e(c1.d.f1116c, "getAuthTokenCallBack Exception", e4);
}
}
}
public class g implements AuthPageActionListener {
public g() {
}
@Override
public void setAuthPageActionListener(int i4, int i5, String str) {
if (f.this.f3749g != null) {
f.this.f3749g.ActionListner(i4, i5, str);
}
o.c(c1.d.f1118e, "setAuthPageActionListener type", Integer.valueOf(i4), "code", Integer.valueOf(i5), "message", str);
}
}
public static f b() {
if (f3742p == null) {
synchronized (f.class) {
if (f3742p == null) {
f3742p = new f();
}
}
}
return f3742p;
}
public void A() {
try {
o.c(c1.d.f1118e, "clearScripCache");
v.d(this.f3743a, c1.f.X, false);
v.b(this.f3743a, c1.f.J, 0L);
} catch (Exception e4) {
e4.printStackTrace();
o.e(c1.d.f1116c, "clearScripCache Exception", e4);
}
}
public void B(int i4, int i5, String str, String str2, String str3, int i6, int i7, long j4, long j5, long j6) {
i1.f.d(new e(i4, str, str3, i5, str2, i6, i7, j4, j5, j6));
}
public final void C(Context context) {
ExecutorService executorService = this.f3750h;
if (executorService == null || executorService.isShutdown()) {
this.f3750h = new ThreadPoolExecutor(8, Integer.MAX_VALUE, 120L, TimeUnit.SECONDS, new LinkedBlockingDeque());
}
this.f3750h.execute(new a(context));
}
public void D(boolean z4) {
o.c(c1.d.f1118e, "getImeiEnable", Boolean.valueOf(z4));
}
public void F() {
try {
v.b(this.f3743a, c1.f.f1190l, 0L);
v.d(this.f3743a, c1.f.V, false);
} catch (Exception e4) {
e4.printStackTrace();
o.e(c1.d.f1116c, "clearInitCache Exception=", e4);
}
}
public void G(int i4, int i5, String str, String str2, String str3, int i6, int i7, long j4, long j5, long j6) {
i1.f.d(new RunnableC0044f(i4, str3, str, i5, str2, i6, i7, j4, j5, j6));
}
public void H(boolean z4) {
o.c(c1.d.f1118e, "getMacEnable", Boolean.valueOf(z4));
}
public void J() {
try {
F();
A();
} catch (Exception e4) {
e4.printStackTrace();
o.e(c1.d.f1116c, "clearInitCache Exception=", e4);
}
}
public void K(boolean z4) {
o.c(c1.d.f1118e, "getIpEnable", Boolean.valueOf(z4));
c1.a.f1060m0 = z4;
}
public void L() {
x.a(this.f3751i);
this.f3751i = null;
}
public void M(boolean z4) {
o.c(c1.d.f1118e, "getSiEnable", Boolean.valueOf(z4));
}
public void P() {
o.c(c1.d.f1124k, "setAuthThemeConfig shanYanUIConfig=", this.f3752j, "_shanPortraitYanUIConfig", this.f3753k, "_shanLandYanUIConfig", this.f3754l);
ShanYanUIConfig shanYanUIConfig = this.f3754l;
if (shanYanUIConfig != null && this.f3753k != null) {
q.a().c(this.f3753k, this.f3754l, null);
return;
}
if (shanYanUIConfig != null) {
q.a().c(null, this.f3754l, null);
return;
}
if (this.f3753k != null) {
q.a().c(this.f3753k, null, null);
} else if (this.f3752j != null) {
q.a().c(null, null, this.f3752j);
} else {
q.a().b(new ShanYanUIConfig.Builder().build());
}
}
public void Q(boolean z4) {
o.c(c1.d.f1118e, "getSinbEnable", Boolean.valueOf(z4));
}
public void S() {
try {
o.c(c1.d.f1118e, "finishAuthActivity");
WeakReference<ShanYanOneKeyActivity> weakReference = ShanYanOneKeyActivity.f1863h0;
if (weakReference == null || weakReference.get() == null) {
return;
}
ShanYanOneKeyActivity.f1863h0.get().finish();
} catch (Exception e4) {
e4.printStackTrace();
o.e(c1.d.f1116c, "finishAuthActivity Exception", e4);
}
}
public void T(boolean z4) {
o.c(c1.d.f1118e, "getOaidEnable", Boolean.valueOf(z4));
c1.a.f1062n0 = z4;
}
public CheckBox U() {
return this.f3755m;
}
public void V(boolean z4) {
o.c(c1.d.f1118e, "setLoadingVisibility", Boolean.valueOf(z4));
try {
ViewGroup viewGroup = this.f3751i;
if (viewGroup != null) {
if (z4) {
viewGroup.setVisibility(0);
} else {
viewGroup.setVisibility(8);
}
}
} catch (Exception e4) {
e4.printStackTrace();
o.e(c1.d.f1116c, "setLoadingVisibility Exception", e4);
}
}
public void W() {
CheckBox checkBox;
try {
o.c(c1.d.f1118e, "performLoginClick");
if (this.f3756n == null || (checkBox = this.f3755m) == null || !checkBox.isChecked() || this.f3755m.getVisibility() != 0) {
return;
}
this.f3756n.performClick();
} catch (Exception e4) {
e4.printStackTrace();
}
}
public void X(boolean z4) {
o.c(c1.d.f1118e, "setCheckBoxValue", Boolean.valueOf(z4));
CheckBox checkBox = this.f3755m;
if (checkBox != null) {
checkBox.setChecked(z4);
}
}
public void Y() {
o.c(c1.d.f1118e, "unregisterOnClickPrivacyListener");
c1.a.f1083y0 = null;
c1.a.f1085z0 = null;
}
public void Z() {
o.c(c1.d.f1118e, "removeAllListener");
c1.a.f1083y0 = null;
c1.a.f1085z0 = null;
this.f3749g = null;
}
public void d(int i4, int i5, String str, String str2, String str3, int i6, int i7, int i8, long j4, long j5, long j6) {
i1.f.d(new c(i4, i6, str, str3, i5, str2, i7, i8, j4, j5, j6));
}
public void e(int i4, int i5, String str, String str2, String str3, int i6, int i7, long j4, long j5, long j6) {
i1.f.d(new b(i4, i6, str, str3, i5, str2, i7, j4, j5, j6));
}
public void f(int i4, Context context, String str, InitListener initListener) {
try {
o.c(c1.d.f1118e, "initialization");
if (i1.f.e(1, context)) {
this.f3743a = context;
c1.a.f1042d0 = i4;
this.f3744b.add(initListener);
h1.l.c().i(context, str);
h1.l.c().h(System.currentTimeMillis(), SystemClock.uptimeMillis());
o.c(c1.d.f1118e, "initialization version", "2.3.6.4", c1.e.G, str, c1.e.T, h1.f.a().d(context), c1.e.R, h1.f.a().b(context));
}
} catch (Exception e4) {
e4.printStackTrace();
o.e(c1.d.f1116c, "initialization Exception", e4);
}
}
public void g(Context context, String str, String str2) {
i1.a.b(context, str, str2);
}
public void h(ViewGroup viewGroup) {
this.f3751i = viewGroup;
}
public void i(Button button) {
this.f3756n = button;
}
public void j(CheckBox checkBox) {
this.f3755m = checkBox;
}
public void k(ActionListener actionListener) {
try {
o.c(c1.d.f1118e, "setActionListener");
this.f3749g = actionListener;
c1.a.A0 = new g();
} catch (Exception e4) {
e4.printStackTrace();
}
}
public void l(AuthenticationExecuteListener authenticationExecuteListener) {
try {
o.c(c1.d.f1118e, "startAuthentication");
if (i1.f.e(11, this.f3743a)) {
this.f3746d.add(authenticationExecuteListener);
h1.c.b().c(11, System.currentTimeMillis(), SystemClock.uptimeMillis());
C(this.f3743a);
}
} catch (Exception e4) {
e4.printStackTrace();
o.e(c1.d.f1116c, "startAuthentication Exception", e4);
}
}
public void m(GetPhoneInfoListener getPhoneInfoListener) {
try {
o.c(c1.d.f1118e, "getPhoneInfo");
if (i1.f.e(2, this.f3743a)) {
this.f3745c.add(getPhoneInfoListener);
n.b().d(2, null, System.currentTimeMillis(), SystemClock.uptimeMillis());
}
} catch (Exception e4) {
e4.printStackTrace();
o.e(c1.d.f1116c, "getPhoneInfo Exception", e4);
}
}
public void n(LoginActivityStatusListener loginActivityStatusListener) {
try {
o.c(c1.d.f1118e, "setLoginActivityStatusListener");
c1.a.B0 = loginActivityStatusListener;
} catch (Exception e4) {
e4.printStackTrace();
}
}
public void o(OnClickPrivacyListener onClickPrivacyListener) {
o.c(c1.d.f1118e, "setOnClickPrivacyListener");
c1.a.f1083y0 = onClickPrivacyListener;
}
public void p(PricacyOnClickListener pricacyOnClickListener) {
o.c(c1.d.f1118e, "setPrivacyOnClickListener");
c1.a.f1085z0 = pricacyOnClickListener;
}
public void q(ShanYanUIConfig shanYanUIConfig, ShanYanUIConfig shanYanUIConfig2, ShanYanUIConfig shanYanUIConfig3) {
this.f3752j = shanYanUIConfig3;
this.f3754l = shanYanUIConfig2;
this.f3753k = shanYanUIConfig;
if (shanYanUIConfig2 != null) {
o.c(c1.d.f1124k, "setAuthThemeConfig shanLandYanUIConfig", shanYanUIConfig2.toString());
}
}
public void r(boolean z4) {
o.c(c1.d.f1118e, "checkProcessesEnable", Boolean.valueOf(z4));
c1.a.f1056k0 = z4;
}
public void s(boolean z4, OpenLoginAuthListener openLoginAuthListener, OneKeyLoginListener oneKeyLoginListener) {
try {
this.f3757o = z4;
o.c(c1.d.f1118e, "openLoginAuth");
this.f3747e = openLoginAuthListener;
this.f3748f = oneKeyLoginListener;
if (i1.f.e(3, this.f3743a)) {
m.a().b(3, System.currentTimeMillis(), SystemClock.uptimeMillis());
}
} catch (Exception e4) {
e4.printStackTrace();
o.e(c1.d.f1116c, "openLoginAuth Exception", e4);
}
}
public boolean t(Context context) {
try {
boolean h4 = v.h(context, c1.f.X, false);
o.c(c1.d.f1118e, "preInitStatus", Boolean.valueOf(h4));
if (!h4) {
return false;
}
String g4 = v.g(context, c1.f.f1179b0, "");
o.c(c1.d.f1118e, "lastNumber", g4);
if (i1.e.g(g4)) {
return false;
}
boolean f4 = h.f(context, "scripCache_sub");
o.c(c1.d.f1118e, "operator", Boolean.valueOf(f4));
if (f4) {
return false;
}
long currentTimeMillis = System.currentTimeMillis();
long f5 = v.f(context, c1.f.J, 1L);
o.c(c1.d.f1118e, "currentTime", Long.valueOf(currentTimeMillis), Long.valueOf(f5));
if (currentTimeMillis > f5) {
return false;
}
String g5 = v.g(context, c1.f.Z, "");
int e4 = v.e(context, c1.f.G, 0);
int e5 = v.e(context, c1.f.H, 0);
if (e4 != 1 && e5 != 1 && !c1.a.f1057l.equals(g5)) {
String g6 = v.g(context, c1.f.f1177a0, "");
o.c(c1.d.f1118e, c1.e.f1158r, g6);
return i1.e.h(g6);
}
h1.o.b(context);
String d2 = h1.o.d("phonescripcache", "null");
o.c(c1.d.f1118e, "phonescripcache", d2);
return i1.e.h(d2);
} catch (Exception e6) {
e6.printStackTrace();
return false;
}
}
public String u(Context context) {
String str;
String j4;
String str2;
String str3;
String str4 = c1.a.f1059m;
String str5 = "";
try {
if (c1.a.C0.get()) {
j4 = h1.f.a().j(context);
o.c(c1.d.f1118e, "getCurrentOperatorType", j4);
} else {
String str6 = c1.a.f1076v;
o.c(c1.d.f1118e, "currentOperarotType auth", str6);
j4 = c1.a.f1059m.equals(str6) ? h1.f.a().j(context) : str6;
o.c(c1.d.f1118e, "currentOperarotType", j4);
}
} catch (Exception e4) {
e4.printStackTrace();
str = "";
str5 = "";
}
if (c1.a.f1053j.equals(j4)) {
str3 = c1.a.f1043e;
str2 = c1.a.f1045f;
} else if (c1.a.f1055k.equals(j4)) {
str3 = c1.a.f1035a;
str2 = c1.a.f1037b;
} else {
if (!c1.a.f1057l.equals(j4)) {
str2 = "";
String str7 = str2;
str4 = j4;
str = str7;
return i1.e.e(str4, str5, str);
}
str3 = c1.a.f1039c;
str2 = c1.a.f1041d;
}
str5 = str3;
String str72 = str2;
str4 = j4;
str = str72;
return i1.e.e(str4, str5, str);
}
public void w(int i4, int i5, String str, String str2, String str3, int i6, int i7, long j4, long j5, long j6) {
if (this.f3747e != null) {
i1.f.d(new d(i4, str, str3));
h1.i.c().f(i4, i5, str, str2, str3, 3, i6, i7, j4, j5, j6, false, 1);
}
}
public void x(boolean z4) {
o.c(c1.d.f1118e, "setRunningAppProcessesEnable", Boolean.valueOf(z4));
c1.a.f1058l0 = z4;
}
public boolean y() {
o.c(c1.d.f1118e, "getPreIntStatus");
return v.h(this.f3743a, c1.f.X, false);
}
}