package o; import androidx.core.app.ActivityCompat; import com.scb.phone.view.activity.facialrecognition.BotCommonLivenessCheckActivity; import java.util.Arrays; /* loaded from: classes4.dex */ public final class dMO { private static final String[] c = {"android.permission.CAMERA", "android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.READ_EXTERNAL_STORAGE"}; private static final String[] b = {"android.permission.CAMERA", "android.permission.READ_MEDIA_IMAGES"}; public static final void a(BotCommonLivenessCheckActivity botCommonLivenessCheckActivity) { C14957gcv.e(botCommonLivenessCheckActivity, ""); String[] strArr = c; if (C15581guh.b(botCommonLivenessCheckActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) { botCommonLivenessCheckActivity.J(); return; } BotCommonLivenessCheckActivity botCommonLivenessCheckActivity2 = botCommonLivenessCheckActivity; if (C15581guh.aDf_(botCommonLivenessCheckActivity2, (String[]) Arrays.copyOf(strArr, strArr.length))) { botCommonLivenessCheckActivity.d(new dMR(botCommonLivenessCheckActivity)); } else { ActivityCompat.lM_(botCommonLivenessCheckActivity2, strArr, 13); } } public static final void c(BotCommonLivenessCheckActivity botCommonLivenessCheckActivity) { C14957gcv.e(botCommonLivenessCheckActivity, ""); String[] strArr = b; if (C15581guh.b(botCommonLivenessCheckActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) { botCommonLivenessCheckActivity.K(); return; } BotCommonLivenessCheckActivity botCommonLivenessCheckActivity2 = botCommonLivenessCheckActivity; if (C15581guh.aDf_(botCommonLivenessCheckActivity2, (String[]) Arrays.copyOf(strArr, strArr.length))) { dMM dmm = new dMM(botCommonLivenessCheckActivity); C14957gcv.e(dmm, ""); botCommonLivenessCheckActivity.d(dmm); return; } ActivityCompat.lM_(botCommonLivenessCheckActivity2, strArr, 14); } public static final void a(BotCommonLivenessCheckActivity botCommonLivenessCheckActivity, int i, int[] iArr) { C14957gcv.e(botCommonLivenessCheckActivity, ""); C14957gcv.e(iArr, ""); if (i == 13) { if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) { botCommonLivenessCheckActivity.J(); return; } String[] strArr = c; if (!C15581guh.aDf_(botCommonLivenessCheckActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) { botCommonLivenessCheckActivity.ax_(); return; } else { botCommonLivenessCheckActivity.r(); return; } } if (i == 14) { if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) { botCommonLivenessCheckActivity.K(); return; } String[] strArr2 = b; if (!C15581guh.aDf_(botCommonLivenessCheckActivity, (String[]) Arrays.copyOf(strArr2, strArr2.length))) { botCommonLivenessCheckActivity.k(); } else { botCommonLivenessCheckActivity.s(); } } } }