This is something my patti used to make whenever we have excess coconut. Here is the recipe.
Dry coconut shredded - 1 cup (basically half coconut
Red chillies - 4 (acc to taste)
Urad dhall - 2 tbsp
Salt to taste
Asafoetida powder - a pinch
Take a dry pan, fry urad dhall, red chillies to golden brown. Also fry coconut to golden brown. Also fry salt for a minute. Let everything cool and grind it into a fine powder. Add asafoetida powder to it. Store it in a air tight container. Refrigerate it and use it for 2 to 3 days. After that it won't be good.