• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# @ohos.deviceInfo
2
3The **deviceInfo** module provides product information.
4
5> **NOTE**<br>
6> The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
7
8## Modules to Import
9
10```ts
11import deviceInfo from '@ohos.deviceInfo'
12```
13
14## Attributes
15
16**System capability**: SystemCapability.Startup.SystemInfo
17
18| Name| Type| Readable| Writable| Description|
19| -------- | -------- | -------- | -------- | -------- |
20| deviceType | string | Yes| No| Device type.|
21| manufacture | string | Yes| No| Device manufacturer.|
22| brand | string | Yes| No| Device brand.|
23| marketName | string | Yes| No| Marketing name.|
24| productSeries | string | Yes| No| Product series.|
25| productModel | string | Yes| No| Product model.|
26| softwareModel | string | Yes| No| Software model.|
27| hardwareModel | string | Yes| No| Hardware model.|
28| hardwareProfile | string | Yes| No| Hardware profile.|
29| serial | string | Yes| No| Device serial number.<br>**Required permissions**: ohos.permission.sec.ACCESS_UDID (a system permission)|
30| bootloaderVersion | string | Yes| No| Bootloader version.|
31| abiList | string | Yes| No| Application binary interface (Abi) list.|
32| securityPatchTag | string | Yes| No| Security patch tag.|
33| displayVersion | string | Yes| No| Product version.|
34| incrementalVersion | string | Yes| No| Incremental version.|
35| osReleaseType | string | Yes| No| OS release type. The options are as follows:<br>- **Canary**: Preliminary release open only to specific developers. This release does not promise API stability and may require tolerance of instability.<br>- **Beta**: Release open to all developers. This release does not promise API stability and may require tolerance of instability.<br>- **Release**: Official release open to all developers. This release promises that all APIs are stable.|
36| osFullName | string | Yes| No| OS version.|
37| majorVersion | number | Yes| No| Major version, incrementing along with OS version updates.|
38| seniorVersion | number | Yes| No| Senior version, incrementing along with architecture and feature updates.|
39| featureVersion | number | Yes| No| Feature version.|
40| buildVersion | number | Yes| No| Build version.|
41| sdkApiVersion | number | Yes| No| SDK API version.|
42| firstApiVersion | number | Yes| No| First API version.|
43| versionId | string | Yes| No| Version ID.|
44| buildType | string | Yes| No| Build type.|
45| buildUser | string | Yes| No| Build user.|
46| buildHost | string | Yes| No| Build host.|
47| buildTime | string | Yes| No| Build time.|
48| buildRootHash | string | Yes| No| Build root hash.|
49| udid<sup>7+</sup> | string | Yes| No| Device UDID.<br>**Required permissions**: ohos.permission.sec.ACCESS_UDID (a system permission)|
50