正在查看: Kickcash v16.1 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Kickcash v16.1 应用的 f.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.microsoft.clarity.qp;
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.f;
import com.microsoft.clarity.qp.h;
import com.microsoft.clarity.rp.h;
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 org.jetbrains.annotations.NotNull;
public final class f extends b implements h.a {
@NonNull
private final h h;
@NonNull
private final com.microsoft.clarity.rp.a i;
private final boolean j;
private com.microsoft.clarity.rp.f k;
private com.microsoft.clarity.rp.h l;
private Handler m;
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) {
f.this.l.o();
}
public void g(DialogInterface dialogInterface, int i) {
f.this.l.a();
dialogInterface.dismiss();
}
@Override
public void a(@NotNull Set<String> set, @NotNull Set<String> set2) {
f.this.h.l(f.this.i(), this.a, this.b, f.this.w(this.c), f.this.j, this.d, this.e);
}
@Override
public boolean b(@NotNull 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(@NotNull 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, (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), iTrueCallback, new com.microsoft.clarity.tp.a(this.a));
this.i = com.microsoft.clarity.rp.b.a(context);
}
private void s(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.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.microsoft.clarity.pp.c.f(activity);
iTrueCallback.onVerificationRequired(new TrueError(i));
return fVar;
}
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.h.n();
}
public void B(@NonNull TrueProfile trueProfile, @NonNull VerificationCallback verificationCallback) {
this.h.h(trueProfile, i(), verificationCallback);
}
public void C(@NonNull TrueProfile trueProfile, @NonNull String str, @NonNull VerificationCallback verificationCallback) {
this.h.g(trueProfile, str, i(), verificationCallback);
}
@Override
public void a() {
this.i.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.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;
}
public void t(@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.h.l(i(), str, str2, w(dVar), this.j, verificationCallback, c);
} else {
s(dVar, 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(androidx.fragment.app.d dVar) {
return com.microsoft.clarity.pp.c.d(dVar);
}
}