Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
HarmonyOS
During app development, you can use the screen recording feature to capture the app's running state and demonstrate its functional effects to others through the screen recording files.
on the toolbar on the left to start screen recording.






You can use hdc, a command line tool primarily used for debugging, to record the screen. For details about hdc, see hdc.
- hdc shell aa start -b com.huawei.hmos.screenrecorder -a com.huawei.hmos.screenrecorder.ServiceExtAbility --ps "CustomizedFileName" "test.mp4" // Set the name of the screen recording file to test.mp4.
- hdc shell aa start -b com.huawei.hmos.screenrecorder -a com.huawei.hmos.screenrecorder.ServiceExtAbility
- hdc shell mediatool query test.mp4 -u

In this case, run the following command with the value of uri to save the file to a path on which you have the download permission, for example, /data/local/tmp:
- hdc shell mediatool recv "file://media/Photo/2/VID_1736853237_001/test.mp4" /data/local/tmp
The second line in the command output is the value of {RecordFile}.


- hdc file recv {RecordFile} d:\test.mp4
Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Quick start
Helps you find desired resources with ease.