正在查看: Dostt v1.0.89 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Dostt v1.0.89 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package pf;
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.t;
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.legacy.ITrueCallback;
import com.truecaller.android.sdk.legacy.TrueError;
import com.truecaller.android.sdk.legacy.i;
import jf.C1683c;
import jf.InterfaceC1682b;
import kf.AbstractC1698b;
import kf.InterfaceC1697a;
import nf.AbstractC1787c;
import nf.InterfaceC1785a;
import nf.InterfaceC1788d;
import of.C1814a;
import p000if.g;
public final class f extends d implements InterfaceC1682b.a {
private final InterfaceC1682b h;
private final InterfaceC1697a i;
private final boolean j;
private kf.f k;
private Handler l;
public f(Context context, String str, ITrueCallback iTrueCallback, boolean z) {
super(context, str, iTrueCallback, 2);
this.j = z;
String string = context.getString(p000if.d.c);
String string2 = context.getString(p000if.d.d);
this.h = new C1683c(this, (InterfaceC1785a) AbstractC1787c.b("https://outline.truecaller.com/v1/", InterfaceC1785a.class, "2.9.0", string, string2), (InterfaceC1788d) AbstractC1787c.b("https://sdk-otp-verification-noneu.truecaller.com/v3/otp/installation/", InterfaceC1788d.class, "2.9.0", string, string2), iTrueCallback, new C1814a(this.a));
this.i = AbstractC1698b.a(context);
}
public static f s(Context context, String str, ITrueCallback iTrueCallback, Activity activity, int i) {
f fVar = new f(context, str, iTrueCallback, true);
g.i(activity);
iTrueCallback.onVerificationRequired(new TrueError(i));
return fVar;
}
private boolean u() {
return Build.VERSION.SDK_INT < 26 ? v("android.permission.CALL_PHONE") : v("android.permission.ANSWER_PHONE_CALLS");
}
private boolean v(String str) {
return this.a.checkPermission(str, Process.myPid(), Process.myUid()) == 0;
}
private boolean w() {
return v("android.permission.READ_PHONE_STATE");
}
@Override
public void a() {
this.i.a();
}
@Override
public boolean c() {
return Settings.Global.getInt(this.a.getContentResolver(), "airplane_mode_on", 0) == 0;
}
@Override
public void d(lf.g gVar) {
TelephonyManager telephonyManager = (TelephonyManager) this.a.getSystemService("phone");
kf.f fVar = new kf.f(gVar);
this.k = fVar;
telephonyManager.listen(fVar, 32);
}
@Override
public boolean e() {
return w() && v("android.permission.READ_CALL_LOG") && u();
}
@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.k, 0);
}
@Override
public Handler getHandler() {
if (this.l == null) {
this.l = new Handler();
}
return this.l;
}
public void q(String str, String str2, VerificationCallback verificationCallback, t tVar) {
g.c(tVar);
if (!g.h(str2)) {
throw new RuntimeException(TrueException.TYPE_INVALID_NUMBER);
}
this.h.i(k(), j(), str, str2, t(tVar), this.j, verificationCallback, i.c(tVar));
}
public void r() {
if (this.k != null) {
g();
this.k = null;
}
Handler handler = this.l;
if (handler != null) {
handler.removeCallbacksAndMessages(null);
this.l = null;
}
}
public String t(t tVar) {
return g.e(tVar);
}
public void x(Activity activity) {
g.i(activity);
this.h.k();
}
public void y(TrueProfile trueProfile, VerificationCallback verificationCallback) {
this.h.f(trueProfile, j(), verificationCallback);
}
public void z(TrueProfile trueProfile, String str, VerificationCallback verificationCallback) {
this.h.n(trueProfile, str, j(), verificationCallback);
}
@Override
public void b(VerificationCallback verificationCallback, long j) {
}
}