package com.webh5app.utils;

import X6FRs_4.IMuAHx_6.X6FRs_4.KQgRr5e_0;
import android.content.Context;
import java.util.ArrayList;
/* loaded from: classes.dex */
public final class CheckPermissionUtils {
    public static String[] permissionsScan = {"android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.READ_EXTERNAL_STORAGE", "android.permission.CAMERA"};
    public static String[] permissionsDownload = {"android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.READ_EXTERNAL_STORAGE"};
    public static final String[] permissionsVideo = {"android.permission.CAMERA", "android.permission.RECORD_AUDIO", "android.permission.READ_EXTERNAL_STORAGE", "android.permission.WRITE_EXTERNAL_STORAGE"};

    public static String[] checkPermissionDownload(Context context) {
        String[] strArr;
        ArrayList arrayList = new ArrayList();
        for (String str : permissionsDownload) {
            if (KQgRr5e_0.KQgRr5e_0(context, str) == -1) {
                arrayList.add(str);
            }
        }
        return (String[]) arrayList.toArray(new String[arrayList.size()]);
    }

    public static String[] checkPermissionScan(Context context) {
        String[] strArr;
        ArrayList arrayList = new ArrayList();
        for (String str : permissionsScan) {
            if (KQgRr5e_0.KQgRr5e_0(context, str) == -1) {
                arrayList.add(str);
            }
        }
        return (String[]) arrayList.toArray(new String[arrayList.size()]);
    }

    public static String[] checkPermissionVideo(Context context) {
        String[] strArr;
        ArrayList arrayList = new ArrayList();
        for (String str : permissionsVideo) {
            if (KQgRr5e_0.KQgRr5e_0(context, str) == -1) {
                arrayList.add(str);
            }
        }
        return (String[]) arrayList.toArray(new String[arrayList.size()]);
    }
}
