package o; import android.content.Context; import androidx.core.app.ActivityCompat; import com.scb.phone.view.activity.etb.EtbSuccessActivity; import java.lang.ref.WeakReference; /* renamed from: o.dMn, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public final class C8486dMn { private static InterfaceC15579guf c; private static InterfaceC15579guf e; private static final String[] b = {"android.permission.WRITE_EXTERNAL_STORAGE"}; private static final String[] d = {"android.permission.READ_MEDIA_IMAGES"}; public static void c(EtbSuccessActivity etbSuccessActivity, boolean z) { String[] strArr = d; byte b2 = 0; if (!C15581guh.b(etbSuccessActivity, strArr)) { e = new HBt(etbSuccessActivity, z, b2); if (!C15581guh.aDf_(etbSuccessActivity, strArr)) { ActivityCompat.lM_(etbSuccessActivity, strArr, 47); return; } InterfaceC15579guf interfaceC15579guf = e; guQ.b("onShowRationaleAndroid13", new Object[0]); EtbSuccessActivity.d(new Object[]{etbSuccessActivity, interfaceC15579guf}, -1225746737, 1225746738, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.security_block_enable_accessibility_description).substring(121, 122).codePointAt(0) + 718289092); return; } EtbSuccessActivity.d(new Object[]{etbSuccessActivity, Boolean.valueOf(z)}, 1613469706, -1613469706, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 753279421); } public static void e(EtbSuccessActivity etbSuccessActivity, boolean z) { String[] strArr = b; byte b2 = 0; if (C15581guh.b(etbSuccessActivity, strArr)) { EtbSuccessActivity.d(new Object[]{etbSuccessActivity, Boolean.valueOf(z)}, 1613469706, -1613469706, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 753279421); return; } c = new RVV(etbSuccessActivity, z, b2); if (C15581guh.aDf_(etbSuccessActivity, strArr)) { EtbSuccessActivity.d(new Object[]{etbSuccessActivity, c}, -1225746737, 1225746738, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.security_block_enable_accessibility_description).substring(121, 122).codePointAt(0) + 718289092); return; } ActivityCompat.lM_(etbSuccessActivity, strArr, 46); } public static void c(EtbSuccessActivity etbSuccessActivity, int i, int[] iArr) { if (i == 46) { if (C15581guh.d(iArr)) { InterfaceC15579guf interfaceC15579guf = c; if (interfaceC15579guf != null) { interfaceC15579guf.a(); } } else if (!C15581guh.aDf_(etbSuccessActivity, b)) { EtbSuccessActivity.h(); } else { EtbSuccessActivity.o(); } c = null; return; } if (i == 47) { if (C15581guh.d(iArr)) { InterfaceC15579guf interfaceC15579guf2 = e; if (interfaceC15579guf2 != null) { interfaceC15579guf2.a(); } } else if (!C15581guh.aDf_(etbSuccessActivity, d)) { EtbSuccessActivity.g(); } else { EtbSuccessActivity.m(); } e = null; } } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.dMn$HBt */ /* loaded from: classes4.dex */ public static final class HBt implements InterfaceC15579guf { private final WeakReference b; private final boolean e; private HBt(EtbSuccessActivity etbSuccessActivity, boolean z) { this.b = new WeakReference<>(etbSuccessActivity); this.e = z; } @Override // o.InterfaceC15577gud public final void c() { EtbSuccessActivity etbSuccessActivity = this.b.get(); if (etbSuccessActivity == null) { return; } ActivityCompat.lM_(etbSuccessActivity, C8486dMn.d, 47); } @Override // o.InterfaceC15577gud public final void e() { if (this.b.get() == null) { return; } EtbSuccessActivity.m(); } @Override // o.InterfaceC15579guf public final void a() { EtbSuccessActivity etbSuccessActivity = this.b.get(); if (etbSuccessActivity == null) { return; } EtbSuccessActivity.d(new Object[]{etbSuccessActivity, Boolean.valueOf(this.e)}, 1613469706, -1613469706, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 753279421); } /* synthetic */ HBt(EtbSuccessActivity etbSuccessActivity, boolean z, byte b) { this(etbSuccessActivity, z); } } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.dMn$RVV */ /* loaded from: classes4.dex */ public static final class RVV implements InterfaceC15579guf { private final boolean a; private final WeakReference e; private RVV(EtbSuccessActivity etbSuccessActivity, boolean z) { this.e = new WeakReference<>(etbSuccessActivity); this.a = z; } @Override // o.InterfaceC15577gud public final void c() { EtbSuccessActivity etbSuccessActivity = this.e.get(); if (etbSuccessActivity == null) { return; } ActivityCompat.lM_(etbSuccessActivity, C8486dMn.b, 46); } @Override // o.InterfaceC15577gud public final void e() { if (this.e.get() == null) { return; } EtbSuccessActivity.o(); } @Override // o.InterfaceC15579guf public final void a() { EtbSuccessActivity etbSuccessActivity = this.e.get(); if (etbSuccessActivity == null) { return; } EtbSuccessActivity.d(new Object[]{etbSuccessActivity, Boolean.valueOf(this.a)}, 1613469706, -1613469706, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 753279421); } /* synthetic */ RVV(EtbSuccessActivity etbSuccessActivity, boolean z, byte b) { this(etbSuccessActivity, z); } } }