Apple is finally ruling a shrinking global smartphone roost