Its almost as if Chinese companies are either just arms of the state, or thoroughly infiltrated by state actors! I don't think US-based hardware manufacturers are really any better though. To me this just illustrates the need for fully open-sourced hardware and software with domestic production facilities.
Also, this is more likely a case of incompetence, not maliciousness.