正在查看: Mint v5.7.3 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mint v5.7.3 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package kf;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Handler;
import android.os.Process;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RestrictTo;
import androidx.fragment.app.FragmentActivity;
import com.truecaller.android.sdk.ITrueCallback;
import com.truecaller.android.sdk.R;
import com.truecaller.android.sdk.TrueError;
import com.truecaller.android.sdk.TrueException;
import com.truecaller.android.sdk.TrueProfile;
import com.truecaller.android.sdk.clients.VerificationCallback;
import java.util.Set;
import kf.f;
import kf.h;
import lf.h;
@RestrictTo({RestrictTo.Scope.LIBRARY})
public final class f extends b implements h.a {
@NonNull
private final h h;
@NonNull
private final lf.a i;
private final boolean j;
@Nullable
private lf.f k;
@Nullable
private lf.h l;
@Nullable
private Handler m;
class a implements h.a {
final String a;
final String b;
final FragmentActivity c;
final VerificationCallback d;
final String e;
a(String str, String str2, FragmentActivity fragmentActivity, VerificationCallback verificationCallback, String str3) {
this.a = str;
this.b = str2;
this.c = fragmentActivity;
this.d = verificationCallback;
this.e = str3;
}
public void f(DialogInterface dialogInterface, int i) {
f.this.l.o();
}
public void g(DialogInterface dialogInterface, int i) {
f.this.l.a();
dialogInterface.dismiss();
}
@Override
public void a(Set<String> set, Set<String> set2) {
f.this.h.m(f.this.i(), this.a, this.b, f.this.w(this.c), f.this.j, this.d, this.e);
}
@Override
public boolean b(Set<String> set) {
new AlertDialog.Builder(this.c).setMessage("For verifying your number, we need Calls and Phone permission").setCancelable(false).setPositiveButton("OK", new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
f.a.this.f(dialogInterface, i);
}
}).setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
f.a.this.g(dialogInterface, i);
}
}).show();
return true;
}
@Override
public boolean c(Set<String> set) {
return false;
}
}
public f(@NonNull Context context, @NonNull String str, @NonNull ITrueCallback iTrueCallback, boolean z) {
super(context, str, iTrueCallback, 2);
this.j = z;
String string = context.getString(R.string.sdk_variant);
String string2 = context.getString(R.string.sdk_variant_version);
this.h = new i(this, (of.a) of.c.b("https://outline.truecaller.com/v1/", of.a.class, string, string2), (of.d) of.c.b("https://sdk-otp-verification-noneu.truecaller.com/v2/otp/installation/", of.d.class, string, string2), iTrueCallback, new nf.a(this.a));
this.i = lf.b.a(context);
}
private void s(FragmentActivity fragmentActivity, @NonNull String str, @NonNull String str2, @NonNull VerificationCallback verificationCallback, String str3) {
lf.h hVar = new lf.h(fragmentActivity, new a(str, str2, fragmentActivity, verificationCallback, str3));
this.l = hVar;
hVar.n();
}
@NonNull
public static f v(@NonNull Context context, @NonNull String str, @NonNull ITrueCallback iTrueCallback, @NonNull Activity activity, int i) {
f fVar = new f(context, str, iTrueCallback, true);
com.truecaller.android.sdk.d.f(activity);
iTrueCallback.onVerificationRequired(new TrueError(i));
return fVar;
}
private boolean x() {
return y("android.permission.ANSWER_PHONE_CALLS");
}
private boolean y(String str) {
return this.a.checkPermission(str, Process.myPid(), Process.myUid()) == 0;
}
private boolean z() {
return y("android.permission.READ_PHONE_STATE");
}
public void A(@Nullable Activity activity) {
com.truecaller.android.sdk.d.f(activity);
this.h.i();
}
public void B(@NonNull TrueProfile trueProfile, @NonNull VerificationCallback verificationCallback) {
this.h.d(trueProfile, i(), verificationCallback);
}
public void C(@NonNull TrueProfile trueProfile, @NonNull String str, @NonNull VerificationCallback verificationCallback) {
this.h.c(trueProfile, str, i(), verificationCallback);
}
@Override
public void a() {
this.i.a();
}
@Override
public void b(@NonNull mf.f fVar) {
TelephonyManager telephonyManager = (TelephonyManager) this.a.getSystemService("phone");
lf.f fVar2 = new lf.f(fVar);
this.k = fVar2;
telephonyManager.listen(fVar2, 32);
}
@Override
public boolean c() {
return z() && y("android.permission.READ_CALL_LOG") && x();
}
@Override
public boolean d() {
TelephonyManager telephonyManager = (TelephonyManager) this.a.getSystemService("phone");
return telephonyManager != null && telephonyManager.getSimState() == 5;
}
@Override
public void e() {
((TelephonyManager) this.a.getSystemService("phone")).listen(this.k, 0);
}
@Override
public boolean f() {
return Settings.Global.getInt(this.a.getContentResolver(), "airplane_mode_on", 0) != 0;
}
@Override
public Handler getHandler() {
if (this.m == null) {
this.m = new Handler();
}
return this.m;
}
@SuppressLint({"HardwareIds"})
public void t(@NonNull String str, @NonNull String str2, @NonNull VerificationCallback verificationCallback, @NonNull FragmentActivity fragmentActivity) {
com.truecaller.android.sdk.d.c(fragmentActivity);
if (!com.truecaller.android.sdk.d.e(str2)) {
throw new RuntimeException(TrueException.TYPE_INVALID_NUMBER);
}
String c = com.truecaller.android.sdk.f.c(fragmentActivity);
if (!d() || f() || c()) {
this.h.m(i(), str, str2, w(fragmentActivity), this.j, verificationCallback, c);
} else {
s(fragmentActivity, str, str2, verificationCallback, c);
}
}
public void u() {
if (this.k != null) {
e();
this.k = null;
}
this.l = null;
Handler handler = this.m;
if (handler != null) {
handler.removeCallbacksAndMessages(null);
this.m = null;
}
}
@NonNull
public String w(FragmentActivity fragmentActivity) {
return com.truecaller.android.sdk.d.d(fragmentActivity);
}
}