正在查看: Kickcash v16.1 应用的 e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Kickcash v16.1 应用的 e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.truecaller.android.sdk.oAuth.clients;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Build;
import android.os.Handler;
import android.os.Process;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import androidx.annotation.NonNull;
import com.microsoft.clarity.qp.h;
import com.microsoft.clarity.rp.h;
import com.truecaller.android.sdk.R;
import com.truecaller.android.sdk.TrueException;
import com.truecaller.android.sdk.TrueProfile;
import com.truecaller.android.sdk.clients.VerificationCallback;
import com.truecaller.android.sdk.oAuth.TcOAuthCallback;
import com.truecaller.android.sdk.oAuth.clients.e;
import java.util.Set;
import org.jetbrains.annotations.NotNull;
public final class e extends com.truecaller.android.sdk.oAuth.clients.a implements h.a {
@NonNull
private final h i;
@NonNull
private final com.microsoft.clarity.rp.a j;
private final boolean k;
private com.microsoft.clarity.rp.f l;
private com.microsoft.clarity.rp.h m;
private Handler n;
class a implements h.a {
final String a;
final String b;
final androidx.fragment.app.d c;
final VerificationCallback d;
final String e;
a(String str, String str2, androidx.fragment.app.d dVar, VerificationCallback verificationCallback, String str3) {
this.a = str;
this.b = str2;
this.c = dVar;
this.d = verificationCallback;
this.e = str3;
}
public void f(DialogInterface dialogInterface, int i) {
e.this.m.o();
}
public void g(DialogInterface dialogInterface, int i) {
e.this.m.a();
dialogInterface.dismiss();
}
@Override
public void a(@NotNull Set<String> set, @NotNull Set<String> set2) {
e.this.i.l(e.this.g(), this.a, this.b, e.this.w(this.c), e.this.k, this.d, this.e);
}
@Override
public boolean b(@NotNull Set<String> set) {
new AlertDialog.Builder(this.c).setMessage(R.string.permission_rationale_msg).setCancelable(false).setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
e.a.this.f(dialogInterface, i);
}
}).setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
e.a.this.g(dialogInterface, i);
}
}).show();
return true;
}
@Override
public boolean c(@NotNull Set<String> set) {
return false;
}
}
public e(@NonNull Context context, @NonNull String str, @NonNull TcOAuthCallback tcOAuthCallback, boolean z) {
super(context, str, tcOAuthCallback, 2);
this.k = z;
String string = context.getString(R.string.sdk_variant);
String string2 = context.getString(R.string.sdk_variant_version);
this.i = new f(this, (com.microsoft.clarity.up.a) com.microsoft.clarity.up.c.b("https://outline.truecaller.com/v1/", com.microsoft.clarity.up.a.class, string, string2), (com.microsoft.clarity.up.d) com.microsoft.clarity.up.c.b("https://sdk-otp-verification-noneu.truecaller.com/v2/otp/installation/", com.microsoft.clarity.up.d.class, string, string2), tcOAuthCallback, new com.microsoft.clarity.tp.a(this.a));
this.j = com.microsoft.clarity.rp.b.a(context);
}
private void t(androidx.fragment.app.d dVar, @NonNull String str, @NonNull String str2, @NonNull VerificationCallback verificationCallback, String str3) {
com.microsoft.clarity.rp.h hVar = new com.microsoft.clarity.rp.h(dVar, new a(str, str2, dVar, verificationCallback, str3));
this.m = hVar;
hVar.n();
}
private boolean x() {
return Build.VERSION.SDK_INT < 26 ? y("android.permission.CALL_PHONE") : 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(Activity activity) {
com.microsoft.clarity.pp.c.f(activity);
this.i.n();
}
public void B(@NonNull TrueProfile trueProfile, @NonNull VerificationCallback verificationCallback) {
this.i.h(trueProfile, g(), verificationCallback);
}
public void C(@NonNull TrueProfile trueProfile, @NonNull String str, @NonNull VerificationCallback verificationCallback) {
this.i.g(trueProfile, str, g(), verificationCallback);
}
@Override
public void a() {
this.j.a();
}
@Override
public void b(@NonNull com.microsoft.clarity.sp.f fVar) {
TelephonyManager telephonyManager = (TelephonyManager) this.a.getSystemService("phone");
com.microsoft.clarity.rp.f fVar2 = new com.microsoft.clarity.rp.f(fVar);
this.l = 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.l, 0);
}
@Override
public boolean f() {
return Settings.Global.getInt(this.a.getContentResolver(), "airplane_mode_on", 0) != 0;
}
@Override
public Handler getHandler() {
if (this.n == null) {
this.n = new Handler();
}
return this.n;
}
public void u(@NonNull String str, @NonNull String str2, @NonNull VerificationCallback verificationCallback, @NonNull androidx.fragment.app.d dVar) {
com.microsoft.clarity.pp.c.c(dVar);
if (!com.microsoft.clarity.pp.c.e(str2)) {
throw new RuntimeException(TrueException.TYPE_INVALID_NUMBER);
}
String c = com.truecaller.android.sdk.c.c(dVar);
if (!d() || f() || c()) {
this.i.l(g(), str, str2, w(dVar), this.k, verificationCallback, c);
} else {
t(dVar, str, str2, verificationCallback, c);
}
}
public void v() {
if (this.l != null) {
e();
this.l = null;
}
this.m = null;
Handler handler = this.n;
if (handler != null) {
handler.removeCallbacksAndMessages(null);
this.n = null;
}
}
@NonNull
public String w(androidx.fragment.app.d dVar) {
return com.microsoft.clarity.pp.c.d(dVar);
}
}