Last month Google said that Android N will replace Java with OpenJDK. The latter is the open source version of Java which will not require Google to license it from Oracle. As for the financial information divulged by the attorney, Google said that those numbers should not have been publicly disclosed. In a court filing, the company says that the Oracle attorney used confidential financial information to calculate the figures. This information was in a file marked "Attorney’s Eyes Only." Google has asked a federal judge in San Francisco to redact and seal the publicly available transcripts from the hearing.
While Google doesn't sell the rights to Android, it profits from selling ads that appear on Android devices, and from apps and other content that is sold to Android users from the Google Play Store.