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