public boolean addAliasByNumber(String aliasName,String number){
  if (aliasName.contains("'"))   return false;
  String contactName=ContactsManager.getContactNameOrNull(ctx,number);
  addOrUpdate(aliasName,number,contactName);
  return true;
}

public boolean addAliasByNumber ( String aliasName , String number ) { if ( aliasName . contains ( "'" ) ) return false ; String contactName = ContactsManager . getContactNameOrNull ( ctx , number ) ; addOrUpdate ( aliasName , number , contactName ) ; return true ; }
adds an alias by a phone number if the alias contains an invalid character , false will be returned
