正在查看: RummyCircle v11000.89 应用的 e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: RummyCircle v11000.89 应用的 e.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.truecaller.android.sdk.clients;
import android.annotation.SuppressLint;
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 android.text.TextUtils;
import androidx.annotation.NonNull;
import androidx.fragment.app.FragmentActivity;
import com.truecaller.android.sdk.ITrueCallback;
import com.truecaller.android.sdk.TrueException;
import com.truecaller.android.sdk.TrueProfile;
import com.truecaller.android.sdk.clients.g;
import com.truecaller.android.sdk.models.CreateInstallationModel;
import java.util.UUID;
import kotlin.jvm.internal.Intrinsics;
public final class e extends c implements g.a {
@NonNull
public final h h;
@NonNull
public final com.truecaller.android.sdk.clients.callVerification.a i;
public final boolean j;
public com.truecaller.android.sdk.clients.callVerification.d k;
public Handler l;
public e(@NonNull Context context, @NonNull String str, @NonNull ITrueCallback iTrueCallback, boolean z) {
super(context, str, iTrueCallback, 2);
this.j = z;
String string = context.getString(com.truecaller.android.sdk.e.sdk_variant);
String string2 = context.getString(com.truecaller.android.sdk.e.sdk_variant_version);
this.h = new h(this, (com.truecaller.android.sdk.network.a) com.truecaller.android.sdk.network.c.a(com.truecaller.android.sdk.network.a.class, "https://outline.truecaller.com/v1/", string, string2), (com.truecaller.android.sdk.network.d) com.truecaller.android.sdk.network.c.a(com.truecaller.android.sdk.network.d.class, "https://sdk-otp-verification-noneu.truecaller.com/v3/otp/installation/", string, string2), iTrueCallback, new com.truecaller.android.sdk.clients.otpVerification.a(context));
this.i = Build.VERSION.SDK_INT >= 28 ? new com.truecaller.android.sdk.clients.callVerification.c(context) : new com.truecaller.android.sdk.clients.callVerification.b(context);
}
@Override
public final void a() {
this.i.a();
}
@Override
public final boolean b() {
if (m("android.permission.READ_PHONE_STATE") && m("android.permission.READ_CALL_LOG")) {
if (Build.VERSION.SDK_INT < 26 ? m("android.permission.CALL_PHONE") : m("android.permission.ANSWER_PHONE_CALLS")) {
return true;
}
}
return false;
}
@Override
public final int c() {
TelephonyManager telephonyManager = (TelephonyManager) this.a.getSystemService("phone");
if (telephonyManager == null) {
return 0;
}
return telephonyManager.getSimState();
}
@Override
public final void d(@NonNull com.truecaller.android.sdk.clients.callbacks.d dVar) {
TelephonyManager telephonyManager = (TelephonyManager) this.a.getSystemService("phone");
com.truecaller.android.sdk.clients.callVerification.d dVar2 = new com.truecaller.android.sdk.clients.callVerification.d(dVar);
this.k = dVar2;
telephonyManager.listen(dVar2, 32);
}
@Override
public final boolean e() {
return Settings.Global.getInt(this.a.getContentResolver(), "airplane_mode_on", 0) == 0;
}
@Override
public final void f() {
((TelephonyManager) this.a.getSystemService("phone")).listen(this.k, 0);
}
@Override
public final Handler getHandler() {
if (this.l == null) {
this.l = new Handler();
}
return this.l;
}
@SuppressLint({"HardwareIds"})
public final void k(@NonNull String str, @NonNull String str2, @NonNull VerificationCallback verificationCallback, @NonNull FragmentActivity fragmentActivity) {
com.truecaller.android.sdk.clients.callbacks.a aVar;
com.truecaller.android.sdk.f.a(fragmentActivity);
Intrinsics.checkNotNullParameter(str2, "phoneNumber");
if (!com.truecaller.android.sdk.f.b.matcher(str2).matches()) {
throw new RuntimeException(TrueException.TYPE_INVALID_NUMBER);
}
String b = com.truecaller.android.sdk.h.b(fragmentActivity);
if (TextUtils.isEmpty(this.e)) {
this.e = UUID.randomUUID().toString();
}
String str3 = this.e;
String b2 = com.truecaller.android.sdk.f.b(fragmentActivity);
boolean z = this.j;
h hVar = this.h;
hVar.f = str2;
hVar.g = str;
hVar.h = b;
CreateInstallationModel createInstallationModel = new CreateInstallationModel(str3, str, str2, b2, z);
g.a aVar2 = hVar.d;
createInstallationModel.setSimState(aVar2.c());
createInstallationModel.setAirplaneModeDisabled(aVar2.e());
boolean b3 = aVar2.b();
com.truecaller.android.sdk.clients.otpVerification.a aVar3 = hVar.e;
if (b3) {
createInstallationModel.setPhonePermission(true);
com.truecaller.android.sdk.clients.callbacks.d dVar = new com.truecaller.android.sdk.clients.callbacks.d(verificationCallback, aVar3, hVar, aVar2.getHandler());
aVar2.d(dVar);
aVar = dVar;
} else {
aVar = new com.truecaller.android.sdk.clients.callbacks.e(verificationCallback, hVar, aVar3, 1);
}
hVar.b.a(this.d, b, createInstallationModel).v0(aVar);
}
public final void l() {
if (this.k != null) {
f();
this.k = null;
}
Handler handler = this.l;
if (handler != null) {
handler.removeCallbacksAndMessages(null);
this.l = null;
}
}
public final boolean m(String str) {
return this.a.checkPermission(str, Process.myPid(), Process.myUid()) == 0;
}
public final void n(Activity activity) {
com.truecaller.android.sdk.f.c(activity);
this.h.c.onVerificationRequired(null);
}
public final void o(@NonNull TrueProfile trueProfile, @NonNull VerificationCallback verificationCallback) {
h hVar = this.h;
String str = hVar.j;
if (str != null) {
hVar.j(trueProfile, str, this.d, verificationCallback);
} else {
verificationCallback.onRequestFailure(5, new TrueException(3, TrueException.TYPE_MISSING_CREATE_CALL_MESSAGE));
}
}
public final void p(@NonNull TrueProfile trueProfile, @NonNull String str, @NonNull VerificationCallback verificationCallback) {
this.h.j(trueProfile, str, this.d, verificationCallback);
}
}