harmony 鸿蒙deviceinfo.h

  • 2025-06-12
  • 浏览 (5)

deviceinfo.h

Overview

Declares the APIs for querying device information.

\@kit BasicServicesKit

Library: libdeviceinfo_ndk.z.so

System capability: SystemCapability.Startup.SystemInfo

Since: 10

Related module: DeviceInfo

Summary

Functions

Name Description
const char * OH_GetDeviceType (void) Obtains the device type.
const char * OH_GetManufacture (void) Obtains the device manufacturer.
const char * OH_GetBrand (void) Obtains the device brand.
const char * OH_GetMarketName (void) Obtains the market name.
const char * OH_GetProductSeries (void) Obtains the product series.
const char * OH_GetProductModel (void) Obtains the product model.
const char * OH_GetSoftwareModel (void) Obtains the software model.
const char * OH_GetHardwareModel (void) Obtains the hardware model.
const char * OH_GetBootloaderVersion (void) Obtains the Bootloader version.
const char * OH_GetAbiList (void) Obtains the application binary interface (ABI) list.
const char * OH_GetSecurityPatchTag (void) Obtains the security patch tag.
const char * OH_GetDisplayVersion (void) Obtains the display version.
const char * OH_GetIncrementalVersion (void) Obtains the incremental version.
const char * OH_GetOsReleaseType (void) Obtains the OS release type.
const char * OH_GetOSFullName (void) Obtains the OS full name.
int OH_GetSdkApiVersion (void) Obtains the SDK API version.
int OH_GetFirstApiVersion (void) Obtains the first API version.
const char * OH_GetVersionId (void) Obtains the version ID.
const char * OH_GetBuildType (void) Obtains the build type.
const char * OH_GetBuildUser (void) Obtains the build user.
const char * OH_GetBuildHost (void) Obtains the build host.
const char * OH_GetBuildTime (void) Obtains the build time.
const char * OH_GetBuildRootHash (void) Obtains the build root hash.
const char * OH_GetDistributionOSName (void) Obtains the ISV distribution OS name. Independent software vendors (ISVs) can use their own OS names.
const char * OH_GetDistributionOSVersion (void) Obtains the ISV distribution OS version.
int OH_GetDistributionOSApiVersion (void) Obtains the ISV distribution OS API version.
const char * OH_GetDistributionOSReleaseType (void) Obtains the ISV distribution OS release type.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Basic Services Kit

harmony 鸿蒙DeviceInfo

harmony 鸿蒙InitSync

harmony 鸿蒙OH_Print

harmony 鸿蒙OsAccount

harmony 鸿蒙Pasteboard

harmony 鸿蒙Print_Margin

harmony 鸿蒙Print_PageSize

harmony 鸿蒙Print_PrintAttributes

harmony 鸿蒙Print_PrintDocCallback

0  赞