Android has about 68% of the market according to the latest data, and growing. Samsung still make most of the hardware for Apple, even though the company has tried, and failed, to use other suppliers.

So thanks to Microsoft for saving it from bankruptcy in the late nineties, and its main competitor supplying the parts, Apple are doing well.