Heat 1 tsp coconut oil in a clay pot. Add grated coconut and roast on medium flame until reddish.
Add shallots, curry leaves, cumin seeds and peppercorns. Reduce the flame to low and continue roasting until the coconut turns reddish.
Add coriander powder, Kashmiri chilli powder and chicken masala. Mix well, switch off the flame and continue mixing for a few seconds.
Allow the mixture to cool and grind into a smooth paste, adding a little water if needed.
In the same pot, add the cleaned and halved koorka, turmeric powder, salt and 1.5 cups water. Cook until soft, approximately 10 minutes. Strain and keep aside.
Heat 1 tsp coconut oil in the pot. Add mustard seeds and allow them to splutter.
Add curry leaves, chopped ginger, chopped garlic and green chilli. Fry until aromatic.
Add chopped onion and fry until soft.
Add chopped tomatoes and salt. Cook until the tomatoes become soft and mushy.
Add turmeric powder and mix well.
Add the cooked and drained koorka. Mix well.
Add the prepared roasted coconut masala and 1 cup water. Mix until the curry reaches a medium-thin consistency.
Adjust salt to taste. Close and cook on medium heat for 10 minutes.
Finally, add chopped coriander leaves, mix well and serve hot.