正在查看: RummyCircle v11000.89 应用的 c.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: RummyCircle v11000.89 应用的 c.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.truecaller.android.sdk.oAuth.clients;
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.annotation.NonNull;
import com.truecaller.android.sdk.clients.g;
import com.truecaller.android.sdk.e;
import com.truecaller.android.sdk.oAuth.TcOAuthCallback;
public final class c extends a implements g.a {
@NonNull
public final d i;
@NonNull
public final com.truecaller.android.sdk.clients.callVerification.a j;
public final boolean k;
public com.truecaller.android.sdk.clients.callVerification.d l;
public Handler m;
public c(@NonNull Context context, @NonNull String str, @NonNull TcOAuthCallback tcOAuthCallback) {
super(context, str, tcOAuthCallback, 2);
this.k = false;
String string = context.getString(e.sdk_variant);
String string2 = context.getString(e.sdk_variant_version);
this.i = new d(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), tcOAuthCallback, new com.truecaller.android.sdk.clients.otpVerification.a(context));
this.j = 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.j.a();
}
@Override
public final boolean b() {
if (g("android.permission.READ_PHONE_STATE") && g("android.permission.READ_CALL_LOG")) {
if (Build.VERSION.SDK_INT < 26 ? g("android.permission.CALL_PHONE") : g("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.l = 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.l, 0);
}
public final boolean g(String str) {
return this.a.checkPermission(str, Process.myPid(), Process.myUid()) == 0;
}
@Override
public final Handler getHandler() {
if (this.m == null) {
this.m = new Handler();
}
return this.m;
}
}