package o; import android.app.Activity; import android.content.Context; import android.os.Build; import androidx.core.app.ActivityCompat; import androidx.fragment.app.Fragment; /* renamed from: o.guh, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C15581guh { private static final DFj e; static { DFj dFj = new DFj<>(13); e = dFj; dFj.put("com.android.voicemail.permission.ADD_VOICEMAIL", 14); dFj.put("android.permission.READ_CALL_LOG", 16); dFj.put("android.permission.READ_EXTERNAL_STORAGE", 16); dFj.put("android.permission.WRITE_CALL_LOG", 16); dFj.put("android.permission.BODY_SENSORS", 20); dFj.put("android.permission.SYSTEM_ALERT_WINDOW", 23); dFj.put("android.permission.WRITE_SETTINGS", 23); dFj.put("android.permission.READ_PHONE_NUMBERS", 26); dFj.put("android.permission.ANSWER_PHONE_CALLS", 26); dFj.put("android.permission.ACCEPT_HANDOVER", 28); dFj.put("android.permission.ACTIVITY_RECOGNITION", 29); dFj.put("android.permission.ACCESS_MEDIA_LOCATION", 29); dFj.put("android.permission.ACCESS_BACKGROUND_LOCATION", 29); } public static boolean d(int... iArr) { if (iArr.length == 0) { return false; } for (int i : iArr) { if (i != 0) { return false; } } return true; } public static boolean b(Context context, String... strArr) { for (String str : strArr) { Integer num = e.get(str); if ((num == null || Build.VERSION.SDK_INT >= num.intValue()) && !c(context, str)) { return false; } } return true; } private static boolean c(Context context, String str) { return nMh.checkSelfPermission(context, str) == 0; } public static boolean aDf_(Activity activity, String... strArr) { for (String str : strArr) { if (ActivityCompat.lP_(activity, str)) { return true; } } return false; } public static boolean e(Fragment fragment, String... strArr) { for (String str : strArr) { if (fragment.shouldShowRequestPermissionRationale(str)) { return true; } } return false; } }