Google has for years kept secret the amount of money it has made from its Android operating system. Now the cat is out of the bag.

Last week, an Oracle lawyer told a US court that the search and ad giant generated £22 billion ($31 billion) in revenue and £15 billion ($22 billion) in profit since the OS first launched in 2008, according to Bloomberg. It was also disclosed that Google paid Apple £700 million ($1 billion) in 2014 to be the default search engine on the iPhone. Today, the information became public after a judge declined to initially redact last week's hearing.

These figures seem to derive mostly from Oracle's own maths of Google's Android business rather than an exact figure from Google itself. The revelations are the latest to come out of Oracle v. Google, the long-running legal battle over the use of Java in Android.

On January 14, Oracle attorney Annette Hurst disclosed to a court in San Francisco the amount of money Google had made since the Android operating system's release in 2008.

"Look at the extraordinary magnitude of commerciality here," she was quoted as saying, according to Bloomberg.

Hurst revealed Google's Android revenue and profit numbers based on the search giant's own internal financial documents, Google confirmed in a court filing. Google complained that the disclosure was carried out "on-the-fly."

On Thursday, Google asked San Francisco magistrate judge Donna Ryu to redact and seal the public transcript of the hearing from last week. "Disclosure of the Apple-related financial information could severely and adversely impact Google's ability to negotiate, inter alia, similar terms with other third parties in connection with similar agreements now or in the future," the company argued.

Google's attorney, Edward Bayley, elaborated in the company's court filing (PDF):

This information was derived from deposition testimony that Google has designated as 'HIGHLY CONFIDENTIAL—ATTORNEY'S EYES ONLY' under the protective order that governs this case ... Oracle did not provide any advance notice to Google that it intended to disclose this highly confidential information in the hearing.

In an earlier filing (PDF), Google sought to have details of its Android revenue and profit number similarly yanked from public view. Later on Thursday, both Bloomberg and Reuters reported that the January 14 hearing transcript that had revealed the figures disappeared from the US electronic courthouse system.