The thing providing the location of the device is the phone... how are military allowed to carry personal phones?
I've worked in Top Secret facilities and holy shit no you are not allowed to bring phones inside. How is an active duty ship less controlled?

