Lines Matching refs:hdc
1 # hdc chapter
3 OpenHarmony Device Connector (hdc) is a command line tool used for debugging. You can use it on a W…
7 Obtain hdc from the **toolchains** folder in OpenHarmony SDK. For first-time use, configure the env…
68 … can run commands to go to the **toolchains** directory in the SDK and run hdc commands in the dir…
158 > A non-root user cannot find the device using hdc in Linux. Granting USB operation permission for …
162 - If an exception occurs, run the **hdc kill -r** command to kill the hdc process and restart the h…
164 …hdc list targets** command is executed, check whether the hdc process exists in the **Task Manager…
178 | -h/help | Displays hdc help information.|
179 | -v/version | Displays hdc version information.|
180 | -t [connect-key] [command] | Connects to the specified device. You can run the **hdc list targets…
185 1. Display hdc help information.
188 hdc -h/help
194 … - Print hdc help, 'verbose' for more other cmds<br>..._(Detailed information is omitte…
199 hdc -h or hdc help
202 2. Display hdc version information.
205 hdc -v/version
211 | Ver: X.X.Xa | hdc (SDK) version information.|
216 hdc -v or hdc version
222 hdc -t [connect-key] [command]
248 hdc list targets // Display connect-key of all connected devices.
249 hdc -t [connect-key] shell // Replace connect-key with the specified device ID.
255 hdc -l [level] [command]
273 hdc -l 5 shell ls
279 hdc wait // Wait for the device to connect.
280 …hdc -t connect-key wait // Wait for the specified device to connect. Replace connect-key with the …
286 …| None| After the **hdc wait** command is executed, the process ends when a properly connected dev…
291 hdc wait
292 hdc -t connect-key wait
298 hdc checkserver
309 hdc checkserver
321 hdc list targets[-v]
333 hdc list targets
334 hdc list targets -v
344 | smode [-r] | Grants the **root** permission to the background hdc service running on the device. …
345 | kill [-r] | Terminates the hdc process. You can use the **-r** option to restart the process.|
346 | start [-r] | Starts the hdc process. You can use the **-r** option to restart the process.|
351 hdc target mount
363 hdc target mount
379 …upported by **reboot** in the **/bin/begetctl** command. You can run the **hdc shell "/bin/begetct…
384 hdc target boot -bootloader // Restart the device to enter the fastboot mode.
385 hdc target boot -recovery // Restart the device to enter the recovery mode.
386 hdc target boot shutdown // Shut down the device.
389 3. Grant the **root** permission to the background hdc service running on the device.
392 hdc smode [-r]
404 hdc smode
405 hdc smode -r // Revoke the root permission.
408 4. Terminate the hdc service.
411 hdc kill [-r]
423 hdc kill
424 hdc kill -r // Restart and terminate the service process.
427 5. Start the hdc service.
430 hdc start [-r]
442 hdc start
443 hdc start -r // Restart the service.
462 hdc fport ls
475 hdc fport ls
481 hdc fport localnode remotenode
494 hdc fport tcp:1234 tcp:1080
501 hdc rport remotenode localnode
514 hdc rport tcp:1234 tcp:1080
519 hdc fport rm taskstr
536 hdc fport rm tcp:1234 tcp:1080
543 hdc tmode usb
549 hdc tmode usb
557 hdc tmode port [port-number]
575 hdc tmode port 1234
589 hdc tmode port close
600 hdc tmode port close
608 hdc tconn [IP]:[port] [-remove]
627 hdc tconn 192.168.0.1:8888
628 hdc tconn 192.168.0.1:8888 -remove // Disconnect from the specified device.
641 hdc file send localpath remotepath
657 hdc file send E:\example.txt /data/local/tmp/example.txt
663 hdc file recv remotepath localpath
679 hdc file recv /data/local/tmp/a.txt ./a.txt
692 hdc install [-r|-s] src
713 hdc install E:\example.hap
719 hdc uninstall [-k|-s] packageName
740 hdc uninstall com.example.hello
749 …**options** indicates the parameters supported by HiLog. You can run the **hdc hilog -h** command …
750 …supported commands vary with the system type or version. You can run the **hdc shell ls /system/bi…
755 hdc hilog [options]
761 …| [options] | Parameters supported by HiLog. You can run the **hdc hilog -h** command to obtain th…
771 hdc hilog
772 hdc shell "hilog -r" // Clear the cached logs.
778 hdc jpid
790 hdc jpid
815 hdc track-jpid
821 hdc shell [command]
838 hdc shell ps -ef
839 hdc shell help -a // List all available commands.
851 hdc keygen FILE
862 hdc keygen key // Generate the key and key.pub files in the current directory.
876 | hdc environment variable| The help information is displayed after the **hdc -h** command is execu…
877 | Driver| After the device is connected via hdc, **HDC Device** or **HDC Interface** is displayed i…
882 hdc shell // For USB direct connection, ensure that the device is not in TCP connection mode.
892 | hdc environment variable| The help information is displayed after the **hdc** command is executed…
902 hdc tmode port 8710// Add a port number after port. The default port number is 8710.
908 hdc tconn IP:8710
916 hdc list targets
924 hdc tmode usb
940 hdc kill // Terminate the local hdc service.
941 hdc -s IP:8710 -m // Enable the hdc service for network forwarding.
951 hdc -s IP:8710 [command] // IP indicates the IP address of the server,
952 // and command can be any available hdc command, for example, list targets.
962 hdc kill
963 hdc -l5 start
978 …l-time log| hdc.log | Records hdc server logs in real time.| Each time the hdc server is restarted…
979 …hdc-%Y%m%d-%H%M%S.log | Dumps intermediate files generated during historical log archiving.| For e…
980 …hdc-%Y%m%d-%H%M%S.log.tgz | Compresses and stores historical logs.| The archive file is a compress…
981 | Temporary real-time log| .hdc.cache.log | Records temporary caches generated by real-time logs.| |
988 hdc shell hilog -w start // Enable the function of storing HiLog logs.
989 hdc shell ls /data/log/hilog // View the stored HilLog logs.
990 hdc file recv /data/log/hilog // Obtain the stored HilLog logs (including kernel l…
999 After the **hdc list targets** command is executed, the command output is **[empty]**.
1034 …- If a TCP connection can be set up, run the **hdc tmode usb** command to switch to the USB connec…
1055 When "[Fail]Failed to communicate with daemon" is displayed after a hdc command is executed.
1059 …- The hdc or SDK does not match the device. If the device is the latest version, update the hdc or…
1062 …hdc and hdc_std use the same **HDC_SERVER_PORT** or the same default port **8710**. Ensure that ei…
1071 …1. Check the software processes that come with hdc, including software with built-in hdc, such as …
1073 Stop these software processes and run hdc commands.
1075 2. Check hdc port status.
1093 3. Check for and stop the hdc server of another version.
1097 …hdc.exe** process and choose **Open file location**. Check whether the location is the same as tha…
1101 …hdc** command to query the hdc server process running in the background and check whether the proc…
1117 ### Failed to Run hdc
1121 The **hdc.exe**/hdc binary file cannot be executed using the CLI.
1133 - Improper running mode: Use the correct command to run the hdc tool instead of double-clicking the…
1137 1. Run the **hdc list targets** command.
1139 3. Run the **hdc kill** command to terminate the server, and then run the **hdc -l5 start** command…
1140 4. Locate the problem based on the **hdc.log** file.