Windows 3.0 and 95 were built on top of DOS which already had the majority of the market. Apple never had a large portion of the world-market in the 80s and 90s.
Samsung doesn't make the operating system but only the phones. Google doesn't profit directly from Android. So neither of those two companies are similar to Microsoft of the 80s.
DOS was incredible strong in the enterprise sector and that's how Windows really grew. Mac was weak in that sector. Android isn't built on top of anything similar to DOS. It also isn't stronger in the enterprise sector than iOS.
The battle between Windows and Mac was not about "free" versus proprietary. Hardware vendors didn't get Windows for free. Microsoft made its money selling Windows.
Windows didn't "win" because of just one company. Although IBM did push DOS, they didn't push Windows. Windows "won" because of many companies.
Apple wasn't the largest IT-giant in the 80s and 90s. It is now. It has a fortune in the bank and plenty of smart people.
It isn't really Android that has the majority marketshare. It is Samsung! I.e. one hardware company.
So it really isn't anything like Windows and Mac from 80s and 90s. This is something different.
It is however a battle of marketshare involving Apple, and right now they are losing share to something that looks similar to iOS, just like they lost to Windows that looked similar to Mac in the 90s. However, the situation and premises are not the same.
What will be interesting now, is if Samsung and Google will continue to get along and if Samsung will want to differentiate themselves more from stock Android. I think they'll have to, in order to compete against even cheaper phones in the long run; The Android market could implode in a massive price-war with profit margins dropping to 0 everywhere.
Apple can also still fight back. iOS is a reasonably solid foundation, and right now Samsung is their only real competitor. Traditionally, these devices compete on Software, design, and hardware capabilities. Apple is a much stronger software and design company than Samsung... So who knows how this will end?