Smartphones leave a trail that anyone — and any foreign government — could follow.