Wash the pork and let the excess water drain off over a colander. Pat dry. Marinate with the ingredients mentioned under 'For the marinade' for about 2-3 hours.
Prepare the water-vinegar-salt solution by placing all the ingredients in a saucepan and bringing it to a boil. Simmer for a couple of minutes, turn off the heat and allow to cool completely.
Grind all the ingredients mentioned under 'For the masala' to a fine paste using the vinegar-salt-water solution
In a wide based frying pan or wok boil the meat till tender and until all the water evaporates and the fat gets released. Let the meat fry in its own fat till it turns light brown. If required you may add a little oil once it has turned tender. Once fried, remove and allow to cool completely.
In a heavy, wide based wok heat the oil and fry the chopped garlic (make sure the heat is not high or it will burn quickly), the chillies and ginger lightly and keep aside.
To the same oil add the ground masala and fry until the raw smell vanishes and the oil begins to separate. Add the remaining vinegar-salt-water solution and continue to cook the masala until the oil begins to separate again. Remove from heat and let it cool
Once the masala has cooled completely mix it with the fried meat and the fried garlic, ginger and red chillies.
Transfer contents into clean, sterile jars making sure that the surface is covered with enough oil from the masala. Keep refrigerated for a longer shelf life.