Heat the oil in a wok or skillet or frying pan. Fry onions and green peas for a few minutes. then add tofu and stir-fry lightly tin tofu turns light brown. Add cooked rice and stir to separate rice grains. Add the salt and soya sauce and stir until mixed well. Serve hot.