package o; import android.content.Context; import androidx.core.app.ActivityCompat; import com.scb.phone.view.activity.easycash.EasycashCarInsuranceSalesSheetActivity; import java.util.Arrays; /* renamed from: o.dIw, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public final class C8362dIw { private static final String[] c = {"android.permission.WRITE_EXTERNAL_STORAGE"}; private static final String[] a = {"android.permission.READ_MEDIA_IMAGES"}; public static final void a(EasycashCarInsuranceSalesSheetActivity easycashCarInsuranceSalesSheetActivity) { C14957gcv.e(easycashCarInsuranceSalesSheetActivity, ""); String[] strArr = a; if (!C15581guh.b(easycashCarInsuranceSalesSheetActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) { EasycashCarInsuranceSalesSheetActivity easycashCarInsuranceSalesSheetActivity2 = easycashCarInsuranceSalesSheetActivity; if (C15581guh.aDf_(easycashCarInsuranceSalesSheetActivity2, (String[]) Arrays.copyOf(strArr, strArr.length))) { C8333dIE c8333dIE = new C8333dIE(easycashCarInsuranceSalesSheetActivity); C14957gcv.e(c8333dIE, ""); EasycashCarInsuranceSalesSheetActivity.e(new Object[]{easycashCarInsuranceSalesSheetActivity, c8333dIE}, 403408389, -403408387, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(6) - 1262939789); return; } ActivityCompat.lM_(easycashCarInsuranceSalesSheetActivity2, strArr, 36); return; } easycashCarInsuranceSalesSheetActivity.k(); } public static final void b(EasycashCarInsuranceSalesSheetActivity easycashCarInsuranceSalesSheetActivity) { C14957gcv.e(easycashCarInsuranceSalesSheetActivity, ""); String[] strArr = c; if (C15581guh.b(easycashCarInsuranceSalesSheetActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) { easycashCarInsuranceSalesSheetActivity.k(); return; } EasycashCarInsuranceSalesSheetActivity easycashCarInsuranceSalesSheetActivity2 = easycashCarInsuranceSalesSheetActivity; if (C15581guh.aDf_(easycashCarInsuranceSalesSheetActivity2, (String[]) Arrays.copyOf(strArr, strArr.length))) { EasycashCarInsuranceSalesSheetActivity.e(new Object[]{easycashCarInsuranceSalesSheetActivity, new dIB(easycashCarInsuranceSalesSheetActivity)}, 403408389, -403408387, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(6) - 1262939789); } else { ActivityCompat.lM_(easycashCarInsuranceSalesSheetActivity2, strArr, 35); } } public static final void d(EasycashCarInsuranceSalesSheetActivity easycashCarInsuranceSalesSheetActivity, int i, int[] iArr) { C14957gcv.e(easycashCarInsuranceSalesSheetActivity, ""); C14957gcv.e(iArr, ""); if (i == 35) { if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) { easycashCarInsuranceSalesSheetActivity.k(); return; } String[] strArr = c; if (!C15581guh.aDf_(easycashCarInsuranceSalesSheetActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) { EasycashCarInsuranceSalesSheetActivity.g(); return; } else { EasycashCarInsuranceSalesSheetActivity.f(); return; } } if (i == 36) { if (!C15581guh.d(Arrays.copyOf(iArr, iArr.length))) { String[] strArr2 = a; if (!C15581guh.aDf_(easycashCarInsuranceSalesSheetActivity, (String[]) Arrays.copyOf(strArr2, strArr2.length))) { EasycashCarInsuranceSalesSheetActivity.j(); return; } else { EasycashCarInsuranceSalesSheetActivity.l(); return; } } easycashCarInsuranceSalesSheetActivity.k(); } } }