Wash the white rice.
Heat the cooking oil.
Cook the ginger, garlic, and onion for 3 minutes.
Add the chopped chicken. Cook it until it turns medium brown.
Add the patis, rice, water, and chicken broth. Wait for it to boil.
Stir once in a while so that the rice will not stick on the botom of the pan. Cook this for 45 minutes until the consistency of the liquid becomes thick.
Top with cubed tofu and green onions.
Season with pepper and additinal fish sauce and chili flakes.