hmos-multidevice-hardware-access

Official

Unify hardware capability checks and safe fallbacks.

Authoropenharmonyinsight
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill solves the problem of HarmonyOS apps crashing or behaving incorrectly across devices when hardware capabilities differ, especially for camera, sensors, and external device access.

Core Features & Use Cases

  • Declarative hardware-adaptation planning: produces a structured plan covering primary scene routing, device constraints, and explicit non-support degradation behavior.
  • Camera adaptation for multi-device & foldable behaviors: handles camera enumeration, foldStatus-driven camera re-initialization, preview/capture/rotation correctness, and stride-safe frame processing to prevent black screens and visual artifacts.
  • Sensor and external device lifecycle correctness: ensures canIUse + SysCap/module.json5 checks, subscription/unsubscription lifecycles, and reconnect/heat-plug state refresh strategies.
  • Use case: A foldable-camera app shows a black preview after fold/expand and photos rotate incorrectly; use this skill to generate a fix plan that links capability checks (HW-01) with camera rebuild and rotation validation (HW-02).

Quick Start

Use the hmos-multidevice-hardware-access skill to produce a device-conditional adaptation plan and a verification matrix for your camera/sensor/external-device scenario.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: hmos-multidevice-hardware-access
Download link: https://github.com/openharmonyinsight/openharmony-skills/archive/main.zip#hmos-multidevice-hardware-access

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.