OpenHarmony开发者论坛
标题:
hdc shell命令查看OpenHarmony设备当前打开应用的包名
[打印本页]
作者:
westinyang
时间:
2024-3-13 18:14
标题:
hdc shell命令查看OpenHarmony设备当前打开应用的包名
[md]## 命令
```shell
hdc shell "aa dump -a | grep 'bundle name' | sed -n 1p"
```
## 截图

## 持续关注
- 关于作者:[I'm westinyang](
https://kaihongpai.feishu.cn/wiki/CqWLwJRadibxztkrIWZcogWxnXd
)
- 哔哩哔哩:[个人主页](
https://space.bilibili.com/74433635
)
[/md]
作者:
guo-miantiao
时间:
2024-11-12 16:53
hdc -v:Ver: 3.1.0b
此版本下命令现在已经不行了,而且你的截图显示grep命令无效
欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/)
Powered by Discuz! X3.5