• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020-2022 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 #include "hal_sys_param.h"
16 
17 static const char OHOS_ABI_LIST[] = {"****"};
18 static const char OHOS_BOOTLOADER_VERSION[] = {"bootloader"};
19 static const char OHOS_BRAND[] = {"****"};
20 static const char OHOS_DEVICE_TYPE[] = {"****"};
21 static const char OHOS_DISPLAY_VERSION[] = {"OpenHarmony 3.1"};
22 static const char OHOS_HARDWARE_MODEL[] = {"****"};
23 static const char OHOS_HARDWARE_PROFILE[] = {"aout:true,display:true"};
24 static const char OHOS_MARKET_NAME[] = {"****"};
25 static const char OHOS_MANUFACTURE[] = {"****"};
26 static const char OHOS_PRODUCT_MODEL[] = {"****"};
27 static const char OHOS_PRODUCT_SERIES[] = {"****"};
28 static const char OHOS_SERIAL[] = {"****"};  // provided by OEM.
29 static const char OHOS_SOFTWARE_MODEL[] = {"****"};
30 static const int OHOS_FIRST_API_VERSION = 1;
31 
HalGetDeviceType(void)32 __attribute__((weak)) const char* HalGetDeviceType(void)
33 {
34     return OHOS_DEVICE_TYPE;
35 }
36 
HalGetManufacture(void)37 __attribute__((weak)) const char* HalGetManufacture(void)
38 {
39     return OHOS_MANUFACTURE;
40 }
41 
HalGetBrand(void)42 __attribute__((weak)) const char* HalGetBrand(void)
43 {
44     return OHOS_BRAND;
45 }
46 
HalGetMarketName(void)47 __attribute__((weak)) const char* HalGetMarketName(void)
48 {
49     return OHOS_MARKET_NAME;
50 }
51 
HalGetProductSeries(void)52 __attribute__((weak)) const char* HalGetProductSeries(void)
53 {
54     return OHOS_PRODUCT_SERIES;
55 }
56 
HalGetProductModel(void)57 __attribute__((weak)) const char* HalGetProductModel(void)
58 {
59     return OHOS_PRODUCT_MODEL;
60 }
61 
HalGetSoftwareModel(void)62 __attribute__((weak)) const char* HalGetSoftwareModel(void)
63 {
64     return OHOS_SOFTWARE_MODEL;
65 }
66 
HalGetHardwareModel(void)67 __attribute__((weak)) const char* HalGetHardwareModel(void)
68 {
69     return OHOS_HARDWARE_MODEL;
70 }
71 
HalGetHardwareProfile(void)72 __attribute__((weak)) const char* HalGetHardwareProfile(void)
73 {
74     return OHOS_HARDWARE_PROFILE;
75 }
76 
HalGetSerial(void)77 __attribute__((weak)) const char* HalGetSerial(void)
78 {
79     return OHOS_SERIAL;
80 }
81 
HalGetBootloaderVersion(void)82 __attribute__((weak)) const char* HalGetBootloaderVersion(void)
83 {
84     return OHOS_BOOTLOADER_VERSION;
85 }
86 
HalGetAbiList(void)87 __attribute__((weak)) const char* HalGetAbiList(void)
88 {
89     return OHOS_ABI_LIST;
90 }
91 
HalGetDisplayVersion(void)92 __attribute__((weak)) const char* HalGetDisplayVersion(void)
93 {
94     return OHOS_DISPLAY_VERSION;
95 }
96 
HalGetIncrementalVersion(void)97 __attribute__((weak)) const char* HalGetIncrementalVersion(void)
98 {
99     return INCREMENTAL_VERSION;
100 }
101 
HalGetBuildType(void)102 __attribute__((weak)) const char* HalGetBuildType(void)
103 {
104     return BUILD_TYPE;
105 }
106 
HalGetBuildUser(void)107 __attribute__((weak)) const char* HalGetBuildUser(void)
108 {
109     return BUILD_USER;
110 }
111 
HalGetBuildHost(void)112 __attribute__((weak)) const char* HalGetBuildHost(void)
113 {
114     return BUILD_HOST;
115 }
116 
HalGetBuildTime(void)117 __attribute__((weak)) const char* HalGetBuildTime(void)
118 {
119     return BUILD_TIME;
120 }
121 
HalGetFirstApiVersion(void)122 __attribute__((weak)) int HalGetFirstApiVersion(void)
123 {
124     return OHOS_FIRST_API_VERSION;
125 }