1 /* 2 * Copyright (c) 2021 Bestechnic (Shanghai) Co., Ltd. All rights reserved. 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 #define OHOS_DEVICE_TYPE "liteWearable" 19 #define OHOS_DISPLAY_VERSION "OpenHarmony-2.2-Beta2" 20 #define OHOS_MANUFACTURE "Bestechnic" 21 #define OHOS_BRAND "Bestechnic" 22 #define OHOS_MARKET_NAME "****" 23 #define OHOS_PRODUCT_SERIES "****" 24 #define OHOS_PRODUCT_MODEL "****" 25 #define OHOS_SOFTWARE_MODEL "****" 26 #define OHOS_HARDWARE_MODEL "bes2600w" 27 #define OHOS_HARDWARE_PROFILE "aout:true,display:true" 28 #define OHOS_BOOTLOADER_VERSION "bootloader" 29 #define OHOS_ABI_LIST "****" 30 #define OHOS_SERIAL "1234567890" 31 #define 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 128 /** 129 * @brief implement for js kvstorekit/filekit 130 */ GetDataPath()131const char *GetDataPath() 132 { 133 return "/data"; 134 } 135