HDC常用功能

SDK 版本:HarmonyOS NEXT Developer Beta2 SDK (5.0.0.31)
DevEco-Studio 版本:DevEco Studio NEXT Developer Beta2 (5.0.3.502)
工程机版本:ALN-AL00 NEXT.0.0.31

0x01 鸿蒙样机升级,查询软件版本和序列号

1
2
3
4
5
6
## 获取 OTA 系统(鸿蒙)软件版本
$ hdc shell param get const.product.software.version

## 获取序列号(SN)
$ hdc list targets

麻烦升级 NEXT.0.0.68 版本
OTA 系统版本号
ALT-AL10 5.0.0.66(SP6C00E66R6P7log)
序列号
22M0224313000155

0x02 鸿蒙手机抓取全量日志保存到本地文件

1
2
3
4
hdc shell hilog -Q domainoff
hdc shell hilog -Q pidoff
hdc shell hilog -b D
hdc hilog >> d://txt.log

Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×

NexT1
Problems1
Problems专题7
Promise1
Proxy1
PullToRefresh1
Python1
Reading3
RecyclerView8
SSH1
Shell2
Shortcuts3
TextArea2
TextInput2
Vim4
adb1
arkts2
axios1
hdc1
iTerm21
mmkv1
stable diffusion1
下载1
深色模式1
源码1
算法5

Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×