Mix the chicken pieces with the powdered masalas and salt and marinate for an hour. the chicken pieces should be small.add 1/2 cup water and cook the chicken with the marinate in a pressure cooker for 15 minutes
Pick the chicken pieces from the gravy and keep aside.
Fry onions, curry leaves and green chilies till the onions are golden in colour.add the chicken pieces and fry for 10 minutes.
Pour the gravy into the chicken pieces and fry till the masalas get well coated on the pieces.
In a pan fry grated coconut, when it starts turning brown, add black pepper, saunf, garam masala, red chilly and grind to a paste.
Heat oil in a pan and fry the ginger garlic and the onions. when they turn golden brown add the curry leaves, tomatoes and chicken. fry the chicken pieces in low flame with a little salt and green chilies.
When the chicken is half cooked, add the masala paste and cook for 15 minutes.