CHONGQING, China—On the outskirts of this southwestern Chinese hub lie the student factories.

Schools send thousands of teenagers here to put together electronic devices for some of the world's largest brands. Many students say they are given no choice.

"I was suddenly told I had to spend the summer making computers or I couldn't graduate,"...