code: public static boolean checkPermission(Context context, String permission) {
      boolean hasPermission =
          (PackageManager.PERMISSION_GRANTED == context.checkCallingOrSelfPermission(permission));
      if (!hasPermission) {
        printErrorLog("permission " + permission + " is missing!");
      }
      return hasPermission;
    }
docs: 判断 Mainifest 中是否包含对应到 permission
  如有，则返回 true，反之，则返回 false 并输出日志
  
  @param context
  @param permission
  @return