正在查看: Namma Yatri v3.3.7 应用的 c.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Namma Yatri v3.3.7 应用的 c.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.truecaller.android.sdk.oAuth.clients;
import android.app.Activity;
import android.content.Context;
import android.os.Build;
import android.os.Handler;
import android.os.Process;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import androidx.fragment.app.FragmentActivity;
import com.truecaller.android.sdk.common.TrueException;
import com.truecaller.android.sdk.common.VerificationCallback;
import com.truecaller.android.sdk.common.models.TrueProfile;
import com.truecaller.android.sdk.oAuth.TcOAuthCallback;
import com.truecaller.android.sdk.oAuth.TcOAuthError;
import com.truecaller.android.sdk.oAuth.g;
import sc.AbstractC1155d;
import sc.AbstractC1158g;
import tc.b;
import uc.AbstractC1211b;
import uc.InterfaceC1210a;
import uc.f;
import vc.AbstractC1285g;
import wc.C1293a;
import xc.AbstractC1311c;
import xc.InterfaceC1309a;
import xc.InterfaceC1312d;
import yc.C1316a;
public final class c extends a implements b.a {
private final tc.b i;
private final InterfaceC1210a j;
private final boolean k;
private f l;
private Handler m;
private C1293a n;
public c(Context context, String str, TcOAuthCallback tcOAuthCallback, boolean z) {
super(context, str, tcOAuthCallback, 2);
this.k = z;
String string = context.getString(AbstractC1155d.c);
String string2 = context.getString(AbstractC1155d.d);
this.i = new tc.c(this, (InterfaceC1309a) AbstractC1311c.b("https://outline.truecaller.com/v1/", InterfaceC1309a.class, "3.1.0", string, string2), (InterfaceC1312d) AbstractC1311c.b("https://sdk-otp-verification-noneu.truecaller.com/v2/otp/client/installation/", InterfaceC1312d.class, "3.1.0", string, string2), tcOAuthCallback, new C1316a(this.a));
this.j = AbstractC1211b.a(context);
this.n = new C1293a(this.a);
}
private void t() {
C1293a c1293a = this.n;
if (c1293a != null) {
c1293a.d();
this.n.c();
this.n = null;
}
}
public static c u(Context context, String str, TcOAuthCallback tcOAuthCallback, Activity activity, TcOAuthError tcOAuthError) {
c cVar = new c(context, str, tcOAuthCallback, true);
AbstractC1158g.i(activity);
tcOAuthCallback.onVerificationRequired(tcOAuthError);
return cVar;
}
private boolean w() {
return Build.VERSION.SDK_INT < 26 ? x("android.permission.CALL_PHONE") : x("android.permission.ANSWER_PHONE_CALLS");
}
private boolean x(String str) {
return this.a.checkPermission(str, Process.myPid(), Process.myUid()) == 0;
}
private boolean y() {
return x("android.permission.READ_PHONE_STATE");
}
public void A(TrueProfile trueProfile, VerificationCallback verificationCallback) {
this.i.g(trueProfile, h(), verificationCallback);
}
public void B(TrueProfile trueProfile, String str, VerificationCallback verificationCallback) {
this.i.n(trueProfile, str, h(), verificationCallback);
}
@Override
public void a() {
this.j.a();
}
@Override
public void b(VerificationCallback verificationCallback, long j) {
C1293a c1293a = this.n;
if (c1293a != null) {
c1293a.a(verificationCallback, AbstractC1158g.d(h(), m()));
this.n.b(j);
}
}
@Override
public void c(AbstractC1285g abstractC1285g) {
TelephonyManager telephonyManager = (TelephonyManager) this.a.getSystemService("phone");
f fVar = new f(abstractC1285g);
this.l = fVar;
telephonyManager.listen(fVar, 32);
}
@Override
public boolean d() {
return Settings.Global.getInt(this.a.getContentResolver(), "airplane_mode_on", 0) == 0;
}
@Override
public boolean e() {
return y() && x("android.permission.READ_CALL_LOG") && w();
}
@Override
public int f() {
TelephonyManager telephonyManager = (TelephonyManager) this.a.getSystemService("phone");
if (telephonyManager == null) {
return 0;
}
return telephonyManager.getSimState();
}
@Override
public void g() {
((TelephonyManager) this.a.getSystemService("phone")).listen(this.l, 0);
}
@Override
public Handler getHandler() {
if (this.m == null) {
this.m = new Handler();
}
return this.m;
}
public void r(String str, String str2, VerificationCallback verificationCallback, FragmentActivity fragmentActivity) {
AbstractC1158g.c(fragmentActivity);
if (!AbstractC1158g.h(str2)) {
throw new RuntimeException(TrueException.TYPE_INVALID_NUMBER);
}
this.i.i(m(), h(), str, str2, v(fragmentActivity), this.k, verificationCallback, g.b(fragmentActivity));
}
public void s() {
t();
if (this.l != null) {
g();
this.l = null;
}
Handler handler = this.m;
if (handler != null) {
handler.removeCallbacksAndMessages(null);
this.m = null;
}
}
public String v(FragmentActivity fragmentActivity) {
return AbstractC1158g.e(fragmentActivity);
}
public void z(Activity activity) {
AbstractC1158g.i(activity);
this.i.k();
}
}