The riots followed thousands-strong anti-China demonstrations in Hanoi and Ho Chi Minh City, allowed by the government after China deployed a billion-dollar oil rig to disputed waters in the South China Sea.