Society regularly dictates how producers design their products, when it effects the immediate physical safety and well-being of their citizens. I think equating the Apple/HK issue to your other examples is a far stretch.
From what I've seen of the behavior of police in HK, I think knowing where the police are might well affect the immediate physical safety and well-being of HK citizens.