Releasing 60K patents to Open Source ecosystem for some of which Samsung used to pay $6bn -- suggests that Microsoft has a bigger concern than making money. And the concern could be: not being left out during the transistion to next generation technology. And only way to catchup with next tech is be part of public dev community.
The important thing is that Microsoft quickly realised the fact that "Proprietorship works good only if you're a monopoly in the market" while Apple hasn't realised this yet.
They've conquered Enterprise ecosystem. Pacing up with Cloud ecosystem already. Now they've slowly started establishing a good rappo with Open-source and dev ecosystem.