<tdclass="cellrowborder"valign="top"width="50%"><pid="p135611718111618"><aname="p135611718111618"></a><aname="p135611718111618"></a>hdc help or version information</p>
</td>
</tr>
</tbody>
</table>
| Return Value | Description |
| -------- | -------- |
| Required information | hdc help or version information. |
Examples:
...
...
@@ -55,31 +45,11 @@ Connects to a device with a specified key.
<tdclass="cellrowborder"valign="top"width="50%"><pid="p26051123547"><aname="p26051123547"></a><aname="p26051123547"></a>Key that identifies the device. The value is in the <emid="i15978153415214"><aname="i15978153415214"></a><aname="i15978153415214"></a>IP address:Port number</em> format or is a USB serial number.</p>
<trid="row1760531211546"><tdclass="cellrowborder"valign="top"width="50%"><pid="p232481834"><aname="p232481834"></a><aname="p232481834"></a>1. error: device '***' not found</p>
<pid="p12191171320"><aname="p12191171320"></a><aname="p12191171320"></a>②Nothing to do...</p>
</td>
<tdclass="cellrowborder"valign="top"width="50%"><pid="p85527328314"><aname="p85527328314"></a><aname="p85527328314"></a>1. The device does not exist.</p>
<pid="p10343124416277"><aname="p10343124416277"></a><aname="p10343124416277"></a>2. The command appended to <strongid="b18734194624117"><aname="b18734194624117"></a><aname="b18734194624117"></a>-t key</strong> does not exist.</p>
</td>
</tr>
</tbody>
</table>
| Parameter | Description |
| -------- | -------- |
| key | Key that identifies the device. The value is in the IP address:port format or is a USB serial number. |
| **Return Value** | **Description** |
| 1. error: device '\*\*\*' not found<br/>2. Nothing to do... | 1. The device does not exist<br>2. The command appended to **-t key** does not exist. |
Examples:
...
...
@@ -102,31 +72,11 @@ Displays all the connected devices.
<tdclass="cellrowborder"valign="top"width="50%"><pid="p6334859174310"><aname="p6334859174310"></a><aname="p6334859174310"></a>1. A list of connected devices</p>
<pid="p57581926125318"><aname="p57581926125318"></a><aname="p57581926125318"></a>2. No device information is found.</p>
</td>
</tr>
</tbody>
</table>
| Parameter | Description |
| -------- | -------- |
| -v | Prints detailed device information. |
| **Return Value** | **Description** |
| 1. Device information<br/>2. [Empty] | 1. A list of connected devices.<br/>2. No device information is found. |
Examples:
...
...
@@ -144,31 +94,11 @@ Mounts a partition, such as **/system**, with the read and write permissions.
<pid="p43471519204114"><aname="p43471519204114"></a><aname="p43471519204114"></a>2. Returned information</p>
</td>
<tdclass="cellrowborder"valign="top"width="50%"><pid="p1551336123011"><aname="p1551336123011"></a><aname="p1551336123011"></a>1. Information returned when the operation is successful.</p>
<pid="p2034731984115"><aname="p2034731984115"></a><aname="p2034731984115"></a>2. Information returned when the operation fails.</p>
</td>
</tr>
</tbody>
</table>
| Parameter | Description |
| -------- | -------- |
| None | None |
| **Return Value** | **Description** |
| 1. Mount finish<br/>2. Returned information | 1. Information returned when the operation is successful.<br/>2. Information returned when the operation fails. |
<tdclass="cellrowborder"valign="top"width="50%"><pid="p18405337142911"><aname="p18405337142911"></a><aname="p18405337142911"></a>Triggers the service restart.</p>
<trid="row15405163702915"><tdclass="cellrowborder"valign="top"width="50%"><pid="p0976152811311"><aname="p0976152811311"></a><aname="p0976152811311"></a>①Kill server finish</p>
<tdclass="cellrowborder"valign="top"width="50%"><pid="p10405123732915"><aname="p10405123732915"></a><aname="p10405123732915"></a>1. Information returned when the operation is successful.</p>
<pid="p19405337152916"><aname="p19405337152916"></a><aname="p19405337152916"></a>2. The operation fails.</p>
</td>
</tr>
</tbody>
</table>
| Parameter | Description |
| -------- | -------- |
| -r | Triggers the service restart. |
| **Return Value** | **Description** |
| ①Kill server finish<br/>2. Error information | 1. Information returned when the operation is successful.<br/>2. The operation fails. |
<tdclass="cellrowborder"valign="top"width="50%"><pid="p1860525413414"><aname="p1860525413414"></a><aname="p1860525413414"></a>Restarts the service process if it has started.</p>
<tdclass="cellrowborder"valign="top"width="50%"><pid="p14129038443"><aname="p14129038443"></a><aname="p14129038443"></a>IP address and port number of the device to be connected</p>
<tdclass="cellrowborder"valign="top"width="50%"><pid="p24693194612"><aname="p24693194612"></a><aname="p24693194612"></a>Disconnects from the specified device.</p>
<tdclass="cellrowborder"valign="top"width="50%"><pid="p1353282314492"><aname="p1353282314492"></a><aname="p1353282314492"></a>1. The operation fails.</p>
<pid="p053312316491"><aname="p053312316491"></a><aname="p053312316491"></a>2. The operation is successful.</p>
</td>
</tr>
</tbody>
</table>
| Parameter | Description |
| -------- | -------- |
| host[:port] | IP address and port number of the device to be connected. |
| -remove | Disconnects from the specified device. |
| **Return Value** | **Description** |
| 1. Error information<br/>2. None | 1. The operation fails.<br/>2. The operation is successful. |
Example:
...
...
@@ -305,31 +173,11 @@ Restarts the daemon process and connects to the device using USB.
<tdclass="cellrowborder"valign="top"width="50%"><pid="p81911527145413"><aname="p81911527145413"></a><aname="p81911527145413"></a>1. The operation fails.</p>
<pid="p4191192720546"><aname="p4191192720546"></a><aname="p4191192720546"></a>2. The operation is successful.</p>
</td>
</tr>
</tbody>
</table>
| Parameter | Description |
| -------- | -------- |
| None | None |
| **Return Value** | **Description** |
| 1. Error information<br/>2. None | 1. The operation fails.<br/>2. The operation is successful. |
Example:
...
...
@@ -341,37 +189,17 @@ Restarts the daemon process and connects to the device over TCP.
<tdclass="cellrowborder"valign="top"width="50%"><pid="p18198921171715"><aname="p18198921171715"></a><aname="p18198921171715"></a>Port number used to connect to the device</p>
<tdclass="cellrowborder"valign="top"width="50%"><pid="p17426133416542"><aname="p17426133416542"></a><aname="p17426133416542"></a>1. The operation fails.</p>
<pid="p20426834195419"><aname="p20426834195419"></a><aname="p20426834195419"></a>2. The operation is successful.</p>
</td>
</tr>
</tbody>
</table>
| Parameter | Description |
| -------- | -------- |
| port-number | Port number used to connect to the device. |
| **Return Value** | **Description** |
| 1. Error information<br/>2. None | 1. The operation fails.<br/>2. The operation is successful. |
>After this command is executed, the remote daemon process exits and restarts, and the TCP connection is enabled by default. If you do not include **port-number** in this command, a random port will be used to connect to the device.
<tdclass="cellrowborder"valign="top"width="50%"><pid="p176225193115"><aname="p176225193115"></a><aname="p176225193115"></a>Path of the file to send</p>
<tdclass="cellrowborder"valign="top"width="50%"><pid="p1634515316"><aname="p1634515316"></a><aname="p1634515316"></a>Destination path on the remote device</p>
<pid="p0550151385512"><aname="p0550151385512"></a><aname="p0550151385512"></a>2. File transfer result</p>
</td>
<tdclass="cellrowborder"valign="top"width="50%"><pid="p1955091315517"><aname="p1955091315517"></a><aname="p1955091315517"></a>1. The operation fails.</p>
<pid="p1555041375519"><aname="p1555041375519"></a><aname="p1555041375519"></a>2. The operation is successful.</p>
</td>
</tr>
</tbody>
</table>
| Parameter | Description |
| -------- | -------- |
| local | Path of the file to send. |
| remote | Destination path on the remote device. |
| **Return Value** | **Description** |
| 1. Error information<br/>2. File transfer result | 1. The operation fails.<br/>2. The operation is successful. |
Example:
...
...
@@ -425,41 +229,13 @@ Receives a file from a remote device.
<tdclass="cellrowborder"valign="top"width="50%"><pid="p1783912455333"><aname="p1783912455333"></a><aname="p1783912455333"></a>Path on the local device to receive the file</p>
<tdclass="cellrowborder"valign="top"width="50%"><pid="p179411118193416"><aname="p179411118193416"></a><aname="p179411118193416"></a>File path on the remote device</p>
<tdclass="cellrowborder"valign="top"width="50%"><pid="p117511052144218"><aname="p117511052144218"></a><aname="p117511052144218"></a>Replaces an existing application.</p>
<tdclass="cellrowborder"valign="top"width="50%"><pid="p16720113145610"><aname="p16720113145610"></a><aname="p16720113145610"></a>1. The operation fails.</p>
<pid="p8720031185611"><aname="p8720031185611"></a><aname="p8720031185611"></a>2. The operation is successful.</p>
<tdclass="cellrowborder"valign="top"width="50%"><pid="p167181136125610"><aname="p167181136125610"></a><aname="p167181136125610"></a>1. The operation fails.</p>
<pid="p1371811369562"><aname="p1371811369562"></a><aname="p1371811369562"></a>2. The operation is successful.</p>
<tdclass="cellrowborder"valign="top"width="50%"><pid="p2481349195711"><aname="p2481349195711"></a><aname="p2481349195711"></a>Execution result of the command</p>
</td>
</tr>
</tbody>
</table>
| Parameter | Description |
| -------- | -------- |
| command | Command to be executed. |
| **Return Value** | **Description** |
| Returned information | Execution result of the command. |