一、常用命令
1、进入OpenHarmony后台
hdc shell
2、设置不息屏
power-shell setmode 602
3、获取开发板文件
hdc_std file recv <开发板文件路径> <本地保存文件路径>
4、发送文件到开发板
hdc_std file send <本地文件的路径> <开发板文件存放路径>
5、测试网络
ping <IP地址>
6、重挂载
mount -o rw,remount /
7、查询设备类型:设备类型分为default(默认设备)、tablet、tv、wearable、2in1等
hdc shell param get "const.product.devicetype"
8、命令行启动应用
hdc shell aa start -a <abilityName> -b <bundleName>
9、关闭/开启selinux(拦截)。setenforce