SpaceMediator: Preventing Spatial and Privacy Attacks in Mobile Augmented Reality