Oracle sued Google in N.D.Cal. for copyright violations for using 37 packages of Java API in Android OS. Google claimed fair use to allegations of copyright infringement. Jury found Google guilty of infringement but was deadlocked on fair use. Therefore, the district judge ruled that the API packages were not copyrightable. Oracle appealed to the Federal Circuit and the appeals court reversed the district court find that the SSO of Java API packages were copyrightable. Google then filed a writ to the Supreme Court but the Court denied review based on the Solicitor General's views. The case then went back to the district court.
In the second trial, Google won on fair use defense. Oracle then appealed to the Federal Circuit and it once again reversed the district court concluding that Google's use of Java API packages was not fair use. Google then filed a writ and the Supreme Court granted cert.