You are confusing Chinese companies with Chinese government. In most areas, whatever restrictions/laws on foreign businesses, are also put on Chinese companies (private). Most foreign companies lost Chinese market due to fierce competition from local counterparts, not any imaginable barrier. Back in 2000s, Chinese government even gave green light when Huawei tried to sell [ref] itself to Motorola, but only been turned down by the American side, and in the past few months Huawei ascends from nowhere to the #1 target of US spy agencies. See the irony?
edit ref: https://www.ft.com/content/fa8e7ab4-3905-11e9-b856-5404d3811...