For the infrastructure, for legit strategic reasons (without even considering they are abusing it, you generally don't want to rely on foreign infrastructure on your territory).
For the smartphones, that's pure commercial war. Huawei was a big competitor.