I suspect physical security will be robotized before policing is. Robots could get very good at recognizing firearms held in human hands (i.e. rather than stored in a holster) and then incapacitating the owner of those hands. Once enough such robots are installed in crowded public areas, the current mass-murder-mania (and one hopes, the hysteria that has arisen in reaction) would be eliminated.