But here we go, we've started an alarmist comment thread where we've extended this out way beyond the current implementation, extending it into some kind of dystopian future where this kind of thing is universal. Time to get a burner phone and lock ourselves at home with our tin foil hats tightly in place!
All countries have always been paranoid when it comes to more contested and less stable regions. It's nothing new nor a surprise. Is this situation a good thing? No. It's been a human rights problem for decades.
Still, we should stop freaking out, that would be great.
This is not the customs and border process in China as a whole. It's not a reason to cancel a trip to Shanghai or Beijing or Xi'an.
States of emergency have been called in the past for various regions in Western Europe where violent separatist movements were active, but those moments have mainly abated, and besides, Western European governments these days are not so fond of mass surveillance as China.
Just across the strait of Gibraltar, however, one does encounter a similar situation in Morocco, namely in the region of Western Sahara which Morocco occupied back in the 1970s. Western Sahara is historically populated by a different ethnicity (the Saharawis) who chafed at Moroccan control of the region. Foreigners traveling on the roads through the region will encounter a long series of police roadblocks, and police do occasionally demand social-media accounts and passwords from travelers. The situation is vaguely like Xinjiang, although the Moroccan police are much more laidback, so a person can refuse to give them information and just bullshit about not having Facebook or Whatsapp. Compared to the very organized and rigorous Chinese police state, the Moroccan forces are pretty amateur.