代码如下:
package com.wy.test.other.otherUse;
import android.Manifest;
import android.os.Build;
/**
* 危险权限组工具类
* 用于动态权限的申请
*/
public class PermissionsDangerousGroupUtil {
public static final String[] CALENDAR; // 日历
public static final String[] CAMERA; // 相机
public static final String[] CONTACTS; // 联系人
public static final String[] LOCATION; // 位置
public static final String[] MICROPHONE; // 麦克风
public static final String[] PHONE; // 电话
public static final String[] SENSORS; // 传感器。
public static final String[] SMS; // 短信
public static final String[] STORAGE; // 存储。
static {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
CALENDAR = new String[]{};
CAMERA = new String[]{};
CONTACTS = new String[]{};
LOCATION = new String[]{};
MICROPHONE = new String[]{};
PHONE =