More than half of the world’s smartphones run Android. That sounds like a pretty comfy perch for Google, but it’s a precarious one — and the historical tides that made Android such a stunning success are starting to swing in the opposite direction.