/* * Copyright (c) 2023 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. */ #include "module_external/bms_adapter.h" #include #include #include #include "b_json/b_json_entity_extension_config.h" #include "bundle_mgr_client.h" #include "module_external/inner_receiver_impl.h" #include "module_ipc/service.h" #include "module_ipc/svc_session_manager.h" #include "module_sched/sched_scheduler.h" namespace OHOS::FileManagement::Backup { using namespace std; vector BundleMgrAdapter::GetBundleInfos(int32_t userId) { vector bundleInfos; bundleInfos.emplace_back( BJsonEntityCaps::BundleInfo {"com.example.app2backup", {}, {}, 0, true, "com.example.app2backup"}); return bundleInfos; } vector BundleMgrAdapter::GetBundleInfos(const vector &bundleNames, int32_t userId) { vector bundleInfos; bundleInfos.emplace_back( BJsonEntityCaps::BundleInfo {"com.example.app2backup", {}, {}, 0, true, "com.example.app2backup"}); return bundleInfos; } ErrCode BundleMgrAdapter::Install(wptr statusReceiver, const string &bundleFilePath, int32_t userId) { return 0; } } // namespace OHOS::FileManagement::Backup