'Protecting rioters': China warns Apple over app that tracks Hong Kong police