@Implementation(minSdk = KITKAT)
  @HiddenApi
  public int checkOpNoThrow(int op, int uid, String packageName) {
    """
	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}.
    """
    Integer mode = appModeMap.get(getOpMapKey(uid, packageName, op));
    if (mode == null) {
      return AppOpsManager.MODE_ALLOWED;
    }
    return mode;
  }
@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;
  }
@ 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 ; }
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}.
Like { @link AppOpsManager#checkOp } but instead of throwing a { @link SecurityException } it returns { @link AppOpsManager#MODE_ERRORED } .