mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-22 10:25:26 -04:00
568aa63ec1
Signed-off-by: hwx1119949 <3052854011@qq.com>
50 lines
2.3 KiB
JavaScript
50 lines
2.3 KiB
JavaScript
/*
|
|
* Copyright (c) 2021 Huawei Device Co., Ltd.
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
export function mockDeviceInfo() {
|
|
global.systemplugin.deviceInfo = {
|
|
deviceType: '[PC preview] unknow type',
|
|
manufacture: '[PC preview] unknow manufacture',
|
|
brand: '[PC preview] unknow brand',
|
|
marketName: '[PC preview] unknow market nanme',
|
|
productSeries: '[PC preview] unknow product series',
|
|
productModel: '[PC preview] unknow product model',
|
|
softwareModel: '[PC preview] unknow software model',
|
|
hardwareModel: '[PC preview] unknow hardware model',
|
|
hardwareProfile: '[PC preview] unknow hardware profile',
|
|
serial: '[PC preview] unknow serial',
|
|
udid: '[PC preview] unknow udid',
|
|
bootloaderVersion: '[PC preview] unknow bootloader version',
|
|
abiList: '[PC preview] unknow ablity list',
|
|
securityPatchTag: '[PC preview] unknow security patch tag',
|
|
displayVersion: '[PC preview] unknow display version',
|
|
incrementalVersion: '[PC preview] unknow incremental version',
|
|
osReleaseType: '[PC preview] unknow os release type',
|
|
osFullName: '[PC preview] unknow os full name',
|
|
majorVersion: '[PC preview] unknow security major version',
|
|
seniorVersion: '[PC preview] unknow senior version',
|
|
featureVersion: '[PC preview] unknow feature version',
|
|
buildVersion: '[PC preview] unknow build version',
|
|
sdkApiVersion: '[PC preview] unknow sdk api version',
|
|
firstApiVersion: '[PC preview] unknow first api version',
|
|
versionId: '[PC preview] unknow version id',
|
|
buildType: '[PC preview] unknow build type',
|
|
buildUser: '[PC preview] unknow build user',
|
|
buildHost: '[PC preview] unknow build host',
|
|
buildTime: '[PC preview] unknow build time',
|
|
buildRootHash: '[PC preview] unknow build root hash'
|
|
}
|
|
}
|