目录

Running a Lite Wearable App via the Simulator

The Simulator provided by DevEco Studio can run and debug HarmonyOS apps on lite wearables, supporting both signed and unsigned HAPs.

Procedure

  1. Select Huawei Lite Wearable Simulator from the device dropdown in the upper-right corner of DevEco Studio.

  2. Click Run or Debug . In the dialog box displayed, set the device shape and resolution, and click OK to run or debug the app.

  3. DevEco Studio begins compilation, building, and installation. Upon completion, the app can run on the Simulator.

Supported Features

In the Simulator screen, click More above the device to expand additional features.

[h2]Screen

[h2]Sensor

The Simulator provides virtual sensors to emulate hardware capabilities. On this page, you can adjust various sensors to test your app. Use the @system.sensor module to listen for changes in sensor values and the @system.geolocation module to listen for geographic location changes. The following virtual sensors are available:

[h2]Battery

The Simulator allows you to simulate different battery states, including three charging states. You can also change the battery level manually by entering a value or dragging the slider. In your app, use the @system.battery module to query the simulated device's battery level and charging state.
  • Not charging
  • Charging
  • Wireless charging

[h2]Device Settings

You can change the device's language and region. This is only supported in run mode, not in debug mode.

[h2]Debugging