cgutman / AdbLib

A Java library implementation of the ADB network protocol
BSD 3-Clause "New" or "Revised" License
467 stars 144 forks source link

Javadoc Help #10

Open MlgmXyysd opened 4 years ago

MlgmXyysd commented 4 years ago
public AdbStream open(java.lang.String destination)
               throws java.io.UnsupportedEncodingException,
                      java.io.IOException,
                      java.lang.InterruptedException
Opens an AdbStream object corresponding to the specified destination. This routine will block until the connection completes.
Parameters:
               destination - The destination to open on the target
Returns:
               AdbStream object corresponding to the specified destination
Throws:
               java.io.UnsupportedEncodingException - If the destination cannot be encoded to UTF-8
               java.io.IOException - If the stream fails while sending the packet
               java.lang.InterruptedException - If we are unable to wait for the connection to finish

for the parameter destination There is no indication of what can be filled in. I only tested "shell:" or "reboot:" If have other destinations, please tell me