ohhdc

Automate OpenHarmony HAP lifecycle tasks via HDC with Bash commands.

Updated Sep 29, 2023
One-click install
npx skills add https://github.com/eclipse-oniro-mirrors/napi_generator --skill ohhdc-eclipse-oniro-mirrors
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ohhdc
Source: https://github.com/eclipse-oniro-mirrors/napi_generator/tree/main/src/skills/ohhdc
Command: npx skills add https://github.com/eclipse-oniro-mirrors/napi_generator --skill ohhdc-eclipse-oniro-mirrors

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OpenHarmony device management via HDC is fragmented; this skill unifies discovery, installation, and testing of HAPs.

Core Features & Use Cases

  • List installed HAPs on a connected device.
  • Install, uninstall, replace-install, and install-project HAPs.
  • Deploy and run tests with auto-discovery of suites and optional timeout.
  • View device logs (hilog) and fault logs for debugging.
  • Inspect foreground/running apps and control them (start/stop).

Quick Start

Run the ohhdc script to list installed HAPs, install or uninstall a HAP, install a project, deploy tests, view logs, and control apps on a connected OpenHarmony device.

Frequently Asked Questions about ohhdc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate OpenHarmony HAP installation and uninstalling on a connected device?

Automate OpenHarmony HAP lifecycle management by using this skill to install, uninstall, and replace HAPs on a connected device. It executes multi-step Bash commands to handle the full HAP lifecycle with robust error handling.

What's the best way to deploy and run tests on an OpenHarmony device?

Deploy and run OpenHarmony tests by using this skill's auto-discovery feature for test suites. It manages the deployment process and supports optional timeout configurations during execution.

Can I view hilog and fault logs from an OpenHarmony device for debugging?

You can view OpenHarmony device logs for debugging by using this skill. It retrieves both standard hilog outputs and fault logs from the connected device to help troubleshoot issues.

Does this HDC tool support listing installed HAPs and controlling running apps?

This HDC tool supports listing installed HAPs on a connected OpenHarmony device. It also inspects foreground and running apps, allowing you to start and stop them as needed.

How do I install a project with multiple HAPs to an OpenHarmony device?

Install an OpenHarmony project with multiple HAPs by using the install-project feature of this skill. It sources your user environment and manages the multi-step deployment flow to the connected device.