Heat a pan and dry roast the grated coconut, shallots, fennel seeds, clove, cardamom, and cinnamon until the coconut turns brown. Reduce flame and add chilli powder, Kashmiri chilli powder, coriander powder, and turmeric powder, cook for another few seconds. Remove from fire and let it cool completely.