The largest mobile operating system in the world by market share generates a boatload of cash for Google. That figure is around $22 billion in profit on $31 billion in revenue, an Oracle lawyer said, according Bloomberg.

The numbers come from an analysis performed by Oracle’s lawyer and was disclosed on Jan. 14 in a court hearing between Oracle and Google. The two companies are embattled in a lawsuit launched filed in 2010, in which Oracle accuses Google illegally copying Java software without paying for it.

Google argued on Jan. 20 the figures were based on documents that should not have been publicly disclosed and asked for the information to be redacted from public court records. The transcript was later removed from court records on Thursday. Android, which launched in 2008, generates revenue for Google through advertisements on devices that run the operating system, as well as funds gathered from apps and content sold through the Google Play store.

But at the core of the argument is that Oracle wants to make the case that Google used Java software to quickly launch the mobile operating system. The figure, among others, is among several ways Oracle is attempting to peg a number to how much it wants in damages from Google for allegedly infringing on its copyrights.

While Android generates big revenue for Google, it also pays its largest mobile rival as well to maintain a presence on their devices. In the same Jan. 14 hearing, it was revealed that Google paid Apple a percentage of its search revenue generated by iPhones and iPads. At one point Google may have paid a 34 percent share of revenue, according to the proceedings. In 2014, Apple received $1 billion from Google.