I guess Google and Oracle (Sun Microsystems) are still in court or appealing, to determine whether or not “copying an API” (i.e., the API to various Java libraries) is a copyright violation.
If you don’t use the documentation to build an emulator, then you’ve not agreed to any license… technically. But that would be a difficult task.