Running Java is not remotely the same as copying the API interface of the whole standard library and providing an alternative implementation, just to avoid paying Sun, who specifically intended on getting money from mobile usage.
Oracle lost the lawsuit and I do agree with the decision in that APIs should be freely replicated, but let's not pretend that Google was some saint good guy here fighting the good fight, they were just cheap and aggressively capitalistic.
But Google did NOT copy the open source implementation. Google copied parts of the closed-source proprietary Java SE API specifications in order to have compatibility and without taking a license. Kindly remember that Android started using OpenJDK very late - around 2015–2016.
Legally the case was about copying declaring code from a proprietary product, not an open source one.
And they lost, because it was fair use, which was obvious to most people in the field. The fact that the lawsuit happened in the first place is why I will never trust Oracle.