Heat oil in a pan. Saute onions, tomatoes and green chillies separately and keep aside. Saute the ground masala in the remaining oil. When it is done, add chicken pieces and salt. Add sufficient water to cook the chicken and close the pan. When it is done, add the sautéed onions, tomatoes, green chillies and curry leaves. Remove from fire.