code: @Implementation(minSdk = KITKAT)
    @HiddenApi
    public int checkOpNoThrow(int op, int uid, String packageName) {
      Integer mode = appModeMap.get(getOpMapKey(uid, packageName, op));
      if (mode == null) {
        return AppOpsManager.MODE_ALLOWED;
      }
      return mode;
    }
docs: Like {@link AppOpsManager#checkOp} but instead of throwing a {@link SecurityException} it
  returns {@link AppOpsManager#MODE_ERRORED}.
  
  <p>Made public for testing {@link #setMode} as the method is {@coe @hide}.