#open-harmony #harmony-os #ffi #deviceinfo

ohos-deviceinfo

Bindings to OpenHarmony APIs providing information about the device

1 unstable release

new 0.1.0 Mar 6, 2025

#483 in Hardware support

Apache-2.0

14KB
147 lines

OpenHarmony Device Info

This crate provides a thin wrapper around the deviceinfo library on OpenHarmony OS. It allows querying basic information about the device, e.g. type and model, as well as version information about the OS.

License

This crate is licensed under the Apache-2.0 license, matching the OpenHarmony OS SDK.


lib.rs:

Provides information about the local device on OpenHarmony OS

It allows querying basic information about the device, e.g. type and model, as well as version information about the OS. Since this Library is specific to OpenHarmony devices, it is empty on other platforms.

Required System Capabilities: SystemCapability.Startup.SystemInfo

Dependencies