For masala podi, heat oil in a frying pan. Add the chana dal, urad dal, chillies, coriander seeds, and cumin seeds. Fry till roasted. Grind along with coconut into a powder. Set aside.
Heat 2 tablespoons oil in the frying pan. Add peanuts and mustard seeds. Fry for a few minutes. Add the asafoetida and curry leaves. Add the onions and green chillis. Fry for a few minutes till onions are brown. Add the turmeric powder, salt, sugar, and tomatoes. Cook till the tomatoes are soft.
Add the ground masala powder and rice. Mix well. Garnish with coriander leaves and serve hot.