Rinse the black beans in a colander, drain and chop roughly.
Heat a large wok or frying pan. When hot, add some cooking oil, then brown the spareribs on all sides for a few minutes. Remove and set aside.
Add a bit more oil, then add the garlic, ginger, black beans and chopped scallions. Stir around for a bit. Then mix the soy sauces and sugar together, and add to the mixture. Stir for a few seconds.
Add the spareribs back into the frying pan, and coat the spareribs well. Add some water - about 1/2 cup - and mix well.
Cover and cook on medium heat for roughly an hour or more. Every so often, check up on your spareribs and make sure that they are well coated and not drying out. If the sauce is reducing too quickly, use your judgment to add more water and mix well, then cover again.