Basically by buying whatever you are shoving money in to this regime. No matter what and where you buy.
Also what about huawei?
Your other option is...what?
You can't buy anything electronic anymore solely "Made in America"; that is, where all the parts, design, assembly, casing, etc - are all done here. Outside of maybe a few select items (and probably certain military stuff - but that isn't available to consumers anyhow) - it just doesn't exist. And it won't likely ever exist, as it would be suicide for a business to go that route.
Anything made in other SEA countries likely use parts sourced from China. I am not sure what you are suggesting, except that we stop purchasing new electronics, and hope and pray that (somehow) our electronics manufacturing systems from the 1950s-70s magically return back to our country.
You'll be waiting a long time...
Banning sideloading forced China to use iOS exploits, which are ephemeral and not consistently effective.
Installing apps outside a repository (like on most Linux distros) is a dual edged sword, Apple and Google are poor stewards of their software repositories compared to Debian or OpenSuse.
But that's just it, China found their own way in! I don't think it's obvious which method is less effective. iPhones were compromised until reboot, and became reinfected as soon as the user next visited the malicious website—which a government can compel people to do frequently. That's still better than Android, but on Android, users knew they were being tracked. iOS users did not. (And of course, because iOS is locked down, it's harder to inspect your phone for signs it's compromised.)
If China hadn't found an exploit, do you think they would have given up? I think they would have required iOS users to carry dedicated trackers. Or just surveilled them more heavily.
Software restrictions don't impact the powerful, who have access to alternatives. They impact the average user, who has limited reserves of money, knowledge, and time.
The former is fixable with a software uodate from a company that actively looks to secure your phone, while in the latter case the device is hopelessly compromised.
I love sideloading, but if I were a target of interest then iOS is the only reasonable choice.
Factory resetting might work if the system partition is not modified, but that covers only a portion of Android devices.
Source: https://chinadigitaltimes.net/2019/07/spyware-used-on-phones...
MFsocket is a separate app that has both an iPhone and Android version that police in Beijing use that does attempt to gain root on both platforms. It is unlikely to actually get root on an Android phone that a technologist would use.