Sync takes connectivity into account

Definitely no Android specific code in Phoebe.