Under low-medium heat, place pan, add cooking oil and allow to heat.
Add garlic. Stir and allow cooking for about 2 minutes until it turns aromatic.
Add onions and allow continuing cooking until translucent and limp.
Add chicken liver and bay leaves. Saute gently and cook for 2 to 5 minutes
Add vinegar, whole peppercorn, and soy sauce and simmer for 2 minutes. Don't stir.
Add sugar and gently stir. Continue simmering for about 10 minutes or when chicken fully cooked.
Turn heat off and transfer immediately to the serving dish. Sprinkle with fried garlic and serve with warm rice.