As a software developer from Taiwan, I know the situation here. Hardware OEM industry makes money, they can offer better for getting talents. When CS students graduate, they would rather go to OEM company (such as TSMC) than go to software/Internet company or even startups. How can they complete OEM firms in recruiting battle?
It's really a bad environment for software development. Actually, software/Internet in China is much better than Taiwan.
We just work together with china and not against it. We sell them fabrication machines, together with services and skill around those.
(And in the end, we export enough weapons to not care.)
Working "together" with China is a pretty idealistic way of seeing it. They've spent the last 20 years asking for european companies (both civilians and military) to give them their industrial and technological secrets before they buy anything, so that they could clone pretty much everything and sell goods back to us for 10% of the price, thanks to a workforce that lives in barely human conditions and no patent system or anything close to it (but also very smart and education oriented people, to be honest). With software, my bet is it's going to go even faster, since everything is pretty much open source those days.
Now, I know things are slowly changing and i don't mean to be too hard on the chinese regime, which managed to let that country grow tremendously, and probably improve the life of many citizens. I just wanted to balance your idealistic point of view a little bit.
Foxconn is more like a military station, while people listen to command and act as orderred. No respect from manger to normal employee.
Huawei has an atmosphere where talents are respected by others, maybe like a laboratory.
I don't think Foxconn can achieve its goal as declared.
Then, we lost all our jobs in the industry (except for Germany, but for how long ?), and Europe now faces the biggest economical crisis it has ever known.
US still reigns the software industry, but should China decides to make that a top priority, you can be sure that it won't take long until we all start using "made in china" OSes and softwares.