Wash the raw rice thoroughly 3-4 times, then soak it in water for 30 minutes. After soaking, drain the rice and set aside.
Heat a pan over medium heat and dry roast the urad dal until it turns light brown. Once done, remove from heat and set aside.
In the same pan, add a little coconut oil and fry the coconut pieces until they turn golden brown. Remove the coconut from the pan and set aside.
In the same pan, using the remaining oil, fry the thinly sliced shallots until they become light brown. Once done, remove from the pan and set aside.
In the same pan, fry the curry leaves until they become crisp. Remove from the pan and set aside, reserving the oil.
Grind the roasted urad dal into a fine powder.
Grind the soaked and drained rice into a powder, aiming for a texture similar to rava (semolina).
In a grinder or blender grind the garlic cloves and cumin seeds with a little water first. Then add grated coconut and crush to form a coarse mixture. Do not grind coconut to paste.
In a large mixing bowl, combine the ground urad dal powder, ground rice flour, crushed garlic-cumin-coconut mixture, fried shallots, fried coconut pieces, and fried curry leaves. Mix well to combine all the ingredients evenly. Prepare a thick batter with enough water.
Add salt to taste and mix thoroughly.