harmony鸿蒙hdc_std常用操作命令大全
鸿蒙hdc_std 常用操作命令大全
读卡器USB权限问题:
进入shell:hdc_std shell
lsusb
找到ID为06ce:e03f的设备,例如Bus 005 Device 006: ID 06ce:e03f
执行:chmod 777 /dev/bus/usb/005/*
shell
# 1. 获取设备UDID
hdc_std list targets
hdc_std shell bm get -u
# 2. 全新安装HAP
hdc_std install entry-default-signed.hap
# 3. 覆盖升级安装(保留应用数据)
hdc_std install -r entry/build/default/outputs/default/entry-default-signed.hap
# 4. 列出设备所有已安装应用包名
hdc_std shell bm dump -a
# 5. 卸载指定应用
hdc_std uninstall com.example.donseereader
# 6. 过滤查找读卡器相关应用
hdc_std shell
bm dump -a | grep donsee
# 7. 查询设备CPU架构
hdc_std shell param get const.product.cpu.abilist
# 8. 查询设备系统版本
hdc_std shell param get const.product.software.version
# 9. bat截图
创建jietu.bat,放下面代码进去
set filepath=/data/%date:~0,4%%date:~5,2%%date:~8,2%%time:~1,1%%time:~3,2%%time:~6,2%.jpeg
echo %filepath%
: pause
hdc_std shell snapshot_display -f %filepath%
: pause
hdc_std file recv %filepath% ./
: pause








































