HDC Command
The following section will describes common commands for hdc.
Go to Command Line Interactive Mode
$ hdc shell
# cat /etc/param/ohos.para
const.actionable_compatible_property.enabled=false
const.postinstall.fstab.prefix=/system
const.secure=1
security.perf_harden=1
const.allow.mock.location=0
const.debuggable=1
const.build.characteristics=default
const.product.model=ohos
const.product.name="OpenHarmony 3.2 Beta2"
persist.sys.usb.config=hdc
const.sandbox=enable
const.product.devicetype=default
const.software.model=default
const.product.manufacturer=default
const.product.brand=default
const.build.product=default
const.product.hardwareversion=default
const.product.bootloader.version=bootloader
const.product.cpu.abilist=default
const.product.software.version=OpenHarmony 3.2.5.5
const.product.incremental.version=default
const.product.firstapiversion=1
const.product.build.type=default
const.product.build.user=default
const.product.build.host=default
const.product.build.date=default
const.product.hardwareprofile=default
const.ohos.buildroothash=default
Transfer file
Use this command to push files to the device.
hdc file send <local file> /mnt
note
If the following error occurs, please change the file system to read-write.
$ hdc file send example /
[Fail]Error opening file: read-only file system, path://example
hdc shell mount -o rw,remount /
Use this command to get the file from the device.
hdc file recv <remote> <local>
Install new software
hdc install -r <local package path>
View Log
hdc hilog
Reboot
hdc target boot
More Options
hdc --help