At least that was consentual. The UK government basically said "Hey guys, the nazis are bad. So help us plan an attack by sending us your family vacation photos of some beaches on Frances beaches.
And everyone was like “yeah, alright. That sounds good”
China is basically like “lets set up spying EVERYWHERE! Even in countries we don’t have claim to.”