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