10e98b08fSopenharmony_ci/* 20e98b08fSopenharmony_ci * Copyright (c) 2020 Huawei Device Co., Ltd. 30e98b08fSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 40e98b08fSopenharmony_ci * you may not use this file except in compliance with the License. 50e98b08fSopenharmony_ci * You may obtain a copy of the License at 60e98b08fSopenharmony_ci * 70e98b08fSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 80e98b08fSopenharmony_ci * 90e98b08fSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 100e98b08fSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 110e98b08fSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 120e98b08fSopenharmony_ci * See the License for the specific language governing permissions and 130e98b08fSopenharmony_ci * limitations under the License. 140e98b08fSopenharmony_ci */ 150e98b08fSopenharmony_ci 160e98b08fSopenharmony_ci#include <string> 170e98b08fSopenharmony_ci#include <new> 180e98b08fSopenharmony_ci#include "global.h" 190e98b08fSopenharmony_ci#include "nativeapi_common.h" 200e98b08fSopenharmony_ci#include "nativeapi_config.h" 210e98b08fSopenharmony_ci#include "parameter.h" 220e98b08fSopenharmony_ci#include "sysversion.h" 230e98b08fSopenharmony_ci 240e98b08fSopenharmony_cistatic constexpr int MAX_BUFFER = 65; 250e98b08fSopenharmony_cinamespace OHOS { 260e98b08fSopenharmony_cinamespace ACELite { 270e98b08fSopenharmony_ciJSIValue JSGetDeviceType(void) 280e98b08fSopenharmony_ci{ 290e98b08fSopenharmony_ci const char *value = GetDeviceType(); 300e98b08fSopenharmony_ci if (value == nullptr) { 310e98b08fSopenharmony_ci value = ""; 320e98b08fSopenharmony_ci } 330e98b08fSopenharmony_ci 340e98b08fSopenharmony_ci JSIValue deviceType = JSI::CreateString(value); 350e98b08fSopenharmony_ci return deviceType; 360e98b08fSopenharmony_ci} 370e98b08fSopenharmony_ci 380e98b08fSopenharmony_ciJSIValue JSGetManufacture(void) 390e98b08fSopenharmony_ci{ 400e98b08fSopenharmony_ci const char *value = GetManufacture(); 410e98b08fSopenharmony_ci if (value == nullptr) { 420e98b08fSopenharmony_ci value = ""; 430e98b08fSopenharmony_ci } 440e98b08fSopenharmony_ci 450e98b08fSopenharmony_ci JSIValue manfactureName = JSI::CreateString(value); 460e98b08fSopenharmony_ci return manfactureName; 470e98b08fSopenharmony_ci} 480e98b08fSopenharmony_ci 490e98b08fSopenharmony_ciJSIValue JSGetBrand(void) 500e98b08fSopenharmony_ci{ 510e98b08fSopenharmony_ci const char *value = GetBrand(); 520e98b08fSopenharmony_ci if (value == nullptr) { 530e98b08fSopenharmony_ci value = ""; 540e98b08fSopenharmony_ci } 550e98b08fSopenharmony_ci 560e98b08fSopenharmony_ci JSIValue productBrand = JSI::CreateString(value); 570e98b08fSopenharmony_ci return productBrand; 580e98b08fSopenharmony_ci} 590e98b08fSopenharmony_ci 600e98b08fSopenharmony_ciJSIValue JSGetMarketName(void) 610e98b08fSopenharmony_ci{ 620e98b08fSopenharmony_ci const char *value = GetMarketName(); 630e98b08fSopenharmony_ci if (value == nullptr) { 640e98b08fSopenharmony_ci value = ""; 650e98b08fSopenharmony_ci } 660e98b08fSopenharmony_ci 670e98b08fSopenharmony_ci JSIValue marketName = JSI::CreateString(value); 680e98b08fSopenharmony_ci return marketName; 690e98b08fSopenharmony_ci} 700e98b08fSopenharmony_ci 710e98b08fSopenharmony_ciJSIValue JSGetProductSeries(void) 720e98b08fSopenharmony_ci{ 730e98b08fSopenharmony_ci const char *value = GetProductSeries(); 740e98b08fSopenharmony_ci if (value == nullptr) { 750e98b08fSopenharmony_ci value = ""; 760e98b08fSopenharmony_ci } 770e98b08fSopenharmony_ci 780e98b08fSopenharmony_ci JSIValue productSeries = JSI::CreateString(value); 790e98b08fSopenharmony_ci return productSeries; 800e98b08fSopenharmony_ci} 810e98b08fSopenharmony_ci 820e98b08fSopenharmony_ciJSIValue JSGetProductModel(void) 830e98b08fSopenharmony_ci{ 840e98b08fSopenharmony_ci const char *value = GetProductModel(); 850e98b08fSopenharmony_ci if (value == nullptr) { 860e98b08fSopenharmony_ci value = ""; 870e98b08fSopenharmony_ci } 880e98b08fSopenharmony_ci 890e98b08fSopenharmony_ci JSIValue productModel = JSI::CreateString(value); 900e98b08fSopenharmony_ci return productModel; 910e98b08fSopenharmony_ci} 920e98b08fSopenharmony_ci 930e98b08fSopenharmony_ciJSIValue JSGetSoftwareModel(void) 940e98b08fSopenharmony_ci{ 950e98b08fSopenharmony_ci const char *value = GetSoftwareModel(); 960e98b08fSopenharmony_ci if (value == nullptr) { 970e98b08fSopenharmony_ci value = ""; 980e98b08fSopenharmony_ci } 990e98b08fSopenharmony_ci 1000e98b08fSopenharmony_ci JSIValue softwareModel = JSI::CreateString(value); 1010e98b08fSopenharmony_ci return softwareModel; 1020e98b08fSopenharmony_ci} 1030e98b08fSopenharmony_ci 1040e98b08fSopenharmony_ciJSIValue JSGetHardwareModel(void) 1050e98b08fSopenharmony_ci{ 1060e98b08fSopenharmony_ci const char *value = GetHardwareModel(); 1070e98b08fSopenharmony_ci if (value == nullptr) { 1080e98b08fSopenharmony_ci value = ""; 1090e98b08fSopenharmony_ci } 1100e98b08fSopenharmony_ci 1110e98b08fSopenharmony_ci JSIValue hardwareModel = JSI::CreateString(value); 1120e98b08fSopenharmony_ci return hardwareModel; 1130e98b08fSopenharmony_ci} 1140e98b08fSopenharmony_ci 1150e98b08fSopenharmony_ciJSIValue JSGetHardwareProfile(void) 1160e98b08fSopenharmony_ci{ 1170e98b08fSopenharmony_ci const char *value = GetHardwareProfile(); 1180e98b08fSopenharmony_ci if (value == nullptr) { 1190e98b08fSopenharmony_ci value = ""; 1200e98b08fSopenharmony_ci } 1210e98b08fSopenharmony_ci 1220e98b08fSopenharmony_ci JSIValue hardwareProfile = JSI::CreateString(value); 1230e98b08fSopenharmony_ci return hardwareProfile; 1240e98b08fSopenharmony_ci} 1250e98b08fSopenharmony_ci 1260e98b08fSopenharmony_ciJSIValue JSGetSerial(void) 1270e98b08fSopenharmony_ci{ 1280e98b08fSopenharmony_ci const char *value = GetSerial(); 1290e98b08fSopenharmony_ci if (value == nullptr) { 1300e98b08fSopenharmony_ci value = ""; 1310e98b08fSopenharmony_ci } 1320e98b08fSopenharmony_ci 1330e98b08fSopenharmony_ci JSIValue serialNumber = JSI::CreateString(value); 1340e98b08fSopenharmony_ci return serialNumber; 1350e98b08fSopenharmony_ci} 1360e98b08fSopenharmony_ci 1370e98b08fSopenharmony_ciJSIValue JSGetBootloaderVersion(void) 1380e98b08fSopenharmony_ci{ 1390e98b08fSopenharmony_ci const char *value = GetBootloaderVersion(); 1400e98b08fSopenharmony_ci if (value == nullptr) { 1410e98b08fSopenharmony_ci value = ""; 1420e98b08fSopenharmony_ci } 1430e98b08fSopenharmony_ci 1440e98b08fSopenharmony_ci JSIValue bootloaderVersion = JSI::CreateString(value); 1450e98b08fSopenharmony_ci return bootloaderVersion; 1460e98b08fSopenharmony_ci} 1470e98b08fSopenharmony_ci 1480e98b08fSopenharmony_ciJSIValue JSGetAbiList(void) 1490e98b08fSopenharmony_ci{ 1500e98b08fSopenharmony_ci const char *value = GetAbiList(); 1510e98b08fSopenharmony_ci if (value == nullptr) { 1520e98b08fSopenharmony_ci value = ""; 1530e98b08fSopenharmony_ci } 1540e98b08fSopenharmony_ci 1550e98b08fSopenharmony_ci JSIValue abiList = JSI::CreateString(value); 1560e98b08fSopenharmony_ci return abiList; 1570e98b08fSopenharmony_ci} 1580e98b08fSopenharmony_ci 1590e98b08fSopenharmony_ciJSIValue JSGetSecurityPatchTag(void) 1600e98b08fSopenharmony_ci{ 1610e98b08fSopenharmony_ci const char *value = GetSecurityPatchTag(); 1620e98b08fSopenharmony_ci if (value == nullptr) { 1630e98b08fSopenharmony_ci value = ""; 1640e98b08fSopenharmony_ci } 1650e98b08fSopenharmony_ci 1660e98b08fSopenharmony_ci JSIValue securityPatchTag = JSI::CreateString(value); 1670e98b08fSopenharmony_ci return securityPatchTag; 1680e98b08fSopenharmony_ci} 1690e98b08fSopenharmony_ci 1700e98b08fSopenharmony_ciJSIValue JSGetDisplayVersion(void) 1710e98b08fSopenharmony_ci{ 1720e98b08fSopenharmony_ci const char *value = GetDisplayVersion(); 1730e98b08fSopenharmony_ci if (value == nullptr) { 1740e98b08fSopenharmony_ci value = ""; 1750e98b08fSopenharmony_ci } 1760e98b08fSopenharmony_ci 1770e98b08fSopenharmony_ci JSIValue productVersion = JSI::CreateString(value); 1780e98b08fSopenharmony_ci return productVersion; 1790e98b08fSopenharmony_ci} 1800e98b08fSopenharmony_ci 1810e98b08fSopenharmony_ciJSIValue JSGetIncrementalVersion(void) 1820e98b08fSopenharmony_ci{ 1830e98b08fSopenharmony_ci const char *value = GetIncrementalVersion(); 1840e98b08fSopenharmony_ci if (value == nullptr) { 1850e98b08fSopenharmony_ci value = ""; 1860e98b08fSopenharmony_ci } 1870e98b08fSopenharmony_ci 1880e98b08fSopenharmony_ci JSIValue incrementalVersion = JSI::CreateString(value); 1890e98b08fSopenharmony_ci return incrementalVersion; 1900e98b08fSopenharmony_ci} 1910e98b08fSopenharmony_ci 1920e98b08fSopenharmony_ciJSIValue JSGetOsReleaseType(void) 1930e98b08fSopenharmony_ci{ 1940e98b08fSopenharmony_ci const char *value = GetOsReleaseType(); 1950e98b08fSopenharmony_ci if (value == nullptr) { 1960e98b08fSopenharmony_ci value = ""; 1970e98b08fSopenharmony_ci } 1980e98b08fSopenharmony_ci 1990e98b08fSopenharmony_ci JSIValue osReleaseType = JSI::CreateString(value); 2000e98b08fSopenharmony_ci return osReleaseType; 2010e98b08fSopenharmony_ci} 2020e98b08fSopenharmony_ci 2030e98b08fSopenharmony_ciJSIValue JSGetOSFullName(void) 2040e98b08fSopenharmony_ci{ 2050e98b08fSopenharmony_ci const char *value = GetOSFullName(); 2060e98b08fSopenharmony_ci if (value == nullptr) { 2070e98b08fSopenharmony_ci value = ""; 2080e98b08fSopenharmony_ci } 2090e98b08fSopenharmony_ci JSIValue osVersion = JSI::CreateString(value); 2100e98b08fSopenharmony_ci return osVersion; 2110e98b08fSopenharmony_ci} 2120e98b08fSopenharmony_ci 2130e98b08fSopenharmony_ciJSIValue JSGetMajorVersion(void) 2140e98b08fSopenharmony_ci{ 2150e98b08fSopenharmony_ci int value = GetMajorVersion(); 2160e98b08fSopenharmony_ci JSIValue majorVersion = JSI::CreateUndefined(); 2170e98b08fSopenharmony_ci if (value < 0) { 2180e98b08fSopenharmony_ci return majorVersion; 2190e98b08fSopenharmony_ci } 2200e98b08fSopenharmony_ci 2210e98b08fSopenharmony_ci majorVersion = JSI::CreateString(std::to_string(value).c_str()); 2220e98b08fSopenharmony_ci return majorVersion; 2230e98b08fSopenharmony_ci} 2240e98b08fSopenharmony_ci 2250e98b08fSopenharmony_ciJSIValue JSGetSeniorVersion(void) 2260e98b08fSopenharmony_ci{ 2270e98b08fSopenharmony_ci int value = GetSeniorVersion(); 2280e98b08fSopenharmony_ci JSIValue seniorVersion = JSI::CreateUndefined(); 2290e98b08fSopenharmony_ci if (value < 0) { 2300e98b08fSopenharmony_ci return seniorVersion; 2310e98b08fSopenharmony_ci } 2320e98b08fSopenharmony_ci 2330e98b08fSopenharmony_ci seniorVersion = JSI::CreateString(std::to_string(value).c_str()); 2340e98b08fSopenharmony_ci return seniorVersion; 2350e98b08fSopenharmony_ci} 2360e98b08fSopenharmony_ci 2370e98b08fSopenharmony_ciJSIValue JSGetFeatureVersion(void) 2380e98b08fSopenharmony_ci{ 2390e98b08fSopenharmony_ci int value = GetFeatureVersion(); 2400e98b08fSopenharmony_ci JSIValue featureVersion = JSI::CreateUndefined(); 2410e98b08fSopenharmony_ci if (value < 0) { 2420e98b08fSopenharmony_ci return featureVersion; 2430e98b08fSopenharmony_ci } 2440e98b08fSopenharmony_ci 2450e98b08fSopenharmony_ci featureVersion = JSI::CreateString(std::to_string(value).c_str()); 2460e98b08fSopenharmony_ci return featureVersion; 2470e98b08fSopenharmony_ci} 2480e98b08fSopenharmony_ci 2490e98b08fSopenharmony_ciJSIValue JSGetBuildVersion(void) 2500e98b08fSopenharmony_ci{ 2510e98b08fSopenharmony_ci int value = GetBuildVersion(); 2520e98b08fSopenharmony_ci JSIValue buildVersion = JSI::CreateUndefined(); 2530e98b08fSopenharmony_ci if (value < 0) { 2540e98b08fSopenharmony_ci return buildVersion; 2550e98b08fSopenharmony_ci } 2560e98b08fSopenharmony_ci 2570e98b08fSopenharmony_ci buildVersion = JSI::CreateString(std::to_string(value).c_str()); 2580e98b08fSopenharmony_ci return buildVersion; 2590e98b08fSopenharmony_ci} 2600e98b08fSopenharmony_ci 2610e98b08fSopenharmony_ciJSIValue JSGetSdkApiVersion(void) 2620e98b08fSopenharmony_ci{ 2630e98b08fSopenharmony_ci int value = GetSdkApiVersion(); 2640e98b08fSopenharmony_ci JSIValue sdkApiVersion = JSI::CreateUndefined(); 2650e98b08fSopenharmony_ci if (value < 0) { 2660e98b08fSopenharmony_ci return sdkApiVersion; 2670e98b08fSopenharmony_ci } 2680e98b08fSopenharmony_ci 2690e98b08fSopenharmony_ci sdkApiVersion = JSI::CreateString(std::to_string(value).c_str()); 2700e98b08fSopenharmony_ci return sdkApiVersion; 2710e98b08fSopenharmony_ci} 2720e98b08fSopenharmony_ci 2730e98b08fSopenharmony_ciJSIValue JSGetFirstApiVersion(void) 2740e98b08fSopenharmony_ci{ 2750e98b08fSopenharmony_ci int value = GetFirstApiVersion(); 2760e98b08fSopenharmony_ci JSIValue firstApiVersion = JSI::CreateUndefined(); 2770e98b08fSopenharmony_ci if (value < 0) { 2780e98b08fSopenharmony_ci return firstApiVersion; 2790e98b08fSopenharmony_ci } 2800e98b08fSopenharmony_ci 2810e98b08fSopenharmony_ci firstApiVersion = JSI::CreateString(std::to_string(value).c_str()); 2820e98b08fSopenharmony_ci return firstApiVersion; 2830e98b08fSopenharmony_ci} 2840e98b08fSopenharmony_ci 2850e98b08fSopenharmony_ciJSIValue JSGetVersionId(void) 2860e98b08fSopenharmony_ci{ 2870e98b08fSopenharmony_ci const char *value = GetVersionId(); 2880e98b08fSopenharmony_ci if (value == nullptr) { 2890e98b08fSopenharmony_ci value = ""; 2900e98b08fSopenharmony_ci } 2910e98b08fSopenharmony_ci 2920e98b08fSopenharmony_ci JSIValue versionId = JSI::CreateString(value); 2930e98b08fSopenharmony_ci return versionId; 2940e98b08fSopenharmony_ci} 2950e98b08fSopenharmony_ci 2960e98b08fSopenharmony_ciJSIValue JSGetBuildType(void) 2970e98b08fSopenharmony_ci{ 2980e98b08fSopenharmony_ci const char *value = GetBuildType(); 2990e98b08fSopenharmony_ci if (value == nullptr) { 3000e98b08fSopenharmony_ci value = ""; 3010e98b08fSopenharmony_ci } 3020e98b08fSopenharmony_ci 3030e98b08fSopenharmony_ci JSIValue buildType = JSI::CreateString(value); 3040e98b08fSopenharmony_ci return buildType; 3050e98b08fSopenharmony_ci} 3060e98b08fSopenharmony_ci 3070e98b08fSopenharmony_ciJSIValue JSGetBuildUser(void) 3080e98b08fSopenharmony_ci{ 3090e98b08fSopenharmony_ci const char *value = GetBuildUser(); 3100e98b08fSopenharmony_ci if (value == nullptr) { 3110e98b08fSopenharmony_ci value = ""; 3120e98b08fSopenharmony_ci } 3130e98b08fSopenharmony_ci 3140e98b08fSopenharmony_ci JSIValue buildUser = JSI::CreateString(value); 3150e98b08fSopenharmony_ci return buildUser; 3160e98b08fSopenharmony_ci} 3170e98b08fSopenharmony_ci 3180e98b08fSopenharmony_ciJSIValue JSGetBuildHost(void) 3190e98b08fSopenharmony_ci{ 3200e98b08fSopenharmony_ci const char *value = GetBuildHost(); 3210e98b08fSopenharmony_ci if (value == nullptr) { 3220e98b08fSopenharmony_ci value = ""; 3230e98b08fSopenharmony_ci } 3240e98b08fSopenharmony_ci 3250e98b08fSopenharmony_ci JSIValue buildHost = JSI::CreateString(value); 3260e98b08fSopenharmony_ci return buildHost; 3270e98b08fSopenharmony_ci} 3280e98b08fSopenharmony_ci 3290e98b08fSopenharmony_ciJSIValue JSGetBuildTime(void) 3300e98b08fSopenharmony_ci{ 3310e98b08fSopenharmony_ci const char *value = GetBuildTime(); 3320e98b08fSopenharmony_ci if (value == nullptr) { 3330e98b08fSopenharmony_ci value = ""; 3340e98b08fSopenharmony_ci } 3350e98b08fSopenharmony_ci 3360e98b08fSopenharmony_ci JSIValue buildTime = JSI::CreateString(value); 3370e98b08fSopenharmony_ci return buildTime; 3380e98b08fSopenharmony_ci} 3390e98b08fSopenharmony_ci 3400e98b08fSopenharmony_ciJSIValue JSGetBuildRootHash(void) 3410e98b08fSopenharmony_ci{ 3420e98b08fSopenharmony_ci const char *value = GetBuildRootHash(); 3430e98b08fSopenharmony_ci if (value == nullptr) { 3440e98b08fSopenharmony_ci value = ""; 3450e98b08fSopenharmony_ci } 3460e98b08fSopenharmony_ci 3470e98b08fSopenharmony_ci JSIValue buildRootHash = JSI::CreateString(value); 3480e98b08fSopenharmony_ci return buildRootHash; 3490e98b08fSopenharmony_ci} 3500e98b08fSopenharmony_ci 3510e98b08fSopenharmony_ciJSIValue JSGetDevUdid(void) 3520e98b08fSopenharmony_ci{ 3530e98b08fSopenharmony_ci char buffer[MAX_BUFFER] = { 0 }; 3540e98b08fSopenharmony_ci int value = GetDevUdid(buffer, sizeof(buffer)); 3550e98b08fSopenharmony_ci JSIValue udid = JSI::CreateUndefined(); 3560e98b08fSopenharmony_ci if (value < 0) { 3570e98b08fSopenharmony_ci return udid; 3580e98b08fSopenharmony_ci } 3590e98b08fSopenharmony_ci 3600e98b08fSopenharmony_ci udid = JSI::CreateString(std::to_string(value).c_str()); 3610e98b08fSopenharmony_ci return udid; 3620e98b08fSopenharmony_ci} 3630e98b08fSopenharmony_ci 3640e98b08fSopenharmony_ciJSIValue JSGetDistributionOSName(void) 3650e98b08fSopenharmony_ci{ 3660e98b08fSopenharmony_ci const char *value = GetDistributionOSName(); 3670e98b08fSopenharmony_ci if (value == nullptr) { 3680e98b08fSopenharmony_ci value = ""; 3690e98b08fSopenharmony_ci } 3700e98b08fSopenharmony_ci JSIValue distributionOSName = JSI::CreateString(value); 3710e98b08fSopenharmony_ci return distributionOSName; 3720e98b08fSopenharmony_ci} 3730e98b08fSopenharmony_ci 3740e98b08fSopenharmony_ciJSIValue JSGetDistributionOSVersion(void) 3750e98b08fSopenharmony_ci{ 3760e98b08fSopenharmony_ci const char *value = GetDistributionOSVersion(); 3770e98b08fSopenharmony_ci if (value == nullptr) { 3780e98b08fSopenharmony_ci value = ""; 3790e98b08fSopenharmony_ci } 3800e98b08fSopenharmony_ci JSIValue distributionOSVersion = JSI::CreateString(value); 3810e98b08fSopenharmony_ci return distributionOSVersion; 3820e98b08fSopenharmony_ci} 3830e98b08fSopenharmony_ci 3840e98b08fSopenharmony_ciJSIValue JSGetDistributionOSApiVersion(void) 3850e98b08fSopenharmony_ci{ 3860e98b08fSopenharmony_ci int value = GetDistributionOSApiVersion(); 3870e98b08fSopenharmony_ci JSIValue distributionOSApiVersion = JSI::CreateUndefined(); 3880e98b08fSopenharmony_ci if (value < 0) { 3890e98b08fSopenharmony_ci return distributionOSApiVersion; 3900e98b08fSopenharmony_ci } 3910e98b08fSopenharmony_ci 3920e98b08fSopenharmony_ci distributionOSApiVersion = JSI::CreateString(std::to_string(value).c_str()); 3930e98b08fSopenharmony_ci return distributionOSApiVersion; 3940e98b08fSopenharmony_ci} 3950e98b08fSopenharmony_ci 3960e98b08fSopenharmony_ciJSIValue JSGetDistributionOSReleaseType(void) 3970e98b08fSopenharmony_ci{ 3980e98b08fSopenharmony_ci const char *value = GetDistributionOSReleaseType(); 3990e98b08fSopenharmony_ci if (value == nullptr) { 4000e98b08fSopenharmony_ci value = ""; 4010e98b08fSopenharmony_ci } 4020e98b08fSopenharmony_ci JSIValue distributionOSReleaseType = JSI::CreateString(value); 4030e98b08fSopenharmony_ci return distributionOSReleaseType; 4040e98b08fSopenharmony_ci} 4050e98b08fSopenharmony_ci 4060e98b08fSopenharmony_civoid InitDeviceInfoModule(JSIValue exports) 4070e98b08fSopenharmony_ci{ 4080e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "deviceType", JSGetDeviceType()); 4090e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "manufacture", JSGetManufacture()); 4100e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "brand", JSGetBrand()); 4110e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "marketName", JSGetMarketName()); 4120e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "productSeries", JSGetProductSeries()); 4130e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "productModel", JSGetProductModel()); 4140e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "softwareModel", JSGetSoftwareModel()); 4150e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "hardwareModel", JSGetHardwareModel()); 4160e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "hardwareProfile", JSGetHardwareProfile()); 4170e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "serial", JSGetSerial()); 4180e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "bootloaderVersion", JSGetBootloaderVersion()); 4190e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "abiList", JSGetAbiList()); 4200e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "securityPatchTag", JSGetSecurityPatchTag()); 4210e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "displayVersion", JSGetDisplayVersion()); 4220e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "incrementalVersion", JSGetIncrementalVersion()); 4230e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "osReleaseType", JSGetOsReleaseType()); 4240e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "osFullName", JSGetOSFullName()); 4250e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "majorVersion", JSGetMajorVersion()); 4260e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "seniorVersion", JSGetSeniorVersion()); 4270e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "featureVersion", JSGetFeatureVersion()); 4280e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "buildVersion", JSGetBuildVersion()); 4290e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "sdkApiVersion", JSGetSdkApiVersion()); 4300e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "firstApiVersion", JSGetFirstApiVersion()); 4310e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "versionId", JSGetVersionId()); 4320e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "buildType", JSGetBuildType()); 4330e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "buildUser", JSGetBuildUser()); 4340e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "buildHost", JSGetBuildHost()); 4350e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "buildTime", JSGetBuildTime()); 4360e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "buildRootHash", JSGetBuildRootHash()); 4370e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "udid", JSGetDevUdid()); 4380e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "distributionOSName", JSGetDistributionOSName()); 4390e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "distributionOSVersion", JSGetDistributionOSVersion()); 4400e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "distributionOSApiVersion", JSGetDistributionOSApiVersion()); 4410e98b08fSopenharmony_ci JSI::SetNamedProperty(exports, "distributionOSReleaseType", JSGetDistributionOSReleaseType()); 4420e98b08fSopenharmony_ci} 4430e98b08fSopenharmony_ci} // ACELite 4440e98b08fSopenharmony_ci} // OHOS 445