1/* 2 * Copyright (c) 2021 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 16/** 17 * A static class pertaining to the product information. 18 * 19 * @devices phone, tablet 20 * @since 6 21 * @Syscap SystemCapability.Startup.SysInfo 22 */ 23declare namespace deviceInfo { 24 /** 25 * Obtains the device type represented by a string, 26 * which can be {@code phone} (or {@code default} for phones), {@code wearable}, {@code liteWearable}, 27 * {@code tablet}, {@code tv}, {@code car}, or {@code smartVision}. 28 * 29 * @since 6 30 */ 31 const deviceType: string; 32 33 /** 34 * Obtains the device manufacturer represented by a string. 35 * 36 * @since 6 37 */ 38 const manufacture: string; 39 40 /** 41 * Obtains the device brand represented by a string. 42 * 43 * @since 6 44 */ 45 const brand: string; 46 47 /** 48 * Obtains the external product series represented by a string. 49 * 50 * @since 6 51 */ 52 const marketName: string; 53 54 /** 55 * Obtains the product series represented by a string. 56 * 57 * @since 6 58 */ 59 const productSeries: string; 60 61 /** 62 * Obtains the product model represented by a string. 63 * 64 * @since 6 65 */ 66 const productModel: string; 67 68 /** 69 * Obtains the software model represented by a string. 70 * 71 * @since 6 72 */ 73 const softwareModel: string; 74 75 /** 76 * Obtains the hardware model represented by a string. 77 * 78 * @since 6 79 */ 80 const hardwareModel: string; 81 82 /** 83 * Obtains the hardware profile represented by a string. 84 * 85 * @since 6 86 */ 87 const hardwareProfile: string; 88 89 /** 90 * Obtains the device serial number represented by a string. 91 * 92 * @since 6 93 */ 94 const serial: string; 95 96 /** 97 * Obtains the bootloader version number represented by a string. 98 * 99 * @since 6 100 */ 101 const bootloaderVersion: string; 102 103 /** 104 * Obtains the application binary interface (Abi) list represented by a string. 105 * 106 * @since 6 107 */ 108 const abiList: string; 109 110 /** 111 * Obtains the security patch level represented by a string. 112 * 113 * @since 6 114 */ 115 const securityPatchTag: string; 116 117 /** 118 * Obtains the product version represented by a string. 119 * 120 * @since 6 121 */ 122 const displayVersion: string; 123 124 /** 125 * Obtains the incremental version represented by a string. 126 * 127 * @since 6 128 */ 129 const incrementalVersion: string; 130 131 /** 132 * Obtains the OS release type represented by a string. 133 * 134 * <p>The OS release category can be {@code Release}, {@code Beta}, or {@code Canary}. 135 * The specific release type may be {@code Release}, {@code Beta1}, or others alike. 136 * 137 * @since 6 138 */ 139 const osReleaseType: string; 140 141 /** 142 * Obtains the OS version represented by a string. 143 * 144 * @since 6 145 */ 146 const osFullName: string; 147 148 /** 149 * Obtains the major (M) version number, which increases with any updates to the overall architecture. 150 * <p>The M version number monotonically increases from 1 to 99. 151 * 152 * @since 6 153 */ 154 const majorVersion: number; 155 156 /** 157 * Obtains the senior (S) version number, which increases with any updates to the partial 158 * architecture or major features. 159 * <p>The S version number monotonically increases from 0 to 99. 160 * 161 * @since 6 162 */ 163 const seniorVersion: number; 164 165 /** 166 * Obtains the feature (F) version number, which increases with any planned new features. 167 * <p>The F version number monotonically increases from 0 or 1 to 99. 168 * 169 * @since 6 170 */ 171 const featureVersion: number; 172 173 /** 174 * Obtains the build (B) version number, which increases with each new development build. 175 * <p>The B version number monotonically increases from 0 or 1 to 999. 176 * 177 * @since 6 178 */ 179 const buildVersion: number; 180 181 /** 182 * Obtains the SDK API version number. 183 * 184 * @since 6 185 */ 186 const sdkApiVersion: number; 187 188 /** 189 * Obtains the first API version number. 190 * 191 * @since 6 192 */ 193 const firstApiVersion: number; 194 195 /** 196 * Obtains the version ID by a string. 197 * 198 * @since 6 199 */ 200 const versionId: string; 201 202 /** 203 * Obtains the build types of the same baseline code. 204 * 205 * @since 6 206 */ 207 const buildType: string; 208 209 /** 210 * Obtains the different build user of the same baseline code. 211 * 212 * @since 6 213 */ 214 const buildUser: string; 215 216 /** 217 * Obtains the different build host of the same baseline code. 218 * 219 * @since 6 220 */ 221 const buildHost: string; 222 223 /** 224 * Obtains the build time. 225 * 226 * @since 6 227 */ 228 const buildTime: string; 229 230 /** 231 * Obtains the version hash. 232 * 233 * @since 6 234 */ 235 const buildRootHash: string; 236} 237 238export default deviceInfo; 239