OpenHarmony 应用程序开发] hdc 常用命令列表
最编程
2024-06-02 22:04:32
...
1、查看版本
hdc -v
2、查看连接设备
hdc list targets
3、安装应用
hdc app install .\phone-launcher-default-signed.hap
// 覆盖安装
hdc app install -r .\phone-launcher-default-signed.hap
4、卸载应用
hdc app uninstall com.ohos.myapplication
5、发送文件
hdc file send .\Laucher.hap system/app/com.ohos.launcher/Launcher.hap
6、接收文件
hdc file recv system/app/com.ohos.launcher/Launcher.hap D:\OpenHarmony\
7、查看日志
hdc hilog
8、获取UUID
hdc shell bm get --udid
9、杀掉hdc进程,类似adb kill-server
hdc kill
10、重启hdc
hdc start -r
11、重启设备
hdc shell reboot
12、启动Ability
hdc shell aa start -b 包名 -a Ability名称
hdc shell aa start -b ohos.samples.FormApplication -a ohos.samples.FormApplication.MainAbility
13、多设备操作
hdc list targets 查看设备后
hdc -t 设备 shell
hdc -t 7001005458323933328a250f004e3900 shell
14、清除应用缓存
hdc shell bm clean -n ohos.samples.FormApplication -c
15、清除应用数据
hdc shell bm clean -n ohos.samples.FormApplication -d
16、hdc shell bm 其他操作
禁止应用,应用在桌面消失
hdc shell bm disable -n ohos.samples.FormApplication
允许应用,应用在桌面显示
hdc shell bm enable -n ohos.samples.FormApplication
查看应用配置信息
hdc shell bm dump -n ohos.samples.FormApplication
help list available commands
install install a bundle with options
uninstall uninstall a bundle with options
dump dump the bundle info
clean clean the bundle data
enable enable the bundle
disable disable the bundle
get obtain device udid
getrm obtain the value of isRemovable by given bundle name and module name
setrm set module isRemovable by given bundle name and module name
17、hdc shell aa 其他操作
强制退出应用
hdc shell aa force-stop ohos.samples.FormApplication
查看当前任务栈的ability 信息
hdc shell aa dump -l
hdc shell aa 其他操作
help list available commands
start start ability with options
stop-service stop service with options
dump dump the ability info
force-stop <bundle-name> force stop the process with bundle name
test start the test framework with options
ApplicationNotRespondin Pass in pid with options
block-ability <ability-record-id> block ability with ability record id
block-ams-service block ams service
block-app-service block app service
18、hdc 其他操作
hdc discover
hdc tconn
hdc bugreport
hdc jpid
hdc keygen FILE
推荐阅读
-
软件架构师应了解的 97 件事-- - 软件架构师是 IT 行业中一个独特的职业 软件架构师是 IT 行业中一个独特的职业。他们需要精通软件开发技术和商业知识,还需要在公司的不同部门之间游刃有余地协调各种支持。要做到这些并不容易。 博客观点 即将翻译出版的《软件架构师应知的 97 件事》一书 软件架构师应知的 97 件事》(97 Things Software Architects Should Know 97件 每个软件架构师都应该知道 首先是 "软件架构师"(SAG)的主题。 本书的编辑 Richard Monson-Haefel 是畅销书 EnterpriseJavaBeans 和 Java 消息传递服务 理查德 本书邀请了 50 多位杰出的软件架构师分享他们的工作经验和观点,帮助读者少走弯路。其中不乏耳熟能详的名字 高效程序员 作者:尼尔 福特 的作者 企业集成模型 "的作者 Hohpe 和《企业集成模型》的作者 Gregor Hohpe 和 JSP 专家组和 W3C RDF 工作组技术专家 Bill de hÓra 和 "企业集成模型 "和 "JSP 专家组 "的作者 快速网络应用程序开发 : 使用 TurboGears 马克,《Ramm》一书的作者 拉姆 的作者 释放它 "的作者迈克尔 尼加德 作者 软件开发沉思录 "丽贝卡 帕森斯 Rebecca Parsons 博士,活跃于 Perl 女建筑师 Allison Randal 的合著者 Java SOA Cookbook 作者:Eben Hewitt Eben Hewitt 的作者 等等。 该书现已翻译完毕,BowenVision 正在进行后期制作,计划于 2010 年 4 月出版。 该书计划于 2010 年 4 月下旬出版 以下是书中 97 篇文章的主题和作者列表。 以下是书中 97 篇文章的主题和作者列表。我们尽可能收集了作者的博客地址或个人主页,以方便您参考。本书的 豆瓣页面 . 1. 客户需求重于个人履历 ( Nitin Borwankar )
-
OpenHarmony 应用程序开发] hdc 常用命令列表
-
OpenHarmony 应用程序开发 - ArkUI 组件集
-
OpenHarmony 开发示例:[分布式游戏验证应用程序
-
OpenHarmony OpenCV 示例应用程序开发
-
注意事项]OpenHarmony 和 HarmonyOS 的区别以及应用程序开发简介