Expand description
OpenHarmony functions providing device information.
See also the official DeviceInfo documentation.
Functions§
- OH_
GetAbi ⚠List - Obtains the application binary interface (Abi) list represented by a string.
- OH_
GetBootloader ⚠Version - Obtains the bootloader version number represented by a string.
- OH_
GetBrand ⚠ - Obtains the device brand represented by a string.
- OH_
GetBuild ⚠Host - Obtains the build host of the current running OS.
- OH_
GetBuild ⚠Root Hash - Obtains the version hash of the current running OS.
- OH_
GetBuild ⚠Time - Obtains the build time of the current running OS.
- OH_
GetBuild ⚠Type - Obtains the build type of the current running OS.
- OH_
GetBuild ⚠User - Obtains the build user of the current running OS.
- OH_
GetDevice ⚠Type - Obtains the device type represented by a string,
which can be
phone
(ordefault
for phones),wearable
,liteWearable
,tablet
,tv
,car
, orsmartVision
. - OH_
GetDisplay ⚠Version - Obtains the product version displayed for customer represented by a string.
- OH_
GetDistributionOS ⚠ApiVersion - Obtains the ISV distribution OS api version represented by a integer. If ISV not specified, it will return the same value as OH_GetSdkApiVersion
- OH_
GetDistributionOS ⚠Name - Obtains the Distribution OS name represented by a string.
- OH_
GetDistributionOS ⚠Release Type - Obtains the ISV distribution OS release type represented by a string. If ISV not specified, it will return the same value as OH_GetOsReleaseType
- OH_
GetDistributionOS ⚠Version - Obtains the ISV distribution OS version represented by a string. If ISV not specified, it will return the same value as OH_GetOSFullName
- OH_
GetFirst ⚠ApiVersion - Obtains the first API version number.
- OH_
GetHardware ⚠Model - Obtains the hardware model represented by a string.
- OH_
GetIncremental ⚠Version - Obtains the incremental version represented by a string.
- OH_
GetManufacture ⚠ - Obtains the device manufacturer represented by a string.
- OH_
GetMarket ⚠Name - Obtains the product name speaded in the market
- OH_
GetOS ⚠Full Name - Obtains the OS full version name represented by a string.
- OH_
GetOs ⚠Release Type - Obtains the OS release type represented by a string.
- OH_
GetProduct ⚠Model - Obtains the product model represented by a string.
- OH_
GetProduct ⚠Series - Obtains the product series represented by a string.
- OH_
GetSdk ⚠ApiVersion - Obtains the SDK API version number.
- OH_
GetSecurity ⚠Patch Tag - Obtains the security patch tag represented by a string.
- OH_
GetSoftware ⚠Model - Obtains the software model represented by a string.
- OH_
GetVersion ⚠Id - Obtains the version ID by a string.