1 /* 2 * Copyright (c) 2025 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 FOUNDATION_APPEXECFWK_INTERFACES_INNERKITS_APPEXECFWK_BASE_INCLUDE_BUNDLE_INFO_H 17 #define FOUNDATION_APPEXECFWK_INTERFACES_INNERKITS_APPEXECFWK_BASE_INCLUDE_BUNDLE_INFO_H 18 19 #include <string> 20 #include <vector> 21 22 namespace OHOS { 23 namespace AppExecFwk { 24 enum BundleFlag { 25 // get bundle info except abilityInfos 26 GET_BUNDLE_DEFAULT = 0x00000000, 27 // get bundle info include abilityInfos 28 GET_BUNDLE_WITH_ABILITIES = 0x00000001, 29 // get bundle info include request permissions 30 GET_BUNDLE_WITH_REQUESTED_PERMISSION = 0x00000010, 31 // get bundle info include extension info 32 GET_BUNDLE_WITH_EXTENSION_INFO = 0x00000020, 33 // get bundle info include hash value 34 GET_BUNDLE_WITH_HASH_VALUE = 0x00000030, 35 // get bundle info inlcude menu, only for dump usage 36 GET_BUNDLE_WITH_MENU = 0x00000040, 37 // get bundle info inlcude router map, only for dump usage 38 GET_BUNDLE_WITH_ROUTER_MAP = 0x00000080, 39 // get bundle info include skill info 40 GET_BUNDLE_WITH_SKILL = 0x00000800, 41 }; 42 43 // configuration information about a bundle 44 struct BundleInfo { 45 bool isNewVersion = false; 46 bool isKeepAlive = false; 47 bool singleton = false; 48 bool isPreInstallApp = false; 49 50 bool isNativeApp = false; 51 52 bool entryInstallationFree = false; // application : false; atomic service : true 53 bool isDifferentName = false; 54 std::string versionName; 55 }; 56 } // namespace AppExecFwk 57 } // namespace OHOS 58 #endif // FOUNDATION_APPEXECFWK_INTERFACES_INNERKITS_APPEXECFWK_BASE_INCLUDE_BUNDLE_INFO_H 59