• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2025 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15@!namespace("@ohos.deviceInfo")
16
17@!sts_inject("""
18loadLibrary("deviceInfo_taihe_native.z")
19""")
20
21@class
22interface deviceInfo {
23}
24@static("deviceInfo") @get
25function getbrand(): String;
26@static("deviceInfo") @get
27function getdeviceType(): String;
28@static("deviceInfo") @get
29function getproductSeries(): String;
30@static("deviceInfo") @get
31function getproductModel(): String;
32@static("deviceInfo") @get("ODID")
33function getODID(): String;
34@static("deviceInfo") @get
35function getudid(): String;
36@static("deviceInfo") @get
37function getserial(): String;
38@static("deviceInfo") @get
39function getmanufacture(): String;
40@static("deviceInfo") @get
41function getmarketName(): String;
42@static("deviceInfo") @get
43function getproductModelAlias(): String;
44@static("deviceInfo") @get
45function getsoftwareModel(): String;
46@static("deviceInfo") @get
47function gethardwareModel(): String;
48@static("deviceInfo") @get
49function getbootloaderVersion(): String;
50@static("deviceInfo") @get
51function getabiList(): String;
52@static("deviceInfo") @get
53function getsecurityPatchTag(): String;
54@static("deviceInfo") @get
55function getdisplayVersion(): String;
56@static("deviceInfo") @get
57function getincrementalVersion(): String;
58@static("deviceInfo") @get
59function getosReleaseType(): String;
60@static("deviceInfo") @get
61function getosFullName(): String;
62@static("deviceInfo") @get
63function getversionId(): String;
64@static("deviceInfo") @get
65function getbuildType(): String;
66@static("deviceInfo") @get
67function getbuildUser(): String;
68@static("deviceInfo") @get
69function getbuildHost(): String;
70@static("deviceInfo") @get
71function getbuildTime(): String;
72@static("deviceInfo") @get
73function getbuildRootHash(): String;
74@static("deviceInfo") @get
75function getdistributionOSName(): String;
76@static("deviceInfo") @get
77function getdistributionOSVersion(): String;
78@static("deviceInfo") @get
79function getdistributionOSApiName(): String;
80@static("deviceInfo") @get
81function getdistributionOSReleaseType(): String;
82@static("deviceInfo") @get
83function getdiskSN(): String;
84
85@static("deviceInfo") @get
86function getsdkApiVersion(): i32;
87@static("deviceInfo") @get
88function getmajorVersion(): i32;
89@static("deviceInfo") @get
90function getseniorVersion(): i32;
91@static("deviceInfo") @get
92function getfeatureVersion(): i32;
93@static("deviceInfo") @get
94function getbuildVersion(): i32;
95@static("deviceInfo") @get
96function getfirstApiVersion(): i32;
97@static("deviceInfo") @get
98function getdistributionOSApiVersion(): i32;