Heat oil and add the curry leaves and green chillies. Then add onions. Stir fry till golden. Add and cook till done, adding ground masala mixed with 2 tbsps of water.
When the is done, add mango pieces or kokums or tamarind paste. Lastly add thick coconut milk, and salt as needed. Simmer, boiling only once, without breaking the pieces.