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.