1. Preheat the oven to 350°F.
2. Prepare the chicken. Rinse the chicken pieces under cold running water, pat dry with paper towels, and sprinkle with salt and pepper. Place on a plate.
3. Heat the oil in a large skillet over medium-high heat. When the oil is very hot, add the chicken pieces and brown, cooking for 2 to 3 minutes on each side. Remove from the skillet and set aside.
4. Prepare the sauce. Heat the oil in the same skillet over medium heat and cook the onions, stirring, until golden and soft, 3 to 4 minutes. Add the garlic and cook, stirring, until golden, an additional 1 minute. (Be careful not to burn it.)
5. Combine the remaining sauce ingredients, except the apricots, in a medium-size bowl and pour into the skillet with the onions and garlic. Bring the sauce to a boil over high heat. Turn off the heat and set aside.
6. Arrange one layer of chicken in a small roasting pan (it is better if the chicken parts fit snugly so that the juices will not dry out). Cover the pieces with the apricots. Pour the sauce over the apricots, reserving ½ cup for later, and cover with aluminum foil or a tight-fitting lid. Bake for 1 hour.
7. After 1 hour, pour the remaining ½ cup sauce over the chicken and continue to bake, covered, until the chicken is tender, almost falling off the bones, about another 30 minutes. Serve hot, with the sauce spooned over rice.