hdc 常用命令汇总
头像 土司dgg 2024-02-22 11:39:50    发布
1888 浏览 20 点赞 25 收藏

hdc 命名

$ hdc shell am force-stop com.css.umetrip$ hdc shell bm uninstall com.css.umetrip$ hdc file send D:\Download\Umetrip\Umetrip\entry\build\outputs\hap\debug\entry-debug-rich-signed.hap$ hdc shell bm install -p /sdcard/58fc49336c4c4ed885aa12074498e153/$ hdc shell rm -rf /sdcard/58fc49336c4c4ed885aa12074498e153$ hdc shell aa start -p “com.css.umetrip” -n “com.css.umetrip.MainAbility” -a actionhdc shell am start -n com.quartet.scooter24op/com.huawei.codelab.MainAbilityShellActivity //启动activityhdc shell bm uninstall com.quartet.scooter24op //卸载应用hdc shell am force-stop com.quartet.scooter24op //停止应用hdc kill 杀掉hdc进程,类似adb kill-serverhdc shell bm get -u 鸿蒙获取UDIDhdc shell bm get --udid6059A2FDB895E6BB2BA272D425E6C07DE119219A9ABA9001EDB920B40C7454BFhdc hilog -c/–clear 清除日志hdc app install xxxx.apk //安装apkhdc app uninstall packagename //卸载应用hdc list targets 列出设备

获取设备版本等
hdc shell
getprop hw_sc.build.os.apiversion
getprop hw_sc.build.os.releasetype

设备pull文件到电脑D盘
hdc file recv /system/etc/window/resources/display_manager_config.xml D://

日志过滤
hilog | grep “TAG”

截图
snapshot_display -i 0

查看某个包名
ps -ef | grep xxx
xxx是进程名

杀某应用进程
hdc shell ps 查看所有进程
hdc shell kill 进程号id

校验MD5 文件
md5sum updater.zip
电源休眠模式 601 标准 602 不休眠
power-shell setmode 602
查看应用签名
hdc shell “bm dump -n com.ohos.launcher | grep finger”
1.添加远程仓库
git remote
git remote add pb https://github.com/paulboone/ticgit
git remote -v

  1. 先提交本地开发分支代码 (开发分支default)
    git add .
    git commit -m “”
  2. 切换到要滚动的分支
    git fetch origin
    git checkout OpenHarmony-3.2-Release
  3. 切回开发分支, 合并社区分支
    git checkout default
    git merge OpenHarmony-3.2-Release
    // 有冲突需要解决
©本站发布的所有内容,包括但不限于文字、图片、音频、视频、图表、标志、标识、广告、商标、商号、域名、软件、程序等,除特别标明外,均来源于网络或用户投稿,版权归原作者或原出处所有。我们致力于保护原作者版权,若涉及版权问题,请及时联系我们进行处理。
分类
其它
地址:北京市朝阳区北三环东路三元桥曙光西里甲1号第三置业A座1508室 商务内容合作QQ:2291221 电话:13391790444或(010)62178877
版权所有:电脑商情信息服务集团 北京赢邦策略咨询有限责任公司
声明:本媒体部分图片、文章来源于网络,版权归原作者所有,我司致力于保护作者版权,如有侵权,请与我司联系删除
京ICP备:2022009079号-2
京公网安备:11010502051901号
ICP证:京B2-20230255