213 lines
6.0 KiB
Java
213 lines
6.0 KiB
Java
package com.scb.phone.di;
|
|
|
|
import android.app.KeyguardManager;
|
|
import android.content.Context;
|
|
import android.content.SharedPreferences;
|
|
import android.content.res.AssetManager;
|
|
import android.content.res.Resources;
|
|
import android.hardware.fingerprint.FingerprintManager;
|
|
import android.os.Build;
|
|
import android.os.Environment;
|
|
import android.os.Process;
|
|
import android.view.KeyEvent;
|
|
import android.widget.ExpandableListView;
|
|
import com.bumptech.glide.Glide;
|
|
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
|
|
import com.scb.phone.R;
|
|
import com.scb.phone.view.activity.prelogin.FingerprintHelperInterface;
|
|
import io.github.inflationx.calligraphy3.CalligraphyConfig;
|
|
import java.io.File;
|
|
import java.lang.reflect.Method;
|
|
import o.C0579JxJ;
|
|
import o.C11358edo;
|
|
import o.C11482egF;
|
|
import o.C12933fLk;
|
|
import o.C13417fZt;
|
|
import o.C14804gB;
|
|
import o.C15110ghY;
|
|
import o.C6582cXO;
|
|
import o.C6584cXS;
|
|
import o.InterfaceC11860enM;
|
|
import o.InterfaceC9031dbz;
|
|
import o.InterfaceC9505dkx;
|
|
import o.KTN;
|
|
import o.YSJ;
|
|
import o.YWp;
|
|
import o.fJR;
|
|
import o.fRR;
|
|
import o.fSC;
|
|
import o.fZH;
|
|
import o.gHK;
|
|
import o.xzZ;
|
|
import o.yRw;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class AndroidModule {
|
|
@fZH
|
|
public InterfaceC9505dkx b(C11358edo c11358edo) {
|
|
return c11358edo;
|
|
}
|
|
|
|
public InterfaceC11860enM b(C15110ghY c15110ghY) {
|
|
return c15110ghY;
|
|
}
|
|
|
|
public InterfaceC9031dbz c(fJR fjr) {
|
|
return fjr;
|
|
}
|
|
|
|
FingerprintHelperInterface e(C11482egF c11482egF) {
|
|
return c11482egF;
|
|
}
|
|
|
|
public Resources Rc_(Context context) {
|
|
return C14804gB.c(context).getResources();
|
|
}
|
|
|
|
public AssetManager QZ_(Context context) {
|
|
return context.getAssets();
|
|
}
|
|
|
|
public File a(Context context) {
|
|
return context.getCacheDir();
|
|
}
|
|
|
|
public File j(Context context) {
|
|
return context.getFilesDir();
|
|
}
|
|
|
|
File c(Context context) {
|
|
if (Build.VERSION.SDK_INT >= 29) {
|
|
return new File(context.getExternalFilesDir(Environment.DIRECTORY_PICTURES), C6582cXO.b(context));
|
|
}
|
|
return new File(Environment.getExternalStorageDirectory(), C6582cXO.b(context));
|
|
}
|
|
|
|
@fZH
|
|
public SharedPreferences Ra_(Context context) {
|
|
return new C12933fLk(context, "", "secured_shared_prefs.xml");
|
|
}
|
|
|
|
@fZH
|
|
public SharedPreferences Rb_(Context context) {
|
|
return context.getSharedPreferences("FCM_TOKEN", 0);
|
|
}
|
|
|
|
@fZH
|
|
public String d$1f5e0cc8(Context context, Object obj) {
|
|
try {
|
|
Object[] objArr = {context.getPackageName()};
|
|
Object obj2 = xzZ.y.get(-1347019772);
|
|
if (obj2 == null) {
|
|
obj2 = ((Class) xzZ.c(777 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), KeyEvent.normalizeMetaState(0) + 5, (char) ((Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) - 1))).getMethod("c", String.class);
|
|
xzZ.y.put(-1347019772, obj2);
|
|
}
|
|
return (String) ((Method) obj2).invoke(obj, objArr);
|
|
} catch (Throwable th) {
|
|
Throwable cause = th.getCause();
|
|
if (cause != null) {
|
|
throw cause;
|
|
}
|
|
throw th;
|
|
}
|
|
}
|
|
|
|
@fZH
|
|
public yRw i() {
|
|
return new yRw(C13417fZt.c());
|
|
}
|
|
|
|
@fZH
|
|
yRw d() {
|
|
return new yRw(C13417fZt.e());
|
|
}
|
|
|
|
@fZH
|
|
public yRw a() {
|
|
return new yRw(fRR.e());
|
|
}
|
|
|
|
@fZH
|
|
public CalligraphyConfig e() {
|
|
return new CalligraphyConfig.Builder().setDefaultFontPath("fonts/db_heavent_regular.ttf").setFontAttrId(R.attr.fontPath).build();
|
|
}
|
|
|
|
@fZH
|
|
public C0579JxJ d(Context context, KTN ktn) {
|
|
return new C0579JxJ(context, ktn);
|
|
}
|
|
|
|
@fZH
|
|
public YSJ i(Context context) {
|
|
return Glide.e(context);
|
|
}
|
|
|
|
public YWp c() {
|
|
return new YWp();
|
|
}
|
|
|
|
public KeyguardManager Rk_(Context context) {
|
|
return (KeyguardManager) context.getSystemService("keyguard");
|
|
}
|
|
|
|
public FingerprintManager Rj_(Context context) {
|
|
return (FingerprintManager) context.getSystemService(HiAnalyticsConstant.HaKey.BI_KEY_FINGERPRINT);
|
|
}
|
|
|
|
public String Ri_(SharedPreferences sharedPreferences) {
|
|
return sharedPreferences.getString("BASE_URL", "https://fasteasy.scbeasy.com:8443/");
|
|
}
|
|
|
|
public String Rn_(SharedPreferences sharedPreferences, String str) {
|
|
return str.replace("/v1", "");
|
|
}
|
|
|
|
public String Rh_(SharedPreferences sharedPreferences) {
|
|
return sharedPreferences.getString("BASE_STATIC_URL", "https://fasteasy.scbeasy.com:8888/");
|
|
}
|
|
|
|
public String Rd_(SharedPreferences sharedPreferences) {
|
|
return sharedPreferences.getString("BASE_ASSETS_URL", "https://fasteasy.scbeasy.com:8888/portalserver/content/bbp/repositories/contentRepository?path=");
|
|
}
|
|
|
|
public String Re_(SharedPreferences sharedPreferences) {
|
|
return sharedPreferences.getString("BASE_AZURE_URL", "");
|
|
}
|
|
|
|
public String Rf_(SharedPreferences sharedPreferences) {
|
|
return sharedPreferences.getString("BASE_CAMPAIGN_URL", "https://fasteasy.scbeasy.com:8888/portalserver/content/bbp/repositories/contentRepository?path=");
|
|
}
|
|
|
|
public String Rg_(SharedPreferences sharedPreferences) {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(Rh_(sharedPreferences));
|
|
sb.append("media/");
|
|
return sb.toString();
|
|
}
|
|
|
|
public String Rl_(SharedPreferences sharedPreferences) {
|
|
return sharedPreferences.getString("com.scb.phone.pref.key.LANGUAGE", "th");
|
|
}
|
|
|
|
public String Rm_(SharedPreferences sharedPreferences) {
|
|
return sharedPreferences.getString("USER_MODE", gHK.INDIVIDUAL.mode);
|
|
}
|
|
|
|
@fZH
|
|
public C6584cXS f() {
|
|
return new C6584cXS();
|
|
}
|
|
|
|
public fSC b() {
|
|
return new fSC();
|
|
}
|
|
|
|
public String j() {
|
|
return "http://info-msisdn.scb.co.th:8080/";
|
|
}
|
|
|
|
public String h() {
|
|
return "82";
|
|
}
|
|
}
|