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 1.0.1"}; 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 HalGetDeviceType(void)33const char* HalGetDeviceType(void) 34 { 35 return OHOS_DEVICE_TYPE; 36 } 37 HalGetManufacture(void)38const char* HalGetManufacture(void) 39 { 40 return OHOS_MANUFACTURE; 41 } 42 HalGetBrand(void)43const char* HalGetBrand(void) 44 { 45 return OHOS_BRAND; 46 } 47 HalGetMarketName(void)48const char* HalGetMarketName(void) 49 { 50 return OHOS_MARKET_NAME; 51 } 52 HalGetProductSeries(void)53const char* HalGetProductSeries(void) 54 { 55 return OHOS_PRODUCT_SERIES; 56 } 57 HalGetProductModel(void)58const char* HalGetProductModel(void) 59 { 60 return OHOS_PRODUCT_MODEL; 61 } 62 HalGetSoftwareModel(void)63const char* HalGetSoftwareModel(void) 64 { 65 return OHOS_SOFTWARE_MODEL; 66 } 67 HalGetHardwareModel(void)68const char* HalGetHardwareModel(void) 69 { 70 return OHOS_HARDWARE_MODEL; 71 } 72 HalGetHardwareProfile(void)73const char* HalGetHardwareProfile(void) 74 { 75 return OHOS_HARDWARE_PROFILE; 76 } 77 HalGetSerial(void)78const char* HalGetSerial(void) 79 { 80 return OHOS_SERIAL; 81 } 82 HalGetBootloaderVersion(void)83const char* HalGetBootloaderVersion(void) 84 { 85 return OHOS_BOOTLOADER_VERSION; 86 } 87 HalGetAbiList(void)88const char* HalGetAbiList(void) 89 { 90 return OHOS_ABI_LIST; 91 } 92 HalGetDisplayVersion(void)93const char* HalGetDisplayVersion(void) 94 { 95 return OHOS_DISPLAY_VERSION; 96 } 97 HalGetIncrementalVersion(void)98const char* HalGetIncrementalVersion(void) 99 { 100 return INCREMENTAL_VERSION; 101 } 102 HalGetBuildType(void)103const char* HalGetBuildType(void) 104 { 105 return BUILD_TYPE; 106 } 107 HalGetBuildUser(void)108const char* HalGetBuildUser(void) 109 { 110 return BUILD_USER; 111 } 112 HalGetBuildHost(void)113const char* HalGetBuildHost(void) 114 { 115 return BUILD_HOST; 116 } 117 HalGetBuildTime(void)118const char* HalGetBuildTime(void) 119 { 120 return BUILD_TIME; 121 } 122 HalGetFirstApiVersion(void)123int HalGetFirstApiVersion(void) 124 { 125 return OHOS_FIRST_API_VERSION; 126 } 127