1 Star 0 Fork 5.1K

youguilin / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
device-information.md 43.74 KB
一键复制 编辑 原始数据 按行查看 历史
mamingshuai 提交于 2021-06-02 01:00 . update OpenHarmony 2.0 Canary

Device Information

Modules to Import

import deviceinfo from '@ohos.deviceinfo'

Required Permissions

None

Attributes

Name

Type

Readable

Writable

Description

deviceType

string

Yes

No

Device type

manufacture

string

Yes

No

Device manufacturer

brand

string

Yes

No

Device brand

marketName

string

Yes

No

External product series

productSeries

string

Yes

No

Product series

productModel

string

Yes

No

Product model

softwareModel

string

Yes

No

Software model

hardwareModel

string

Yes

No

Hardware model

hardwareProfile

string

Yes

No

Hardware profile

serial

string

Yes

No

Device serial number

bootloaderVersion

string

Yes

No

Bootloader version

abiList

string

Yes

No

Application binary interface (Abi) list

securityPatchTag

string

Yes

No

Security patch tag

displayVersion

string

Yes

No

Product version

incrementalVersion

string

Yes

No

Incremental version

osReleaseType

string

Yes

No

Release type. The options are as follows:

  • Canary: Preliminary release open only to specific developers. This release does not promise API stability and may require tolerance of instability.
  • Beta: Release open to all developers. This release does not promise API stability and may require tolerance of instability.
  • Release: Official release open to all developers. This release promises that all APIs are stable.

osFullName

string

Yes

No

OS version

majorVersion

number

Yes

No

Major version, incrementing along with OS version updates

seniorVersion

number

Yes

No

Senior version, incrementing along with architecture and feature updates

featureVersion

number

Yes

No

Feature version

buildVersion

number

Yes

No

Build version

sdkApiVersion

number

Yes

No

SDK API version

firstApiVersion

number

Yes

No

First API version

versionId

string

Yes

No

Version ID

buildType

string

Yes

No

Build type

buildUser

string

Yes

No

Build user

buildHost

string

Yes

No

Build host

buildTime

string

Yes

No

Build time

buildRootHash

string

Yes

No

Build root hash

1
https://gitee.com/yougl/docs.git
git@gitee.com:yougl/docs.git
yougl
docs
docs
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891