• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 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 #ifndef SYS_INSTALLER_MODULE_CONSTANTS_H
17 #define SYS_INSTALLER_MODULE_CONSTANTS_H
18 
19 namespace OHOS {
20 namespace SysInstaller {
21 static constexpr const char *UPDATE_INSTALL_DIR = "/data/module_update_package";
22 static constexpr const char *UPDATE_ACTIVE_DIR = "/data/module_update/active";
23 static constexpr const char *UPDATE_BACKUP_DIR = "/data/module_update/backup";
24 static constexpr const char *MODULE_PREINSTALL_DIR = "/system/module_update";
25 static constexpr const char *MODULE_ROOT_DIR = "/module_update";
26 static constexpr const char *HMP_PACKAGE_SUFFIX = ".zip";
27 static constexpr const char *MODULE_PACKAGE_SUFFIX = ".zip";
28 static constexpr const char *CONFIG_FILE_NAME = "config.json";
29 static constexpr const char *IMG_FILE_NAME = "module.img";
30 static constexpr const char *PUBLIC_KEY_NAME = "pub_key.pem";
31 } // namespace SysInstaller
32 } // namespace OHOS
33 #endif // SYS_INSTALLER_MODULE_CONSTANTS_H